Questions tagged [uicomponent]
Denotes questions regarding Magento Ui Components
1,254
questions
0
votes
0
answers
2
views
Add thumbnail preview for dynamic row field
In magento 2 it is easy to add a Thumbnail column within a listing Ui Component, like so:
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:...
0
votes
0
answers
14
views
How to set the default value of a selection column to be checked or unchecked
I have a data grid used as part of a form in the admin area for a custom entity. I have this data populating as I need, with one exception. I need the check-boxes to be checked by default for certain ...
0
votes
0
answers
9
views
how to add a check to show the button or not in the ui-components?
I need to not show the some button if my entity id (current page) = 2 (reserved value from configuration). How can I do that? I haven't seen such an implementation in ui-components yet.
0
votes
1
answer
27
views
How to display custom database table in admin grid using Ui component M2.4.5 PHP8.1
I have created a custom module with custom database table with 3 columns.
I have setup an admin page with menu etc. and can load the data from the database using the ResourceModel Collection and ...
0
votes
0
answers
11
views
UI component condition bases visiblitty
in Magneto 2.4.1 Admin ui component form, I've following code
'type' => [
'arguments' => [
'data' => [
'config' => [
'label' => __('Test'),
...
0
votes
0
answers
17
views
How to create Image uploader with multiple fieldset Magento2
<fieldset name="dealz_info" sortOrder="11">
<argument name="data" xsi:type="array">
<item name="config" xsi:type=&...
0
votes
1
answer
15
views
How to add Progress Bar in Save Controller Magento2?
I wanted to add a progress bar while the code in Save controller is executing on Clicking Save Button in Ui_component Form in Magento2?
How Can I implement this
Thanks !!
0
votes
0
answers
19
views
Magento2 Integrate UI component in Frontend
I am integrating UI grid with complete CRUD operations with UI component on frontend. But i am facing 1 issue of caching, when we edit from Actions column on frontend grid, the data provider is called ...
0
votes
0
answers
27
views
how to add ui select field with ajax call option magento 2 admin add/edit form
How to add a field in the add/edit for ui select with search option. I have added in the add form but it is not working.
Can you please let me know that how to use ui select field in the form Magento ...
1
vote
2
answers
169
views
Magento 2.4.2 - 2.4.5 - custom page builder element not working after upgrade
We have a custom page-builder component for adding slides. The component has stopped functioning after upgrade to 2.4.5.
The admin panel page builder editor loads fine, we can add our component, it ...
0
votes
1
answer
26
views
Magento 2 How add PDF Uploader to UI Component?
How do I add a PDF uploader to the ui component? I could find how to add an image uploader, but I can't find how to do it for pdf files.
0
votes
1
answer
43
views
How to disable Stock Status in Advance Inventory section under product page
I need to disable stock status field under advance inventory section in the product page.
I don't want to remove it but show it disabled. Please suggest.
0
votes
0
answers
33
views
Magento 2 Not getting data in Save controller when using Product Grid in UI Component Form in custom module
I have taken reference from below links:
https://www.rohanhapani.com/magento-2-how-to-add-product-grid-in-ui-form-using-uicomponent/
Magento 2 : How to add a product grid in custom module using ui ...
0
votes
0
answers
14
views
Failed to load the js file component in console
I am trying to show current time with running seconds on a page under adminhtml. I wrote the code for js in Namespace_Module/view/adminhtml/web/js/timejs.js And the code is
define(
['jquery', '...
0
votes
1
answer
27
views
Magento 2 hide edit/delete/view link on grid based on condition
I want to hide link for edit/delete/view on grid based on
certain condition.
How can I do that with ui component
2
votes
1
answer
67
views
Magento 2 Grid not showing up
I have been trying to create a grid list for my custom module. All code part is done and the grid not displayed. Reviewed the code many times but I couldn't find the issue.
Here is my code:
Test\...
0
votes
0
answers
82
views
How to Create Custom Image Uploader in Page-Buillder Magento 2?
I have created a Custom Image Uploader Component in Page-Builder, When am trying to drag and drop the component it gives error. Does anyone know how to fix it?
pagebuilder/content_type/example_video....
0
votes
0
answers
30
views
Programmatically add row to DnyamicRows component
I'm trying to programmatically add a row to a dynamic-rows component by extending the dynamic-rows and form components.
When an inserted form is submitted, the form data is inserted into the ...
4
votes
4
answers
274
views
How to show data in grid based on url parameter in magento 2 custom form?
I created a custom form to save the data(category - table_category). In the form page i have a grid which shows Faqs related to the category. Currently i am getting all the faqs(table_faq), which are ...
0
votes
1
answer
36
views
Mageto 2.4.5 uiComponent html template not loaded
I am new to Magento, trying to do a simple block page
in view/frontend/templates.clockroute.phtml :
<div id="uic-demo-container" data-bind="scope: 'clockroute'">
</div>
...
0
votes
2
answers
59
views
How to insert a listing in admin form in magento 2 UI Component method?
I have a Category, and Questions form in my custom module. Questions are added against category.
Each question can be belong to a category or multiple category.
I need to insert a listing on category ...
0
votes
0
answers
103
views
Custom Inventory Source Item
I am trying to render the extension_attibute value from databases to show on UI component field for Custom Inventory Source Item (please refer following screenshot)
For that I have created -
create ...
0
votes
1
answer
21
views
Input label not rendering in admin ui form
I have an xml form (ui component) where two inputs are inside of a container where breakLine is set to false so the inputs are side by side. This is working for the most part, the issue is that the ...
0
votes
0
answers
25
views
How to add inline edit in product grid?
Can someone explain me how to add inline editor to catalog product grid in Magento 2.4.5?
I saw many tutorials but all of them use element *..._columns_editor* which doesn't exist in product listing.
...
1
vote
0
answers
45
views
The "componentType" configuration parameter is required for the "custom" component Magento 2
I am facing this error due to custom field-set on the category form. Those attributes are related to the Affirm Payment.
Error i am getting,
"1 exception(s): Exception #0
(Magento\Framework\...
0
votes
0
answers
25
views
Template literals `${ $.dataScope }` not parsing in UI Components
I am writing a module with a UI Component whose Modifier uses the ${ $.dataScope } Template Literal to pass information to a Modal. This is the code snippet, greatly simplified:
Ui/DataProvider/...
0
votes
1
answer
88
views
Magento 2 ui component required but hidden
I have a field which i don't want to show. But this field needs to be required.
this field should be populated when we click on specific button via ajax.
so we have something like that:
<form>
...
1
vote
1
answer
63
views
Magento 2 : Is possible to use the custom collection in existing datasource for ui Component?
I have created one UiComponent form using one datasource. Now i want to add the custom field inside this form but this field data will come from separate collection. So how can i use the different ...
0
votes
0
answers
23
views
How to extend sales_order_grid.xml listing within my new ui component listing?
How to extend sales_order_grid.xml listing within my new ui component listing?
I created new module where i want to show the same order grid as admin panel with filtered orders as per custom flag data....
0
votes
1
answer
32
views
Remove column xml uicomponent if condition is true
I have 2 columns in xml with js component, but i want display each column if condition is true, so if precio_anterior is not empty and value is different to 0 show precio_anterior column if not, show ...
0
votes
0
answers
36
views
Magento 2.4 how add tabs ui_component in module custom adminhtml
Good morning, could someone help me render some tabs in adminhtml with a custom module? I already managed to create the tabs, but the content is not displayed correctly, it is added in the same space ...
0
votes
0
answers
20
views
Magento 2 grid uiComponent filters not work for custom string values
My column definition looks like this:
<column name="child_customer_id">
<argument name="data" xsi:type="array">
<item name="config" xsi:...
0
votes
0
answers
204
views
Magento 2.4.2 How to implemented single image upload in from the admin side using the UI component and Save and Show in product Edit/ Add Page
I am Trying to create Custom Field to upload single Image. With the help of various documentation I tried to implement using UI Component. Thanks for your help my code is given below.
app/code/PCsoft/...
0
votes
0
answers
24
views
Display custom UI Component in modal
I have created a UI Component based on the code from Alan Storm's excellent tutorial. This UI Component displays as expected in pages with dedicated routes.
However, the UI Component will not display ...
0
votes
0
answers
52
views
Can I insert listing under the form in modal?
I have a form on modal after click button, I want to insert a list under that form. How can I do that?
I want something like:
1
vote
0
answers
16
views
edit inline ui_component doesnt working
Help me check..
I cann't edit inline grid ui component
I dunno where I wrong? Here is my code for columns part in :
scportal_subscriptions_subscriptions_amountused_edit.xml
<?xml version="1.0&...
0
votes
0
answers
54
views
Keyword Search in Sales Order Grid
I have added entity_id to my sales order grid. This is working and i am able to apply a filter.
It was pretty straight forward to add the extra column, as entity_id already exists in the ...
2
votes
2
answers
310
views
Magento 2 ui/form/field template Error since Upgrade from 2.3.7 to 2.4.5-p1
since I updated from Magento 2.3.7 to 2.4.5-p1 I'm getting some errors with some xml layouts.
On one of my XML files where I had
<item name="template" xsi:type="string">ui/...
0
votes
0
answers
70
views
How to replace default filter of a specific field by custom filter in admin grid of custom table . Still keep pagingnation, other filter
In Admin grid filter type select.By default Magento, it will add this string to SQL query Where main_table.my_field = 'my-value'. Now I want it will be Where FIND_IN_SET('my-value',main_table.my_field)...
0
votes
0
answers
51
views
how to pass javascript variable to php in template
I am creating admin form using template I have multiple select dropdown. I want to filter dropdown based on the value of other but problem is how i can assign the javascript value to php variable so ...
0
votes
0
answers
15
views
How to make query sort by number not by alphabet in admin grid filter?
In my custom_table have custom_field (type varchar)- but I only insert the number on that field.
My problem is when I filter custom_field by range in the admin grid,
the query is
select `main_table`.* ...
0
votes
0
answers
180
views
Modal display different data for different buttons used to open it
A Magento admin feature that I am developing consists of adding an array of Foo objects to Products. Each Foo is configured by clicking on a "Configure Foo" button, which opens a modal.
...
0
votes
0
answers
4
views
Multiple (child) XML ui_component forms on same page, Controller post data
Is there a way to have child ui_component forms inside a parent ui_component form?
Doing this in a layout file creates 3x seperate forms on the same page (these forms display on the same page already)
...
1
vote
1
answer
337
views
Ui component issue after upgrading from Magento 2.4.2 to 2.4.5-p2
After upgrading Magento version the custom checkout component created to handle customer informations does not work anymore, with the previous version everything was fine but now I am getting those ...
0
votes
1
answer
38
views
DynamicRows component doesn't show saved data on edit form (Adminhtml)
The ui form component works good on "New" action but, if I save this:
Then, the edit action shows this:
The data is being saved correctly in my custom table after submitting the "New&...
1
vote
0
answers
132
views
How to get the Form post data on custom button click in magento2
I have created a custom button in UI component magento2 I want to have post data ( id ) on button click in controller
Button in UI Component
<item name="combinations" xsi:type="...
1
vote
0
answers
44
views
Filtering ui grid by using filter_url_params, making filters visible
I need to pre-filter a UI component grid based on parameters passed by url so I'm using the filter_url_params in the xml definition of the UI component.
It's working great, but when you put a ...
1
vote
0
answers
83
views
How to create dynamic source model in Magento 2 depend on database?
Suppose MyEnity has column "status" in the database it values is 0,1,2
0 => None
1 => 'Good'
2 => 'Bad'
I want In Add Page, source model display
1 => 'Good'
2 => 'Bad'
In ...
0
votes
1
answer
427
views
Magento 2: How to change "Actions" column position in UI Component?
I have a problem with my ui components in admin.
The Actions always is after "Enabled" column :/
This column should be last. How to change it position?
I tired to add attribute sortOrder=&...
1
vote
1
answer
196
views
Show and hide Grid Column
How to change the grid column value basend on the certain value in another column of that record (row).
I have two column step1_formula and step2_formula if user selected step2 formula from UI form i ...