Questions tagged [uicomponent]

Denotes questions regarding Magento Ui Components

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

Magento 2.3 - Ui component grid, link with target blank not working

I have a custom module with an admin grid. On this, grid, a column is responsible to show the name of the customer assigned to that specific record. In order to have the customer's name column I added ...
0
votes
1answer
81 views

Magento 2 How to Save Data in Two Different Table (Admin Grid Form)

In NewAction.php I am saving data in two different tables both have a different model for new contact it's working well, but while editing existing data it's updating first table row and creating a ...
0
votes
0answers
17 views

Magento 2 - How to make a dynamic dropdown in custom checkout module

I have a custom module that uses most of the sample form in the Magento 2 docs for a static form - https://devdocs.magento.com/guides/v2.3/howdoi/checkout/checkout_form.html I need to have the select ...
0
votes
0answers
16 views

Magento 2 - Using UI Component as input for widget

So far, in all the documentation and tutorials for UI Components that I've come across (Like the documentation here: https://devdocs.magento.com/guides/v2.3/ui_comp_guide/bk-ui_comps.html, or in ...
0
votes
1answer
18 views

Magento 2 UI Grid - How to add tabs in columns control?

I want to add Tabs in Columns control of my custom extension’s UI Grid to categorize columns. For Example:
0
votes
1answer
20 views

Where does magento save UI Grid filter data?

Where does magento save UI component Grid applied filter data? Deleted session table but applied filter data does not save there
0
votes
1answer
43 views

Magento 2 ; How to pass custom params with save button in UI Form

