Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [uicomponent]

Denotes questions regarding Magento Ui Components

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

Magento 2.3.3: How would I add a Color Picker to my custom widget options?

I need to add a color picker to my custom widget options how would I go about doing this? Thank you
0
votes
0answers
14 views

Magento 2 - UI Component WYSIWYG field not saving

I am trying to add some fields to CMS pages so I can add some stuff to the sidebar. I followed some tutorials I found online but seem to be missing something. The current setup correctly shows the ...
2
votes
2answers
39 views

Magento 2 - the grid columns are empty after joining table

I have two tables: A & B . I want to display two columns from table B in my grid. The column names are: Price (See img) and Status(which is missing from the img, but it's there :) ). In my ...
0
votes
1answer
17 views

Highlight attribute name in product edit form

I need to highlight some divs with attribute names in product form in Magento2. Is there some way to do so? Or, at least, give me a hint where to look. I can't even find where attributes are loaded by ...
1
vote
1answer
19 views

What's the difference between element and elementTmpl

In UI components, what's the difference between setting template and elementTmpl in a component's <config/> node? <item name="config" xsi:type="array"> <item name="template" xsi:...
1
vote
1answer
33 views

Magento 2 Adding custom parameter to the ajax url, from the admin grid row issue

I am on the edit page with the following url: https://local.magento/admin/hello_test/shipping/edit/shippingmethod_id/1/key/df70da11cddd2ee1c41aa67a8cbccf6d9403207740547719560dec30a3fd9ceb/ , where I ...
0
votes
0answers
11 views

How magento 2 binding value to switcher checkbox toggle input

1 Not sure why when input disabled the value binded with 2 Answered myself Info: Magento use 2 indicate product status disabled Class Magento\Catalog\Model\Product\Attribute\Source\Status 2 how ...
0
votes
0answers
14 views

How to validate multiselect UI element in form Magento2

I am using UI multi-select component on frontend using below code. <div class="field"> <label class="label"><?= $block->escapeHtml(__('Origin')) ?> </label> <div ...
0
votes
0answers
16 views

File Upload Preview in magento 2

I created a file uploader in Magento 2 with UI component. now I want that when I upload my fule it should display preview like the image below. for now, it only uploads the CSV file. so the preview ...
0
votes
1answer
18 views

Can you perform Magento UI_Component Validation with value from store config?

Is it possible to get the minimum text length value from store config system.xml? <field name="mytext" sortOrder="20" formElement="input"> <argument name="data" xsi:type="array"> ...
0
votes
1answer
42 views

magento 2 ui component form default value

I have a created a custom magento 2 ui component form on Admin side. I have given create a button in customer detail page. Now what i expect is when i click on the button, it will go to my custom form ...
0
votes
0answers
11 views

How to use “Time Range Picker” for admin ui component grid filters?

I want to add the time range picker for admin UI component grid filters to filter the grid using the time range. In dev docs, I have seen the time range picker but I don't know how to use it in grid ...
2
votes
1answer
62 views

Magento 2 Inject UI component(s) via ajax into adminhtml form

I've build a regular adminhtml form via UI component(s) including multiple fieldsets, input and select fields. All working like they should. Now I've created a so called 'Event' select field within ...
0
votes
0answers
25 views

Magento 2 How to create a dynamically populated select field in admin UI component form?

Is there a way to populate a select dropdown field with the values of what is selected in another multiselect dropdown field on the same page and fieldset? This is in regards to the ui component form ...
0
votes
0answers
18 views

Inline edit in magento 2 backend grid

Magento 2 allow us to add inline edit functionality to grid created by UI_Component but I failed to figure out how to implement the same functionality for grid that created by Block. My code for ...
0
votes
0answers
8 views

Adding a column in MSI Source Selection page (in ordered items dynamic rows)

I'm trying to customize MSI Order shipping source selection page (the step before shipment creation form). I need to add a column in "ordered items" dynamic rows. I was able to add my new column, but ...
0
votes
1answer
34 views

Magento 2 wysiwyg editor hide/show button not showing with custom category attribute?

I have create custom category attribute as wysiwyg editor under content fieldset. Attribute is showing and working fine but I want to add Hide/Show Editor button with atribute. How can I do this? ...
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/...
3
votes
1answer
56 views

Magento 2 : Add visual swatch uploader in custom UI form

There are visual swatch uploader available in store -> product -> Edit "color" attribute and Manage Swatch (Values of Your Attribute) like display in below image. I want to apply same that uploader ...
0
votes
2answers
48 views

Grid not displaying in admin - custom Resource Model

I have a custom resource model mapping to a table named soldiers_thewatcher_watch with a primary key: watch_id. I added the Grid UI component as well as a controller and admin link, but when I ...
1
vote
0answers
22 views

Is it possible to use default Magento colorPicker in 'Update Attributes' action?

I am trying to use default Color Picker component of Magento. If I edit products individually the color picker works perfectly. Once I try the update attributes action from Catalog->Products page ...
1
vote
1answer
30 views

Magento 2 How to populated admin ui form element from DB table

I am trying to create a admin UI form in my custom module. But, when I am in edit form, I can't see my for elements populated by my module db table. Suppose, there is a 'title' column in my table and ...
0
votes
1answer
49 views

Magento 2: in checkout how to display input fields on the same row?

how can I display street , House number, Addition fields in one row? I have this file app/code/Mageplaza/Osc/Block/Checkout/LayoutProcessor.php <?php /** * Mageplaza * * NOTICE OF LICENSE ...
0
votes
1answer
39 views

Magento 2: How I can use category DataProvider in Admin Grid

I am trying to add Category Grid in Magento 2 I created A grid and add Dataprovider Magento\Catalog\Model\Category\DataProvider Here is Code of My DataProvider <dataSource name="...
5
votes
1answer
309 views

Grid Mass Action with childs no longer work with 2.3.3

i updated from Magento 2.3.2 to 2.3.3, and one module has a problem with grid massactions. The old way was: <action name="change_status"> <argument name="data" xsi:...
0
votes
0answers
17 views

magento 2 add one more text field in cart price rule and save the data in salesrule table

How to add one more text field in cart price rule and save the text filed value in sales rule table.
0
votes
1answer
33 views

Magento 2 custom module ui component admin form add fieldset within a field

Can one have a Fieldset within a field ?. E.G: <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
0
votes
0answers
20 views

Magento 2 - Pass/Inject data into DataProvider

I've created a DataProvider to feed data to an ui_component product listing which is displayed in a modal overlay. The modal should display products from a specific subcategory (each subcategory has a ...
0
votes
1answer
50 views

Show different icons for different status options in orders grid in magento 2

I have added a custom field in sales_order table and showing it in sales_order_grid table in backend. It is working fine. I have done the following to achieve this I have added sales_order_grid.xml ...
0
votes
0answers
42 views

Magento 2: Initialize Ui Component after page load

I have a module with a UI Component that is part of a Magento widget (based on the Magento chooser widget). At one point, the widget makes an AJAX call that pulls in a view (a .phtml file), which is ...
0
votes
0answers
29 views

How to add 'switcherConfig' to a Modifier pool on Magento2

I have custom eav table whose attributes. I'm getting dynamically on my modifier pool. But I want to add switcherConfig, as one of my fieldset display is dependent on a selected field value. Can ...
0
votes
0answers
14 views

Magento 2 : Admin for category selector field does not saved a value in DB

In magento2, admin for category selector field does not saved a value in db sales_rule_form.xml <field name="category_ids"> <argument name="data" xsi:type="array"> ...
1
vote
1answer
36 views

how to make ui-component onload dependency field in admin

how to make ui-component onload dependency field in admin In magento 2, admin ui-component form i created some dependency field on value change handler. its working well but when edit the form ...
0
votes
0answers
36 views

Add Custom Attribute To Recently Viewed Products Widget

I have override widget_recently_viewed.xml in my theme in Magento_Catalog with <?xml version="1.0" encoding="UTF-8"?> <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
1
vote
2answers
42 views

Override ui_component .xhtml template file

How can I override a ui_components' template file? The concerning file is: vendor/magento/module-ui/view/base/ui_component/templates/listing/default.xml I want to override this file so that it adds ...
0
votes
0answers
13 views

In custom grid second table columns doesnt updated magento2

i use this link for custom grid connection second table , data for second table displayed in grid but does not updated, https://webkul.com/blog/join-two-table-and-create-grid-in-admin-section-using-...
0
votes
0answers
14 views

How can I add following grid at product form in adminhtml Magento 2

How can I add following grid in product form in adminhtml Magento 2 and save the grid records in database on product save?
1
vote
0answers
24 views

Magento 2.3.X - custom module UI components not loading

The UI XML file: app/code/NewShop/NewModule/view/frontend/layout/checkout_cart_index.xml <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" ...
0
votes
0answers
3 views

Magento 2.2.9 image upload using ui component listing

How do you upload image using ui component listing? Is there anything I could take a look at and follow the steps Any tips for this
1
vote
0answers
21 views

Magento 2 Ui Component how to upload image and save it

<column name="image" class="Vendor\mpdule-name\Ui\Component\Listing\Column\Thumbnail"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"&...
1
vote
1answer
94 views

How to Create a excel file in custom module?

I want to create an excel format file for download in Magento 2 <item name="buttons" xsi:type="array"> <item name="add" xsi:type="array"> <item name="name" xsi:type=...
0
votes
0answers
13 views

Add Widget Script with Component Dependency (avoid setTimeout)

I'd like to run my function after a Magento component is rendered. BUT... my function is defined in a widget block. So is there a way to update this config adding another script? I'm trying to avoid ...
0
votes
1answer
43 views

Magento 2: Ui Component - Magento\Customer\Model\Session can't return current customer

I've got an issue using ui component on front in a large module. The model I'm using for my grid is used at several other points. But I discovered my configuration in di.xml is doing some strange ...
0
votes
1answer
52 views

Magento 2: create listing grid using ui component without database

How to create a listing grid using UI component in the backend without a database ?
1
vote
1answer
18 views

Collection data for grid ui component in Magento 2

Collection data for grid ui component in Magento 2 I want show data by grid but it get all data, how to get it with sku = "VAY", i want show all data have sku = vay My grid My collection class ...
1
vote
0answers
12 views

How to add Dynamic Table of Product from Modal

Please help me to show what products I selected in the images below. At the bottom of "Add Products" button. If you have any example project or article.
1
vote
1answer
77 views

Magento 2 : Add custom array in multiselect UI dropdown in custom UI form

In Magento 2, I want to add multiselect UI dropdown with custom my custom array. I take reference from product edit form "Categories" field and also find out from where UI multiselect tree option ...
0
votes
0answers
40 views

Magento 2 custom catalog condition rule not saving in custom module

I have added custom catalog conditions to my custom module admin form. a condition drop-down is displayed fine and in post data, condition value is also getting. but I am unable to save condition ...
0
votes
0answers
15 views

Use same ui component for different data source

I am creating a different grid view for sales_order table based on payment method. So for each payment type, I want to have a different grid view/URL. Is there a way to utilize the same UI component ...
0
votes
0answers
35 views

UI component form, field dependency drop-down Magento 2

I have drop-down field on UI component form and I want when i choose option 2 'Instead of native cross-sells block', I want to hide conditions field Drop-down field <field name="...