Questions tagged [uicomponent]

Denotes questions regarding Magento Ui Components

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

Magento2: How to mass update the custom table status from ui component grid

I have a ui component grid in admin which displays data from the custom table multivendor_product in which id is the primary key of the table and another field product_id is the product ID ...
1
vote
0answers
17 views

Magento2 : When edit data the data cannot be display?

When edit the data cannot be display in form while using ui-component under edit tabs. And also the data save as empty. Anyone know how to solve it? `` sample_form....
0
votes
0answers
9 views

Magento 2. Ui Component. Inside a JS that extends from Magento_Ui/js/form/form how do I access the data being sent to populate the form?

Can I access the data being sent to populate the form inside a JS that extends from Magento_Ui/js/form/form?
0
votes
0answers
12 views

Magento 2. Frontend. Ui Component. Disable select field after value is selected

I'm using a M2 custom Ui Component that extends from Magento_Ui/js/form/element/select so I have total control over the Javascript File. How do I disable the field after a value is selected? Can ...
2
votes
1answer
35 views

Magento 2 product_form.xml ovevride existing field

<fieldset name="product-details"> <field name="sku"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <...
1
vote
0answers
29 views

Magento 2: How to display a grid inside the customer edit tab using ui component?

Display a form and grid using ui-component inside customer edit tab on Magento2.
1
vote
0answers
26 views

Regarding Full Text Search

I have created custom grid using UI component. My Full text searching showing error "Something went wrong with processing the default view and we have restored the filter to its original state.". ...
0
votes
0answers
12 views

Is possible to create form inside listing ui?

I have already known benefits of use ui components but it comes with complexity to implements specific design. My question is there a way to create form ui contain ui elements inside of one general ...
1
vote
1answer
38 views

Magento2: How to add product images to custom ui-component admin grid

I have a custom grid using ui component method in back-end to show data from a custom table with columns as follows: id product_id user_id store_ids status adminassign created modified ...
0
votes
1answer
12 views

Input values on the edit form are empty, using UI component- Magento 2

This is my ui component file content: <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> <...
1
vote
1answer
23 views

How to get customerData in js uiComponent asynchronously?

This is the usual way to get customerData on frontend. define([ 'uiComponent', 'Magento_Customer/js/customer-data' ], function (Component, customerData) { 'use strict'; return ...
0
votes
0answers
13 views

How can i change store id on admin ui grid

i have these tables. news: id,name,lead news_store:id,news_id,store_id, this news_store has forgein keys and its work perfect. i got ui compoent grid and form when i created a news always get ...
1
vote
1answer
25 views

UI component custom column sorting not working

I am creating 3 custom columns in sales order grid column: Country Area City Filters are working but when I try to sort the column it shows Attention: Something went wrong Iksula/...
0
votes
0answers
14 views

Magento2 - How to rebuild “Customizable Options” section on another edit page?

I want to use UI Component to rebuild the product edit page in admin. Can anyone help me how can I do that? Any help would be appreciated..! Thanks In Advance..!
0
votes
0answers
8 views

How can I rebuild the “Customizable Options” section by using Ui Component?

I want to rebuild the section "Customizable Options" in product edit page
0
votes
0answers
12 views

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

I need to add a color picker to my custom widget options how would I go about doing this? Thank you
0
votes
0answers
17 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
46 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
22 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
25 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:...
2
votes
1answer
38 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
12 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
20 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
49 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
15 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
2answers
79 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
27 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
19 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
11 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
49 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
59 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
60 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
31 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
50 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
365 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
18 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
35 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
21 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
66 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
57 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
41 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
47 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 ...