Questions tagged [uicomponent]

Denotes questions regarding Magento Ui Components

Filter by
Sorted by
Tagged with
0
votes
1answer
12 views

Product Grid show raw HTML code. Need Help about Ui Component

I join my custom table and add column to Product Grid as Ui_Component text. But it show data in raw code. How to make it show as HTML code? Ui_Component setting <columns name="product_columns&...
0
votes
2answers
68 views
+50

Get selected country id and region name in class LayoutProcessor of custom module

I have a custom module app/code/Learning/FirstUnit/ and in that i have LayoutProcessor.php file in app/code/Learning/FirstUnit/Plugin. Please see the below code in LayoutProcessor.php <?php ...
0
votes
0answers
11 views

Magento 2 how to get DataRange filter value?

I have added a DataRange filter like this on a listing ui component: <column name="fecha_order" sortOrder="20"> <settings> <filter>...
0
votes
0answers
10 views

Magento 2 how to send filter data to Data Provider?

I have a listing ui component and I need to send parameters. this is my listing.xml <dataSource name="insert_listing_example_data_source" component="Magento_Ui/js/grid/provider"&...
0
votes
0answers
17 views

magento 2 ui components field in the same container not showing label

I have 3 checkboxes in the same container group, but just 1 label is being showed, and if I add label to container it gets mixed with the first checkbox, here is my code: <container name="...
0
votes
1answer
13 views

Magento 2 ui component disable fields based on checkbox admin panel

How can I disable some fields if a checkbox is enabled in admin panel? I'm using UI Components and Field component. I tried something like below but it's not working. 24 hours is a checkbox, if it's ...
0
votes
0answers
9 views

Magento 2 how to filter data on admin grid using insertListing?

Hi all I'm doing a report where I need to filter data. I have 2 uicomponents, 1 form and 1 listing/grid. Basically I need the form to filter the listing, but I don't know if I can accomplish this by ...
0
votes
0answers
12 views

Getting some Junk Value for billing and shipping address

In grid for shipping address I am getting value like this: На Ваш счет пришел денежный бонус http://maisbarnabes.com/cryptogods?keyword=kutsola123@gmail.com На Ваш счет пришел денежный бонус http://...
2
votes
1answer
35 views

How to upload media files in app/code/Vendor/Module/web/images directory?

How can I upload media files inside the "app/code/Vendor/Module/web/images" directory? I am creating a custom form page on the admin page. In that form, I have created an image uploader ...
0
votes
1answer
22 views

"validate-number-range" validation not working in Adminhtml form created using Ui Component

I am trying to implement the validate-number-range but it is not working. Please find the implementation below <field name="custom_sequence" sortOrder="40" formElement="...
0
votes
0answers
21 views

Cannot create field in customer_form.xml with source model Magento\Eav\Model\Entity\Attribute\Source\Table

I'm trying to create additional tabs in adminhtml > customer > edit and have done so successfully. However, I'm trying to "move" a field from the "Account Information" tab to ...
0
votes
1answer
37 views

Execute jQuery after foreach loop in knockout template [duplicate]

I am trying to execute some custom code after a knockout template has fully rendered. The template is Magento_Catalog/list/listing.html The relevant part of the template for this problem is: &...
0
votes
1answer
27 views

Magento 2.4 - Make uiComponent a slick slider / run jQuery after uiComponent finished rendering [duplicate]

I want to make the "recently viewed products" widget a Slideshow, using slick Slider. Here's what I did so far, although this might not be the correct approach: I copied template and ...
1
vote
0answers
18 views

Row click - make checkbox selected in a modal grid issue on Magento 2.4.2

I have a modal, listing a product grid. Same as it is for related products when you add a product. My problem is that beside that I have the pointer cursor, when I click on a row the checkbox from my ...
0
votes
0answers
30 views

Add default date from filter to UI Component grid in Magento 2

I have a custom grid created in the backend for a Magento 2.4.1 instance. Everything is working properly (filters, sorting, etc.), but I have one more request that seems to be more complicated. I have ...
0
votes
1answer
23 views

Magento 2 : Ui component displaying wrong date

So I created a module where I am storing order details in custom table and later on displaying all the details in custom grid. Everything is working fine except for date field. In the database its ...
0
votes
1answer
76 views

