Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [uicomponent]

Denotes questions regarding Magento Ui Components

0
votes
1answer
13 views

Admin Ui component grid search filters not working in custom module

search by keyword is not working in admin UI component grid
1
vote
1answer
23 views

Collection not loading in Ui Component Admin Grid - stuck spinning

I have a basic CRUD repository setup, however when I try to go to the Admin Grid UI Component, the spinner just spins and nothing loads. No errors displayed in any of the logs either. When I inspect ...
6
votes
1answer
60 views

Add option for custom select attribute on customer edit page Magento 2

I want to add my own custom option for an attribute.Please see attached image. Just guide me which files i need to create. I have just created one file for now. Please see code below, app/code/...
1
vote
0answers
28 views

Foreign key constraint fails

I update schema newsletter_subscriber, certain I added firstname column which is a foreign key to customer_entity firstname, and when I post data the object with value is sent and in Magento insert ...
1
vote
1answer
27 views

how to create city state country dropdown UIComponent in magento 2 admin form

how to create city state country dropdown UIComponent in Magento 2 admin form, like when we select one country then state of that country is shown. Thanks,
1
vote
1answer
50 views

Magento 2.3 : Multiple image upload in admin form ui component?

I am facing issue uploading multiple images.i have implemented single image upload in Magento 2.3 from the admin side using the UI component. Thanks for your help my code is given below. form code ...
1
vote
0answers
13 views

How to update shipping methods on change of custom dropdown on cart page

I have created a custom dropdown above country dropdown on cart page. Now I want to update shipping methods list. I followed Devdocs to show custom field on address form (cart page). All in all I ...
0
votes
0answers
24 views

Magento2: how to add/remove a form field using javascript

I have created a custom form in admin in which I need to show buttons such as "Add more" and "Remove". The scenario is exact that which is discussed here: https://stackoverflow.com/questions/...
2
votes
0answers
43 views

how to add Custom column with link in sales order grid magento

I want to add custom column in sales order grid. in the row data i want to add link using block render or using UI component.
0
votes
0answers
20 views

Magento 2 grid mass actions Cannot read property 'total' of undefined

I created a grid ui_component but the massAction select won't work. It keep show me this error : Cannot read property 'total' of undefined (l55) Could you help me with this issue ? Here is my ...
0
votes
0answers
33 views

Magento2 UI Component admin Grid / Listing stuck loading

This is the first CRUD module (called Sinapsis_Store, for code understanding) I am trying to write in Magento2. I have followed different ways for it, going step by step, trying to understand every ...
0
votes
0answers
26 views

how to display Google map on magento 2 admin side

actually, I want to use google map to get latitude and longitude of a place using google map so I need to use google map on backend using UI component form thanks.
0
votes
2answers
24 views

Load all items in magento ui listing

Currently the items are showing by default 20 per page. Is there a way to load all items?
0
votes
1answer
23 views

Show and Hide Product Grid in custom module Magento 2

I have created a drop down field. When I select 1 option from field I want to show the another field and along with that I want to hide product grid. Same as when I select 2nd opinion, I want to show ...
0
votes
0answers
8 views

How to create Units and Measurement Indicators Field

Do anyone know that how we can create Units and Measurement Indicators field in magento UI admin form? i have searched alot but didn't fond any solution. https://devdocs.magento.com/guides/v2.3/...
0
votes
0answers
11 views

Magento 2: How to create a grid in the admin using existing sales order data

I'm looking to create a completely separate admin grid using Sales Order data. Unfortunately, every tutorial I've seen is to modify the existing sales_order_grid with new columns, etc. But haven't ...
0
votes
1answer
37 views

Magento2: How to use Custom Collection Data in UI Component Grid

I am creating a custom module to show my custom records on grid (using UI component),till now I have Created UI Component, but unable to link up with the Collection. Here is my UI component code: <...
0
votes
0answers
20 views

Edit doesn't work in UI Component

<layout> <navContainerName>left</navContainerName> <type>tabs</type> </layout> I have used the tab in form.xml but data not being populated within form while ...
0
votes
0answers
14 views

