Questions tagged [uicomponent]

Denotes questions regarding Magento Ui Components

444 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
42
votes
1answer
1k views

Magento 2 Adminhtml spreading forms across multiple tabs

I'm attempting to create a backend module, where in my edit page I use admin-2column-left layout. I want to have a form on each tab, but I don't know how I can do this. Ideally, I would like to know ...
13
votes
1answer
582 views

Magento 2 Show customer attribute in ui_component form

I've created ui_component form. Where I need to show customer details, Same as Customer Edit. But, I can able to show their data from customer_entity table. DataProvider.php public function ...
10
votes
0answers
457 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 ...
10
votes
0answers
2k views

Magento2 : 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
836 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" ...
7
votes
1answer
459 views

Generate get parameter in XML layout Admin

I have a custom extension that generate grid using XML, the problem is that I need to add button which will generate link with a get parameter from get request that passed via url, the xml code for ...
7
votes
0answers
994 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-...
6
votes
0answers
1k 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' => [ '...
6
votes
2answers
2k views

Data population in UI form

Im trying to build a custom admin form (using ui components) for a custom entity. We can assume the entity is very simple(e.g. id,name) One thing that i have hard time with, is populating the form ...
6
votes
0answers
726 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 ...
6
votes
0answers
884 views

How to add field dependency in admin customer form UI component

I'm trying to add field dependency with 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 ...
6
votes
1answer
1k views

How can we create a form at front-end using UI component Magento 2

I am looking to create a form at storefront using UI component. When I create xml file in Ui component folder It throwing an error Fatal error: Call to a member function getRequestFieldName() on ...
5
votes
0answers
114 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:
5
votes
1answer
118 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&...
4
votes
0answers
59 views

Show/Hide dependent attribute field on toggle attribute field of product add/edit admin form into Magenot 2

As per the requirement, I have created 2 product attribute into magento 2 admin. First attribute is toggle(Yes/No) attribute and Second is Text attribute which is dependent on First attribute. Now I ...
4
votes
0answers
51 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 ...
4
votes
1answer
102 views

Add product grid in custom module using ui component

I have followed this solution Magento 2 : How to add a product grid in custom module using ui component? but i am getting this What i am doing wrong can any one help me on this. Edit Controller ...
4
votes
1answer
858 views

How to show storeview in ui component grid in Magento 2?

I want to show storeviews in ui component grid. I am using this code in app\code\Mymodule\Myimages\view\adminhtml\ui_component\communieimages_name.xml <column name="store_ids" class="Magento\Store\...
4
votes
0answers
380 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 ...
4
votes
0answers
569 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
1answer
35 views

Adding Textarea as filter in ui listing

I want to add filtering for a ui listing <item name="filter" xsi:type="string">text</item> Using this i am able to add filter but its a textbox. I want it to be a textarea any solution ...
3
votes
0answers
43 views

magento 2 - ui componet grid (Backend)

Can this be achieved in magento 2 Ui Component.
3
votes
3answers
450 views

Magento 2: How to hidden tab fieldset in form ui component?

i want hide this field. everyone can help me plz!
3
votes
0answers
23 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=...
3
votes
0answers
50 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
73 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
35 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"?> <...
3
votes
1answer
176 views

Magento2 : How to show button in admin for custom module page?

I want to show the button in my custom module (admin page) but I am getting an error I want to add a button and how I add action process for that button i already tried this answer : (https://...
3
votes
0answers
89 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 ...
3
votes
1answer
241 views

Magento 2: How to save data in DB from admin through UI component?

I can not save the data in the database when editing the record, the data remains the same as it was before Ronis\Feedback\Api\Feedback\FeedbackInterface.php <?php namespace Ronis\Feedback\Api\...
3
votes
1answer
757 views

Magento 2 ui component form add extra input in the same admin field control

How to add more input like checkboxes in the same area like the use default? like so: More precisely I thinks is a field service see shoot:
3
votes
0answers
480 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 ...
3
votes
1answer
1k views

Magento 2 save grid data from admin form

I added a grid in admin form using UI Component by following the answer given here How to create Grid in Tabs? Now when I save the data, I don't get the values of selected items in save controller. ...
3
votes
0answers
1k 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
1answer
419 views

Magento2 Wishlist observable subscribe

I have this issue with the wishlist observable, I try to use the .subscribe function on it to check when the observable is changed but I keep getting wishlistObs is undefined what am I doing wrong ? ...
3
votes
1answer
184 views

Magento 2 Catalog Rule Condtions

I am trying to implement Magento 2 catalog rule condtions in a custom module Ui Component form. Below is the field set: <htmlContent name="block_promo_catalog_edit_tab_conditions" sortOrder="20"&...
3
votes
0answers
170 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 => ...
3
votes
0answers
57 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
325 views

popup is not displayed in in magento2 admin grid

I'm a beginner on Magento and I'm stuck at the pop-up level, so I did the add action button and it works fine <actionsColumn name="actions" class="Managys\Pricing\Ui\Component\Listing\Column\...
3
votes
0answers
407 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
246 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
141 views

Can I create grid view programmatically in magento 2?

As the tittle, I want to create these in my code.
3
votes
0answers
307 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
174 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() ....
3
votes
1answer
533 views

Magento 2 filter_condition_callback

How can I perform the same logic of filter_condition_callback of Magento 1 in Magento 2 I have a country column which I save comma separated values in db I have managed to create the filter but I am ...
2
votes
0answers
45 views

Magento 2: Spinner kept running and not showing data after creating custom admin grid

I checked a few answers before asking this question, I am new in Magento2 and learning from udemy course, I am sharing screenshot as well as my code: affiliate_member_listing.xml path:magento/app/...
2
votes
1answer
382 views

How to make drop-down dependent on another drop-down value in admin ui component Magento 2

I want to update one drop-down option on the change of another drop-down using UI Component in Magento admin section. Like: have one drop-down with color option ex: Red, Pink, Black, etc. and another ...
2
votes
1answer
88 views

Magento 2 Ui Component admin form: Can i add timezone to datetimepicker?

I have created a datetime picker in adminpanel form with ui component. <field name="event_time"> <argument name="data" xsi:type="array"> <item name="config" xsi:...
2
votes
0answers
34 views

how to add default filter in magento admin ui component in magento 2

Hi I want to filter the admin grid data in default Magento 2 how to add default filter in Magento admin UI component in Magento 2
2
votes
0answers
111 views

Add popup on clicking custom button in product edit page in admin in magento 2.3

I have added a custom button in product edit page using product_form.xml like below : app/code/Company/Module/view/adminhtml/ui_component/product_form.xml <?xml version="1.0" encoding="UTF-8"?>...