ImageUpload field missing on edit : Uncaught TypeError: Cannot create property 'previewType' on string

I have a custom ImageUploader Issue : When I try to create a new Object, the image field appears and works fine. Image send to my media dir and the name saved in database. But, when I try to edit the ...
0
votes
0answers
11 views

How to use inline edit for one column and url click for other columns in admin grid?

I have an admin grid as shown in the picture. Here for Position column I have added inline edit which works fine. Also Edit button in the last column is working fine and taking me to item edit page. ...
0
votes
0answers
19 views

Magento 2 - parse knockout values to x-magento-init script

I'm trying to replace native minicart quantity field with my own ui component. I created an override of vendor/magento/module-checkout/view/frontend/web/template/minicart/item/default.html. My code : &...
0
votes
1answer
66 views

Magento 2 : How to save file in media folder using custom product attribute?

I have a create product attribute But it's not save file in pub/media folder -> Vendor\Module:- Meetanshi\ProductAttachment -> attribute_field_name:- custom_product_attachment -> Media folder ...
0
votes
1answer
100 views

Magento 2 : Add Custom Attribute field to Product Form

I need to add the below field into the product form. Click Here InstallData.php <?php namespace Vendorename\ModuleName\Setup; use Magento\Eav\Setup\EavSetupFactory; use Magento\Framework\Setup\...
0
votes
0answers
42 views

(Magento 2) Backend Grid with Joined Tables : UI Component - "Something went wrong" error

Introduction I have created a new module with CRUD functionality. This is on Magento 2.3.5 Issue I have a grid with joined tables as a resultset that I can't get to work. Relevant information The ...
1
vote
2answers
78 views

Add a dynamic note for a product attribute in the adminhtml

I'm trying to add a dynamic not based on the attribute-set besides the price field in Magento 2. After a lot of research, I've tried using PHP modifiers in UI components, and depending on the ...
0
votes
1answer
60 views

how to add multi store functionality

i am using Magento 2 , and in my case i have added the ui_components fields , it works fine , but the value entered is applicable to all store view , i want to add multi-store functionality to those ...
0
votes
0answers
16 views

Validate UI form by database

Hello I have UI form with field zip code. I need validate input data. If zip code value exists in my custom db table, will be validate true, if not false. For example db table name zip_code, have ...
0
votes
0answers
20 views

How to auto select grid items in insertListing inside modal?

I have a UI component form with a button which opens a modal. In that modal I have a grid. On selecting items from grid, I am saving them into database. But I have a problem. Whenever I am editing ...
0
votes
0answers
19 views

Magento 2 disable Bookmarking From UI Component

I don't want to use Bookmarking in UI component in third party module and want to disable it by overriding in my custom module. <bookmark class="Vendor\ModuleName\Component\Bookmark" ...
0
votes
0answers
9 views

How to filter admin order grid collection on click of anchor link

How to filter on hold orders on sales order admin grid. I have a requirement to display count of on hold orders, when they click on message, user should see filtered collection. I have attached the ...
0
votes
0answers
14 views

Magento 2 How to implement UI Component XML Infinite Scroll data

I am working on One custom Module and loading all the Old orders items on the frontend page by using the UI component form. Currently data is coming in pagination but we have required it to load with ...
0
votes
0answers
9 views

Remove Custom Category Attribute from Another Module

I have a module has created a custom attribute on my category pages which I need hidden. I do not want to mess with functionality or break anything by actually deleting the attribute or remove module ...
0
votes
1answer
35 views

How to add Custom Button under the price box in Product add/edit form in Magento 2.4 Admin

I want to add a button under the price box on the product add/edit admin form and call a custom controller function when click on it by AJAX request. Please Help ....!!
0
votes
1answer
39 views

Magento DataProvider not populating data for edit in form

I am creating a simple CRUD operation in admin panel using UI Component. While trying to edit an entry, the fields are not prefilled. However, I can see the dataProvider is providing data in JSON. ...
0
votes
0answers
31 views

Magento 2 Admin Menu buttons (UiComponent buttons) behaviour

Question What do I need to setup a Button's behaviour, or is there CRUD built-in Magento 2 behaviour when I do not specify a Controller? This is The tutorial article I am following. I found the ...
0
votes
0answers
17 views

