Stack Exchange Network

Stack Exchange network consists of 175 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

34
votes
0answers
1k views

Magento 2 Adminhtml spreading forms across multiple tabs

I am attempting to create a backend module, wherein on my edit page I use admin-2column-left layout. I want to have a form on each tab, but I do not understand how I can do this. Ideally, I would ...
9
votes
0answers
2k views

How to enable inline edit in catalog grid without changing source code?

I try to turn on inline edit in catalog grid as it described in DevDocs: http://devdocs.magento.com/guides/v2.0/ui-components/ui-secondary-inline.html Main problem is how to override this block of ...
8
votes
0answers
402 views

Magento 2 How to add Tab Component in admin module

How can I add UI Tab Component in custom admin module with the help of below user guide ? http://devdocs.magento.com/guides/v2.1/ui_comp_guide/components/ui-tab.html There are not enough information ...
7
votes
0answers
718 views

Magento 2 : Not getting the product grid in a custom form using UI component

I want to show product grid in admin form using UI component, for that, I have added the following code in product_form.xml <fieldset name="assign_products"> <argument name="data" ...
6
votes
0answers
663 views

How to add dynamic custom column in UI component

I have configured UI component columns in admin grid and its working fine. I need to add custom columns dynamically. For example we can add custom column in __prepareColumns function in Block layout ...
5
votes
0answers
77 views

How to Add customized error message in magento 2 admin form

<item name="config" xsi:type="array"> <item name="label" xsi:type="string" translate="true">My Custom Filed</item> <item name="dataType" xsi:type="string">text</item&...
5
votes
0answers
967 views

How do “imports” work in a ui-component?

I've seen this customizeNameListeners method in the product add/edit form modifier. Inside it, there is an array that contains a member called imports 'imports' => [ '...
5
votes
0answers
918 views

How to extend core UI Component in Magento 2

I've tried to bring Sales -> Shipments grid into my extension. It works fine when I use this in my layout file .xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
5
votes
0answers
797 views

How to add field dependency in admin customer form UI component

I'm trying to add field dependency for two custom fields added to admin customer form by extending customer_form.xml in local extension. Here is one answer Dependency in admin form field in magento 2, ...
4
votes
0answers
342 views

Why does DataProvider (UiComponent) expect custom data to have custom attributes?

I've built an admin grid following a few tutorials and hit this error: Warning: Invalid argument supplied for foreach() in /home/sadmin/mage/lib/internal/Magento/Framework/View/Element/UiComponent/...
4
votes
0answers
716 views

uicomponent form add new button for modal

I have build a custom form using uicomponent I want to add a button and on click want to open a modal with product grid. How can I achieve this using uicomponent form ?
4
votes
0answers
539 views

Magento 2 inline edit date issues

In magento2 Inline Edit date issues while i edit the record it display current date instead of my date My Ui component <!-- Date Column --> <column name="date" class="Magento\Ui\...
3
votes
0answers
34 views

How to load Ui-component form data using another column instead of primary field Magento 2?

I have created a form using Ui-component it is working fine while adding new form & edit form. But I would like to do customization as per my requirement. Default Magento Ui form data is display ...
3
votes
0answers
41 views

Magento 2 - Product edit screen, missing category selection field entirely | How to debug?

At some point during development unknown; the category select field has gone missing from the product edit screen (on all product types). It's possible it happened during a partial update of content ...
3
votes
0answers
30 views

Loading Product Grid In UI Form But not able to post data to controller

load product grid ui component Am following this code its work fine and showing product grid in UI-component form but how can i post data from listing to controller with other fields in the form... ...
3
votes
0answers
74 views

How to get Current Currency SIGN in UI component field

I have created a Custom Module using the UI Component on Admin Side. Now i Need to show a Current Currency Sign in this field. SS:
3
votes
0answers
685 views

mageInit KO binding not working for a custom jQuery widget

I can't get the mageInit binding to work on a custom jQuery widget which I have created. I have used it in my KO template like: <div data-bind="mageInit: {'mywidget':{'configuration-value':true}"&...
3
votes
0answers
51 views

Magento 2.2 : uiComponent Form : show images in a field

I would like to show images in a field without having uploader button. I have images name in the DB column. How could i use a renderer for the field or any other way to do this?
3
votes
0answers
279 views

Magento 2.1: Adding Custom Css to Admin Ui Component Form

I invested a couple of hours to get a solution to figure out , that how can we customize the M2 admin form - for the sake of clarity please see the below screenshot: The default admin form fieldsets ...
3
votes
0answers
275 views

Magento 2 : How to Return the Collection from afterload

I have implemented this jquerytokenizer in Ui Component form shown in the below image. It works well , the data is saved accurately- but when I go to edit a saved record this field is empty ...
3
votes
0answers
214 views

Validate Ui Component

Validate Ui Component generated form fields inside dynamic rows container that are dependent of another field value There is a possibility to add one or more addresses for a new/existing customer ...
3
votes
0answers
137 views

Can I create grid view programmatically in magento 2?

As the tittle, I want to create these in my code.
3
votes
0answers
258 views

No Way to Clear/delete a Selected Image using Media Browser on category edit page

With reference to this Q&A there's another question. How do I clear the image selected using the Media Browser on category edit page in the admin Panel? Here's what I tried: in app/code/...
3
votes
0answers
153 views