Magento2: create a form with tab structure

I want to create a custom form through custom module to be shown on storefront. The form will have various tabs can anyone please suggest what is the best approach to do the same. Also if any one has ...
1
vote
0answers
20 views

How to select values in parent grid magento 2 from ui component modal?

I have a custom product listing grid, on clicking add products, I have created a (slider) modal, Where I check the products from another grid and click add selected products, then the selected items ...
0
votes
0answers
18 views

Category Date component showing wrong value

I have created a DateTime category attribute schedule_start, I have also created a bakend model for this attribute and before saving attribute value I am formatting the date time value as per the ...
0
votes
1answer
33 views

Solve warning “User Agent Exception override product and CMS pages rules”

I'm Trying to create a dynamic grid containing multiple fields using this code in my ui_component <fieldset name="multi_answer"> <settings> <collapsible>true</collapsible>...
0
votes
0answers
17 views

How to add a .js or .phtml inside UI_Component XML file

Basically, want to add javascript code in code in- ../view/layout/vendor_module_request_edit.xml or ../view/adminhtml/ui_component/venor_module_request.xml or we if possible want to add a ...
1
vote
2answers
63 views

Filtering not working in UI component

I have created a UI listing in Magento 2. The first column was getting the id of the product. Since I don't want to display the id, I wanted to display its SKU. So I applied a class for the column. ...
1
vote
1answer
25 views

User agent exceptions override product and CMS pages rules

I am trying to implement this dynamic grid/ to add multiple records it is working fine but I am getting this "User agent exceptions override product and CMS pages rules." all over it any idea how to ...
0
votes
0answers
24 views

Dynamic value not working in addFieldToFilter

I have a data provider to filter data in admin grid magento2, so I do: namespace vendor\module\Ui\Component\DataProvider\SearchResult; class Items extends \Magento\Framework\View\Element\...
0
votes
3answers
49 views

Custom Module Admin Grid Action not showing

I did a grid on my admin, but not showing the actions. Can u help me? Its my UI/component/listing/column actions.php file <?php namespace Test\Test\Ui\Component\Listing\Column; use Magento\...
0
votes
1answer
31 views

How to get collection from two tables and show in Admin grid using Union query Magento2.2.5?

I want to show two table values in Admin grid using UI Component (which has no relation) so using union query it can be achieved. How to get the collection from two tables? Table structure 1 Table ...
0
votes
1answer
36 views

Magento 2 - Create admin grid with two tables of different structures using UI Component

Need to create an admin grid on Magento 2 with data of two custom tables of different structures. FYI, unable to proceed with joins and union. Can you please anyone provide the best solution to ...
0
votes
1answer
20 views

How to create custom admin grid using block without using ui component in magento2.2.5?

How to create custom admin grid using block without using ui component in magento2.2.5? Any help would be appreciated.
0
votes
0answers
24 views

Magento 2 How to display placeholder image to image preview backend UI component form

In my custom module i have custom UI component form and i add file upload filed to this form. Form is working fine while Add or Edit, when upload file image preview is display,but i want to display ...
0
votes
0answers
26 views

How to make a field dropdown with value in Dynamic Row magento 2 Admin

I just created a dynamicRow using UIform (UiComponent). In this the value field I want to make it drop-down with predefined values. How to make it a drop-down, also I want to change another field's ...
0
votes
0answers
58 views

Magento2 - Category Thumbnail image not uploading

I am using an extension of Amasty for layered navigation which also provides facility of category thumbnail image upload. Unfortunately the upload of Thumbnail is not working for me, I am not getting ...
0
votes
1answer
14 views

How to populate a custom table data in a dropdown field within adminhtml -> UIComponent ->form.xml

<field name="agent" sortOrder="170" > <argument name="data" xsi:type="array"> <item name="options" xsi:type="object"></item> <item name="config" xsi:type=...
1
vote
0answers
32 views

How to set default sort order for custom listing uicomponent to use multiple columns