I want to pass a value/params via the save button of my ui adminform. i tried this: public function getButtonData() { $objectManager = \Magento\Framework\App\ObjectManager::getInstance()...
0
votes
1answer
30 views

How to use Magento2 Module Select2 Ui Component ? How active module in default.xml?

I succesfull installed Magento2 Module Select2 Ui Component from https://github.com/weprovide/magento2-module-select2-uicomponent I never had to use UI components. I want to active Select2 on ...
0
votes
1answer
22 views

Use Default Value checkbox for custom category ui_component

I added a custom category attribute "Listing Image" and want to display the checkbox "Set Default Value", like "Thumbnail" and "Category Image". I already compared the ui_component, but couldn't find ...
0
votes
0answers
28 views

Create custom button in form ui-component Magento 2

I want to add a custom button like image. I tried this code in ui-component but it not show Code for Button <button name="save" class="Anshu\Custom\Block\Adminhtml\Custom\Edit\SaveButton"/> ...
0
votes
0answers
14 views

Magento 2 Show extension_attributes In Adminhtml Form

I have plugins for Source entity. Save plugin saves POST request extension attributes to my database table. Get & GetList loads it from my table and sets extension attributes. Now my struggle is ...
0
votes
0answers
13 views

How to set multiselect options (label and value) from data provider not from form xml?

I want to set multi-select options from the data provider. I achieve this from passing it from the form XML but I want to set it directly from the data provider so I make it dynamic. If I set it in ...
0
votes
1answer
32 views

Magento2 Admin form for Image Upload

I have created a module in magento2 to upload image field. Saving the image hiding the image upload field option in backend public function execute() { /** @var \Magento\Backend\Model\...
0
votes
1answer
24 views

Create Custom POST form without grid and model in magento 2

I need a custom post form in Magento back-end where I can select some fields and post form , on its post action I need to download a csv depending on form fields. This post form has dependable fields ...
0
votes
1answer
18 views

Hide order export button for all admin users except admin role

I want to hide or remove Export button from custom admin grid for all admin user except admin role. I have added below code to add export button on the grid in my ui component file. <exportButton ...
0
votes
1answer
42 views

Magento 2.3.1 UI Component Dynamic Rows, “Is Default” is not getting saved

I have created a dynamic form using Dynamic Rows in UI component form as shown in following screenshot: Following is my code samples for your reference: Namespace\ModuleName\view\adminhtml\...
-1
votes
1answer
25 views

UI listing Understanding

What does this line do? <item name="provider" xsi:type="string">order_listing.entity_listing_data_source1</item> <item name="deps" xsi:type="string">order_listing....
0
votes
1answer
47 views

Get order_id in UI Component GRID in a new Sales View Tab

After a lot of tries, I couldn't manage to get an order_id to an Admin Grid Data provider. This is the code I have To add a new tab to order view view/adminhtml/layout/sales_order_view.xml <?...
0
votes
1answer
35 views

Export button in custom Grid Magento 2

I have created a custom grid and trying to add export button for it. here is the code i used in my listing.xml file. <exportButton class="Magento\Ui\Component\ExportButton"> <...
2
votes
1answer
51 views

Complex UI component, using dynamic rows in admin, for a product attribute, is not saving when removing all rows

I created a complex product attribute entry in product admin, which uses dynamic rows. Same idea as this core one: UI works fine, but if you remove all rows, and save, the attribute does not update, ...
0
votes
0answers
41 views

The configuration parameter “componentType” is a required for “” component

I am using Magento version. 2.2.6. When I navigate to add product and select specific attribute set "Test" I am getting error main.ERROR: The configuration parameter "componentType" is a ...
0
votes
2answers
26 views

Remove option from adminhtml UI component XML file. Delete Mass Action Option in Magento 2.3

I want to remove (or hide) the delete option from the product listing mass action in the Admin section. I cannot find the correct way to do this. This shows how to hack the core files which is not ...
2
votes
1answer
54 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 ...
0
votes
1answer
33 views

Magento 2.3 product attribute and ui component

First, I created the UI component: Vendor/Module/view/adminhtml/ui_component/product_form.xml <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:...
0
votes
0answers
26 views

Magento 2 - Create csv file for download in admin

I need to create a file in mangento 2 admin. I'm using a button to get in a controller route. My form ui component: <item name="buttons" xsi:type="array"> <item name="save" ...
1
vote
1answer
19 views

Filter in custom grid doesn't work normally. Magento2

When I filter twice, it works fine after the third time display only one product in each row. grid_record_grid_list.xml <?xml version="1.0" encoding="UTF-8"?> <!-- /** * Grid record ...
0
votes
0answers
15 views

is it possible to add text input field with a save button in order grid?

Here is the ui_component to add a text columns, but i want to add a textfield with save button and when i press the save button, it will call ajax to save the value to custom table, is it possible to ...
1
vote
1answer
71 views

Issue with edit Option in Action column admin grid

While Creating the admin grid the action column remains empty and the Edit option is not visible. How to resolve this issue. This is my Ui_Component file (action section) <actionsColumn name="...
2
votes
2answers
68 views

Magento2 - admin price input's are rounding value to 2 decimals

This is a Magento CE 2.3.2 project In this project we need to work with 4 decimals for prices. We have tried this https://github.com/lillik/magento2-price-decimal which works fine, all prices are ...
0
votes
0answers
37 views

magento2 how to add product grid in ui form using ui component

Magento 2 : How to add a product grid in custom module using ui component? this refreance is not work me it is display look like layout grid
2
votes
1answer
22 views

same row content repeat in the whole page grid while navigate pagination

The problem : When you apply filter or pagination, then removing filter, same row content being repeat in the whole page grid. Here is the file where I am making mistakes? <?xml version="1.0" ...
1
vote
1answer
38 views

Magento 2: Is it possible to add search column in ui component?

How can I add filter row in customer grid just like fixed PHP grid using UI component? I don't want to change any other things of UI component grid.
0
votes
0answers
15 views

Magento 2 collection filters for GRID are not working

I'm developing a module for Magento 2, but when trying to create a GRID, my filters are not working. I have some settings in other class and load it to the collection, using it inside the ...
2
votes
1answer
32 views

UIComponent Form - Spinner showing

In my Form UIComponent only a spinner is showing. I compared my implementation to several ways it is implemented. The grid is showing just fine, i only have the problem in the form. My layout file: &...
2
votes
6answers
289 views

Date Range filter not working in custom Grid Magento 2

I have created the custom sales report using ui component. Grid is loading correctly. I have added the date range filter as like below. <column name="created_at" class="Magento\Ui\Component\...
0
votes
0answers
10 views

Magento 2 uicomponent form.xml set data

How do one populate data if form field is in Add New product E.G: I don't seem to find a way manipulate the fields from DataProvider If is New then: $this->_loadedData return Array() I've tried ...
0
votes
0answers
28 views

Magento 2 ui component admin field disabled/enable checkbox on userChanges event

Similar to native Magento URL Key Create Permanent Redirect for old URL: I have a custom module and wants to achieve same result: I have created a group exactly how category_form.xml in my_form.xml ....
2
votes
1answer
45 views

how to add dynamic filter in magento 2 admin ui components?

I want to filter the Magento 2 UI component based on $custom value in Magento 2 how I can do the dynamic filters for Magento UI components? anyone have any idea listing_component.xml <?...
0
votes
0answers
20 views

Hide Magento2 Payment

i am creating apple pay payment method in magento2 which i created successfully but the issue is my payment method showing currently on all devices i want to use this check if (!window....
0
votes
0answers
19 views

How to add custom module web path in wysiwyg component in magento2

I want to set content in wysiwyg editor using jQuery: Currently i have set image path with media url and it's working fine. like: <img src="{{media url=&quot;ktpl/bannermanagement/...
1
vote
0answers
35 views

Magento 2 How to Get selected data in innerlisting using ui component?

How to Get selected data in innerlisting using ui component?
0
votes
3answers
44 views

Overwrite magento_theme adminhtml ui_component xml file

I am trying to overwrite following file: vendor/magento/module-theme/view/adminhtml/ui_component/design_config_form.xml The changes work when editing the file directly in vendor dir, however, I am ...
1
vote
0answers
27 views

How to hide the ui component field using form modifier on condition in magento2

I have two ui component filed : i want to make visibility false of second component if first's value is true how to use Form modifier in magento2 ui
0
votes
1answer
18 views

Add htmlContent via Magento\Ui\DataProvider\Modifier\ModifierInterface

where i can find an example to add html content in my form using ModifierInterface. Or how to add part of ui_configuration in that modifier?
1
vote
0answers
74 views

Magento 2 UI component. Disable field based on values of two other fields

I need the product field "disabled" attribute to be dependent from two other checkbox fields. For now I have it dependent from one field like this (DataModfier): protected function customizeFieldSub(...
4
votes
0answers
40 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 ...
3
votes
0answers
27 views

How to save data using insertlisting component in magento2? [closed]

I want to create a form like see in the picture. Therefore I have used ui component->insertlisting component but I don't understand that how to save functionality will work. I want to send selected ...
0
votes
1answer
22 views

uiComponent popup with form in Magento 2 front in product detail page

I want to add custom form in popup with a few custom fields before the product gets addtocart. Once the user clicks on addtocart button it will open popup and ask for a few inputs after fill-up ...
3
votes
1answer
29 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 ...
0
votes
1answer
60 views

Magento 2 - Wysiwyg disable for store view

I added a wysiwyg as category eav attribute and all works correctly, but I want that the content of my wysiwyg is different for each store view. If I switch store view in category page, my wysiwyg ...