Questions tagged [uicomponent]
Denotes questions regarding Magento Ui Components
1,216
questions
0
votes
2
answers
15
views
Is there any way to hide columns controls button in Magento2 admin UI component for specific user role
I have to hide "Columns" control button for specific user roles in admin UI grid. Looks like it's managed through xml <columnsControls name="columns_controls">. I tried to ...
0
votes
2
answers
21
views
How filter dropdown options based on another dropdown selection in Magento2 UI grid filters
I am struck in finding the solution for the below requirements
Assume drop down#1 and drop down#2 selection box in the Magento2 admin UI grid filters. If we select option in one drop down#1 then we ...
0
votes
0
answers
16
views
How to create dynamic field in form depend on attribute code?
I have several attribute code with some options for each.
AttributeCode select type brand - with options: adidas, nike
AttributeCode select typemanufacturer - with option: pepsi, cocacola, 7up.
When ...
1
vote
3
answers
70
views
Filter admin order by store id magento 2
I'm trying to filter orders by store instead of store view.
I have 2 stores, each has 2 store views.
I wanted to filter order with store.
I declared a collection in di.xml
<type name="Magento\...
0
votes
1
answer
16
views
UI Component Grid Export CSV doesn't work when using custom DataProvider?
I have ui_component which was using custom data provider. My problem is the Export functionality <exportButton name="export_button"/> is not working. It throws error:
Call to a member ...
1
vote
0
answers
53
views
In dynamic rows wysiwyg editor field not properly delete in magento 2?
When I added 2 or multiple dynamic rows and then delete the first row the 1st-row editor field was not deleted.
check below images
Before delete
After delete 1st row
The 1st-row editor value should ...
0
votes
0
answers
18
views
How to implement field dependency in magento 2 ui component based on an external field value
I have 2 select fields in my form
parent_company_id
salesman_code
I need to show only the salesman which have the same entity value as the selected parent company option.
Since this is not a direct ...
0
votes
0
answers
24
views
Is there any way to upload video from ui component in magento2
I am working on a custom requirement where a user can upload video from a custom UI component but I can't find any way for that. if there any way to do this in magento2?
0
votes
0
answers
29
views
Custom Collection Admin ui Grid
is it possible to use a collection with a filter for Admin Ui grid. I tried this https://webkul.com/blog/display-a-modified-collection-in-grid-using-ui_component-magento-2/ but it does not seem to ...
1
vote
1
answer
27
views
Insert child UI component inside existing one
I have 2 modules where each one has an UI component on frontend. Module A contains the main component and component of Module B should be displayed inside the component of module A. I'm not ...
0
votes
1
answer
28
views
How to add category dynamic field with textbox in admin form magento 2
Add Field in ui Form category selected in check box then display textbox for that category
0
votes
0
answers
16
views
Sales Order Item Grid (Ui Component)
I'd like to create a grid (Ui Component) in the Backoffice of Magento 2.4 to display this table sales_order_item and join it with sales_order_grid for the name of the client... (order_id)
Could You ...
0
votes
2
answers
15
views
Can't load any data in backend
I've a (random ?) <pre> added in the end of the default json rendering content in backend (for users, products...).
I'm sure I didn't touch anything from this part of the website, any ideas ?
1
vote
2
answers
41
views
How to make select ui component as a required entry in Magento 2
<form>
...
<fieldset>
...
<field name="select_example" formElement="select">
<settings>
<dataType>...
0
votes
0
answers
15
views
How to give dynamic values in to Ui component instead of the static item value
Following is the code i used to apply a default filter in Ui component grid filter.
<filters name="listing_filters">
<argument name="data" xsi:type="array&...
0
votes
1
answer
71
views
How to add text editor in the admin form and save data to the database in Magento 2
<fieldset name="content">
<settings>
<label>Wysiwyg Content</label>
</settings>
<field name="wysiwyg_example" ...
1
vote
0
answers
57
views
Page Builder was rendering for 5 seconds without releasing locks
My products have small descriptions and description attributes.
A small description is a Tinymce field and a description is a pagebuilder.
When I edit a product, if I open the content section, here ...
1
vote
0
answers
76
views
How to set an Active filter as default and clear it if we needed in admin UI component grid
I have tried 3 different ways to set a default filtering option(set entity value as current customer entity value) to my custom module's grid.
1.using _renderFiltersBefore()
protected function ...
2
votes
0
answers
39
views
How to disable massaction Dropdown conditionally ui_component Magento 2
I have implemented functionality like hiding mass actions based on some conditions. I want to assign some specific rights to other admin users.
I want functionality like, If there is no mass action in ...
0
votes
0
answers
49
views
Add UI Component in the Custom Block
Made the layout file in which I have called the custom block.
<?xml version="1.0" encoding="UTF-8"?>
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"...
4
votes
2
answers
306
views
Filter Not Working for custom column ui_component grid Magento 2
I have a grid with an admin UI component. There is a custom collection in the column. But when I apply the filter for that column then it shows me an error.
Please check my code below for the ...
0
votes
1
answer
56
views
Component sometimes not loading - "Failed to load the "Vendor_ModuleName/js/view/minitest" component in Magento 2
We are launching a Magento 2.4.2 site, and finding that the site will sometimes load all of its Javascript components and dependencies properly, but sometimes fails to load on the custom component. In ...
0
votes
0
answers
10
views
How do I set Listing UI Components to be loaded before rendering - as with ->setIsAjax(false) for Grids?
In some situations it's helpful to have grids load with the initial content, rather than via AJAX.
In M1 (or M2 with Grids) setIsAjax(false) can be used, what is the equivalent for a Listing UI ...
0
votes
1
answer
109
views
Toggle a field visibility inside a dynamic rows ui-component
I have a dynamic field ui-component inside an admin form that contains a few columns.
And I also have a toggle field outside the dynamic rows.
I want to show/hide a column inside the dynamic fields ...
0
votes
1
answer
24
views
How do I hide "Search engine Optimization" from product add/edit admin panel?
As the question states, im simply trying to hide the "Search Engine Optimization" from the admin panel, how would I do that? Im not sure whether there's somewhere where id be able to place
...
0
votes
2
answers
61
views
Sorting a UI component column from a integer that doesnt exists in magento table
Im getting my data from a external source, so its not something that can be joined with a data provider, but I need to sort by that field.
My column looks like this (random_int() is ofcourse just ...
0
votes
0
answers
25
views
in admin form how to select all child category automatically by selecting parent category?
I created product categories cms page by ui-select but when we select parent category of product cms page then sub categories of that page are not selected automatically.(image below).
I want to ...
0
votes
0
answers
37
views
Create a product chooser field with ui component form
I want to create a form field allowing to choose (multiple products and associating a position to them).
I need to get a solution where i could select a set a products and give them a position in my ...
0
votes
0
answers
29
views
How to override an existing ui component (filterSearch)
I have the task to replace the product searching process.
I manage to find out the search box was coming from
vendor/magento/module-catalog-search/view/adminhtml/ui_component/product_listing.xml
So I ...
0
votes
0
answers
26
views
How we can call multiple blocks in a single controller?
Is there a way to call multiple blocks in a single controller in Magento 2?
The below code only populate the single grid but I want it to return two blocks.
public function execute()
{
/* @...
0
votes
1
answer
16
views
Sorting custom column in ui component
I've created a custom column in the report using UI components that use DataProvider in report_listing.xml
Unfortunately, this new custom column is not able to sort.
I made also a class for this ...
0
votes
0
answers
15
views
Actions via Ajax on UI Component listing
I'm adding some custom data to products, namely fixed quantities. These are to appear on the product edit page under a Quantities "tab". I'm using UI Components not blocks. After a great ...
0
votes
0
answers
53
views
Use Select2 with Magento2.4 Component create by meta
I have created a custom product attribute of select type has 2000+ values and tried to use UI-select but it slows down my product page so I am trying to use select2 instead of UI select.
Due to some ...
0
votes
0
answers
20
views
How to hide and show option from massaction dropdown for specific filter in Magento2?
I want to show options from massaction dropdown when I apply a UI component filter? Is there any way to achieve this functionality?
0
votes
1
answer
27
views
How do i add the "coloumns" button in my admin grid?
I've been trying to add the "Columns" button
in my new custom grid UI component so that I can customize my view. Can someone tell me how it's done? I'm assuming it's a very generic function ...
0
votes
0
answers
5
views
Filter admin listing collection
I have a custom entity listed by ui component. By default it loads the entire collection as shown in every tutorial as the virtual type is just an alias for the current collection.
<type name="...
0
votes
1
answer
55
views
Custom multi select filter issue for the customer grid
I've made a custom multiselect customer attribute. The attribute code is: email_preference.
I've added this code to get a multiselect filter in the app/code/Vendor/Customer/view/adminhtml/ui_component/...
0
votes
0
answers
46
views
Magento 2 Add Custom date filter in UI Grid
I have created a custom grid for my custom table. It has a created_at column. Now I want to filter the entries by 7 days, 30 days, 90 days. ie, a dropdown with options 7days, 30 days, 90 days. How do ...
0
votes
0
answers
28
views
Magento 2: color picker is not working in ui custom form
it's show like this and I define its field name
in XML file
0
votes
0
answers
27
views
how to make a parent child relation of categories in a ui component drop down in magento 2
i have fetched the all the categories in drop thorugh ui component but i dont know how to give it a look of a parent child drop down can any one help by updating my code?
category_banner_form.xml
<...
1
vote
2
answers
119
views
How to unselect value from ui-select component in magento 2?
I have created a UI select field using PHP, with the below code of lines.
$data = [
'arguments' => [
'data' => [
'config' => [
'label' => __('...
0
votes
1
answer
263
views
How to Integrate Button component with Form component? [duplicate]
I try to add my custom button to the form, not to the header of the form, but after some fields inside the fieldset, I found some examples here https://devdocs.magento.com/guides/v2.4/ui_comp_guide/...
0
votes
1
answer
119
views
How to filter admin grid collection based on certain condition in Ui component xml file New method
I have a grid which is replicated from the sales_order_grid.
I want to show only the processing orders in the grid.So what can be done to filter that?
0
votes
1
answer
36
views
Getting Error on Add Item Page in Admin UI Component
I just created a Form with Ui_components, but When I go to this page, I'm getting the following error.
0
votes
1
answer
467
views
Magento 2 How to add the custom categories attribute field in product form? [duplicate]
I am trying to add the categories and subcategories in a small panel Exactly like the one in the Product Form in the admin panel.
I need to add it in Product Form
How to achieve this?
0
votes
1
answer
33
views
Form ui fieldset load data
I used the Magento 2 plugin in PhpStorm to create an entity with grid and form. It seems to work great until I renamed the fieldset name to “foo” and added tabs.
I already looked up many related posts/...
1
vote
2
answers
159
views
Why Magento uiRegistry not list some UI Component?
Field Create Code
$data = [
'arguments' => [
'data' => [
'config' => [
'component' => 'vendor_module/js/form/element/ui-select-...
1
vote
1
answer
59
views
How to get product id in admin product edit page when using component grid
I am trying to get request param id when editing the page in my component dataprovider file.
But getting always null value in it.
I am rendering a grid in the product edit page and I need to filter my ...
0
votes
2
answers
104
views
load region by country multi select in ui component magento 2
In the Ui-component of Magento 2, I see that we can do this to load region by country.
<fieldset name="delivery_area" sortOrder="90">
<argument name="data&...
0
votes
0
answers
32
views
Custom backend Modifier for custom product attribute with custom template for additionalInfo
I have a custom attribute and added a modifier to it, the custom attribute is a text field, the following is the modifyMeta function
/**
* {@inheritdoc}
*/
public function modifyMeta(...