I created a custom admin grid using a lising uicomponent. I want the initial sort order to sort by 2 columns. This does the trick in the grid's Collection class for the initial page load of the grid: ...
0
votes
0answers
29 views

Magento 2.3.0 While edit UI component form data not filled up in custom module

I have created a custom module using UI component form and i am facing issue while edit form data is not showing. Below is UI form code with given path. /app/code/Namespace/Modulename/view/...
0
votes
0answers
62 views

How to add radio button in custom option in magento2

I want to add radio button in custom option . I refer this link Magento2 adding radio buttons in customoptions. But not working. If anything i want to chage it. Thanks.
0
votes
0answers
22 views

filter_url_params in magento 2 Ui component is not working properly anybody have solution

I want to show data according to id that is shown in my URL..... my URL is http://dev.magento.com/admin/customer/index/edit/id/1/key/06ae49324c0bb7e328bc5bd4bb75954fcc787d538a59cb97ce4e1809a1a17ff3/...
0
votes
1answer
19 views

add a section/tab on the right section of all categories in front end magento2

Hi there I want to add my custom section/tab on the right section of all the categories for getting a clear idea I am attaching this image This is the men section I want to add the same custom tab ...
0
votes
0answers
16 views

How to add Swatches options to Recently viewed UI component

How to add swatches options for product item to a Recently viewed UI component? I use the following code to show recently viewed block on the page <block class="Magento\Catalog\Block\Widget\...
0
votes
0answers
4 views

Fill fileds on the basis of Other Filed Value

I have created a form on the admin side using Ui component. I am getting a collection of Catalog rules in my form. now i want that whenever i select a rule from dropdown, some of the other fields, ...
0
votes
1answer
31 views

Why getParentsIdsByChild($productId); is returning empty for Child product?

I'm trying to get parent products id for child products but i'm getting empty result. <?php namespace CustomColumn\Addproductcolumn\Ui\Component\Listing\Column; use Magento\Framework\View\Element\...
0
votes
0answers
18 views

Add Custom Product Form Custom Data Source Without Overriding Product Data Source

I've added a dynamic rows element which is populated from a custom table. This is working fine but the datasource for this ui component overrides the default product data source and the default ...
0
votes
1answer
118 views

Magento 2: Image not uploading in grid "Attention: File was not uploaded”

Created a custom module using Ui_Component,facing problem during image upload. Error (On alert) : Attention: File was not uploaded Ui_Component Form Code for Upload: <field name="icon"&...
1
vote
2answers
37 views

Magento 2 : How to set the Title of Page in Admin Grid using UI_COMPONENT

I have created a custom module using UI_COMPONENT. Everything worked properly, but unable to set the Page Title. Index layout file: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/...
0
votes
1answer
39 views

Dynamic Rows can not delete in edit form in admin magento 2

I have created custom modules with Magento 2.2.6 and there is dynamic rows added in custom module UI component form. Admin can add/delete dynamic row in new form. but admin can not delete dynamic rows ...
0
votes
1answer
38 views

How to create auto call javascript multiple function in magento 2 in single file

I create two js file for a task. I want to merge two file task in one file in three function. Both two have different config parameter. I am using magento x init. <script type="text/x-magento-init"...
0
votes
0answers
52 views

UI component Export data issue : Magento 2

We have created a grid in UI Component. While we have export data from grid we got an error like. {"0":"Notice: Undefined index: attributes in \/var\/www\/html\/bannerbuzzmagento2\/vendor\/magento\/...
0
votes
0answers
14 views

magento 2 : how can i add image using ui component to database form my ADD NEW DATA UI FORM using model not block

I have searched a lot but couldn't find exact method for uploading image using ui component. If some one help that will be appreciable .. thanks
1
vote
0answers
29 views

Magento2: How can I add Magento_GiftMessage to checkout (billing step > afterMethods)?

I want to add the "Gift Options" (Magento_GiftMessage) to the checkout billing step. Currently it's displayed only on cart page: & I want it (also) on checkout, under the payment methods list. At ...