What does the “initUnique” Method setup in uiElement Objects?

In Magento 2's uiElement objects, one of the initialization methods is named initUnique initialize: function () { this._super() .initObservable() .initModules() ....
2
votes
0answers
16 views

Multiple Image upload restrict up to 10 images

How to add multiple image upload in magento 2 and restrict to only 10 <field name="images"> <argument name="data" xsi:type="array"> <item name="config" xsi:type=...
2
votes
0answers
23 views

magento 2 file uploader frontend append files

From what i know magento 2 already uses file uploader https://searchcode.com/codesearch/view/45780717/ , how can i use it to create something like they have on this page under tab "Basic Plus UI": ...
2
votes
0answers
22 views

How to remove multiple results from admin grid in ui-component Magento 2

How to Remove the multiple results in the grid from the same date in admin grid UI component Magento 2 - I have got multiple results for 1 day. - I need a single result for a single date. <column ...
2
votes
0answers
21 views

why buttons are not showing in frontend ui form in magento2?

Why buttons are not showing in frontend UI Form in Magento2 ? Can anyone help in this. Code added in employee_form.xml file: <argument name="data" xsi:type="array"> <item name="...
2
votes
0answers
25 views

how to call layout from UI component button?

I want to jump from one UI_COMPONENT to another UI_COMPONENT through layout file and hopefully passing URL in button This is my Ui_component file <?xml version="1.0" encoding="UTF-8"?> <...
2
votes
0answers
33 views

Magento 2 ExportButton component Product grid not working

I have added ExportButton on admin product grid and when i click on export it shows error Exception #0 (Magento\Framework\Exception\LocalizedException): A joined field with this alias is already ...
2
votes
0answers
30 views

Magento 2.3 : using swicher config

I have used this in my custom module and this is working. https://magento.stackexchange.com/a/256280/55674 What i want to know is if there is a way to show/hide an entire fieldset using above method. ...
2
votes
0answers
91 views

How to use dynamic row ui-component for frontend magento2?

How to use dynamic row ui-component for frontend magento2 ?
2
votes
0answers
109 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 ...
2
votes
0answers
78 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.
2
votes
0answers
66 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 ...
2
votes
0answers
18 views

Add custom component to magento 2 Grid

i've successfully create a grid using ui component like this: <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/...
2
votes
0answers
71 views

How to create a parent category dropdown in admin form in magento2.2

I want to create a drop-down field in admin UI-component form in magento2.(for getting parent category/post) How to do that How to do that Thanks
2
votes
0answers
186 views

How to create dynamic rows field in custom Ui component form

I want to create field in custom ui form to add dynamic row and delete that row.. I know how to add dynamic row field in STORE > Configuration but I don't know how to add in UI component form. Then ...
2
votes
0answers
52 views

Magento 2 Form UiComponent Explaination

I have found very good in detailed explaination of the magento ui_component grid in below question : Explanation of UI Component Grid in Magento 2 I want to know about the form ui_component in ...
2
votes
0answers
306 views

popup in admin grid magento 2

I am using admin grid where I have product grid. In product grid I have action as of now this is link redirecting to new page. But I want when I click on link it open as popup. Like when we adding ...
2
votes
0answers
147 views

Magento 2 : admin product edit page custom attribute with customised Ui-Select

I have created product attribute with input type select below, I have put attribute create code. $eavSetup = $this->eavSetupFactory->create(['setup' => $setup]); $eavSetup->...
2
votes
0answers
38 views

Negation in the imports link (UI component)

I've got the fieldset component in my custom UI-form: <fieldset name="default"> <settings> <label>Default</label> <collapsible>true</collapsible&...
2
votes
0answers
160 views

Grid Serializer Magento 2.2 In product edit page - adminhtml

module.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module....
2
votes
0answers
23 views

How to create custom grid in admin using js

I want to create custom admin grid using jquery, I have search a lot but felt to get proper way. Can anyone suggest me the correct way.
2
votes
0answers
103 views

Magento 2.1 Need to show popup in admin grid action with Ui Component

I have added following code. but seems it's not working public function prepareDataSource(array $dataSource) { if (isset($dataSource['data']['items'])) { foreach ($dataSource['...
2
votes
0answers
16 views

Not able to get shipping details on custom page

The below code I have created a custom step at checkout. I wanted to display the shipping information on it. I have written the code but it is not working. <item name="order-...
2
votes
0answers
72 views

ui_component form custom tab attribute

I have created a custom customer attribute that is shown in the tab with all the general information when you edit the customer. Now I need to get that attribute inside a custom tab that I have ...
2
votes
0answers
136 views

Data value is appearing instead of data label in grid export

I have an options array in below format. array (size=3) 0 => array (size=2) 'value' => string 'one' (length=3) 'label' => string 'Number One' (length=10) 1 => ...
2
votes
0answers
46 views

Is it possible to create uiComponent block programatically?

It is required to add custom grid in a new tab in System -> User roles -> Role. I was thinking of uiComponent grid however, when I digged into sources I found that users grid is composed via ...
2
votes
0answers
62 views

UI component form with a foreign key value

I'm trying to do a admin form for a custom model, this model has 3 foreign key columns, I using UI component for this, but i haven't got idea. For example, this model has a order_id column, i'm ...