How to load opions in admin panel select ui component by ajax?

I need to make form in admin panel with ui components. In this for I need to choose customer/customers in, so I chose formElement="select". I created ui xml file, options provider and js ...
0
votes
0answers
19 views

How to display selected/Filtered rows in admin grid ( Ui-component predefined filter)

I have created a custom grid in Magento 2 using ui component. Currently it displays all the records to each admin user but i want to show data on the basis of admin user name. i.e if User A logs in, ...
0
votes
2answers
36 views

How to selected option in multiselect UI Component in Magento2

I need to select one or more option before rendering this page. I tried several ways but unable to find an exact way to solve my issue. I need to select Tea and Other Tea Option before loading. Form....
0
votes
0answers
177 views

Magento 2 how to get session value on Javascript Knockout Js?

I'm trying to get a session variable that is created when a customer is redirected to a controller. I'm using \Magento\Framework\Session\SessionManagerInterface $coreSession So I can use it at any ...
0
votes
0answers
41 views

Magento 2 Dynamic row edit issue

I am facing an issue on the edit page with the dynamic row. I added two dynamic row blocks. One block for global off days and one is for Postal code delay days. In both containers, I added a date ...
0
votes
0answers
66 views

How can I save my ui component form to the database?

I created a ui component, but I have no idea how to save it in the database. I know I have to pass it to the controller for it to pass to the model but I don't know how my controller should be, here's ...
0
votes
1answer
26 views

Import CSV file with Ui form and process it - error 404

I want to create a file uploader using Ui form, upload and process it in adminpanel. this is my Ui form code <field name="fileUploader" formElement="fileUploader"> ...
0
votes
0answers
14 views

CollectionFactory Undefined type, inside DataProvider.php

Whenever I try to use the CollectionFactory it appears as an error saying "undefidy type", what is happening? follow the code example <?php namespace Basic\Info\Model; use Basic\Info\...
0
votes
1answer
22 views

HOW TO USE UI COMPONENTS?

guys i'm learning how to use ui components and following doubts arose, i found a code in the magento documentation of a form, but the documents is difficult to understand and does not explain what is ...
0
votes
0answers
31 views

Magento 2.4 Uicomponent Dynamic Rows Add button not working after one

I am trying to add Dynamic Rows Ui Component in Product Add/Edit form in admin area, below is my product_form.xml file code: <?xml version="1.0" encoding="UTF-8"?> <!-- /**...
0
votes
1answer
41 views

Add custom javascript after js components load

I'm still a novice when it comes to Magento 2 frontend with jsLayout, requireJS, etc. I have a custom module where, in javascript, I am trying to attach an onchange listener to the email textbox. I ...
0
votes
1answer
68 views

Magento 2 admin grid csv export not working properly

I added csv export in admin grid and want to have export functionality whether admin user have filtered results or not. now I'm filtering data by daterange. some dates are working properly and gives ...
0
votes
1answer
24 views

Magento 2: Add CSS class to ui_component listing table

I want to add a custom CSS class to the ui_component listing table. The listing table is created as follows: <?xml version="1.0" encoding="UTF-8"?> <listing xmlns:xsi=&...
0
votes
1answer
38 views

How to pass current value of Ui form field in js file

I want to pass the value of checkbox in custom js file, I am using UI component to create a chechbox. So I have to pass this value to js file and then use that value in Model. I am not able to pass ...
0
votes
0answers
11 views

Magento 2 How create Time Range Picker in ui component?

I want create for my working store hours https://devdocs.magento.com/guides/v2.4/pattern-library/getting-user-input/date_time_selector/date_time_selector.html#time-range-picker How i can create this? ...
0
votes
0answers
13 views

Magento 2 filter is not recognised in select all

When I select all in the admin grid it is passing all the items in the collection not recognizing the filter. I have added a filter using ui_component like this below. <argument name="data&...
0
votes
1answer
18 views

Magento 2 call url param in Model Collection filter

I'm trying to get some data that matches the id in the URL. I have a param in admin URL like below. seller/items/index/id/9/ I'm using the admin UI component which is working fine. My model code ...

1
2 3 4 5
24