Questions tagged [uicomponent]

Denotes questions regarding Magento Ui Components

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

How to filter admin order grid collection on click of anchor link

How to filter on hold orders on sales order admin grid. I have a requirement to display count of on hold orders, when they click on message, user should see filtered collection. I have attached the ...
0
votes
0answers
10 views

Magento 2 How to implement UI Component XML Infinite Scroll data

I am working on One custom Module and loading all the Old orders items on the frontend page by using the UI component form. Currently data is coming in pagination but we have required it to load with ...
0
votes
0answers
8 views

Remove Custom Category Attribute from Another Module

I have a module has created a custom attribute on my category pages which I need hidden. I do not want to mess with functionality or break anything by actually deleting the attribute or remove module ...
0
votes
0answers
15 views

How to add Custom Button under the price box in Product add/edit form in Magento 2.4 Admin

I want to add a button under the price box on the product add/edit admin form and call a custom controller function when click on it by AJAX request. Please Help ....!!
0
votes
1answer
33 views

Magento DataProvider not populating data for edit in form

I am creating a simple CRUD operation in admin panel using UI Component. While trying to edit an entry, the fields are not prefilled. However, I can see the dataProvider is providing data in JSON. ...
0
votes
0answers
11 views

Magento 2 Admin Menu buttons (UiComponent buttons) behaviour

Question What do I need to setup a Button's behaviour, or is there CRUD built-in Magento 2 behaviour when I do not specify a Controller? This is The tutorial article I am following. I found the ...
0
votes
0answers
11 views

How to load opions in admin panel select ui component by ajax?

I need to make form in admin panel with ui components. In this for I need to choose customer/customers in, so I chose formElement="select". I created ui xml file, options provider and js ...
0
votes
0answers
11 views

How to display selected/Filtered rows in admin grid ( Ui-component predefined filter)

I have created a custom grid in Magento 2 using ui component. Currently it displays all the records to each admin user but i want to show data on the basis of admin user name. i.e if User A logs in, ...
0
votes
2answers
25 views

How to selected option in multiselect UI Component in Magento2

I need to select one or more option before rendering this page. I tried several ways but unable to find an exact way to solve my issue. I need to select Tea and Other Tea Option before loading. Form....
0
votes
0answers
25 views

Magento 2 how to get session value on Javascript Knockout Js?

I'm trying to get a session variable that is created when a customer is redirected to a controller. I'm using \Magento\Framework\Session\SessionManagerInterface $coreSession So I can use it at any ...
0
votes
0answers
28 views

Magento 2 Dynamic row edit issue

I am facing an issue on the edit page with the dynamic row. I added two dynamic row blocks. One block for global off days and one is for Postal code delay days. In both containers, I added a date ...
0
votes
0answers
21 views

How can I save my ui component form to the database?

I created a ui component, but I have no idea how to save it in the database. I know I have to pass it to the controller for it to pass to the model but I don't know how my controller should be, here's ...
0
votes
1answer
25 views

Import CSV file with Ui form and process it - error 404

I want to create a file uploader using Ui form, upload and process it in adminpanel. this is my Ui form code <field name="fileUploader" formElement="fileUploader"> ...
0
votes
0answers
14 views

CollectionFactory Undefined type, inside DataProvider.php

Whenever I try to use the CollectionFactory it appears as an error saying "undefidy type", what is happening? follow the code example <?php namespace Basic\Info\Model; use Basic\Info\...
0
votes
1answer
21 views

HOW TO USE UI COMPONENTS?

guys i'm learning how to use ui components and following doubts arose, i found a code in the magento documentation of a form, but the documents is difficult to understand and does not explain what is ...
0
votes
0answers
11 views

Magento 2.4 Uicomponent Dynamic Rows Add button not working after one

I am trying to add Dynamic Rows Ui Component in Product Add/Edit form in admin area, below is my product_form.xml file code: <?xml version="1.0" encoding="UTF-8"?> <!-- /**...
0
votes
1answer
17 views

Add custom javascript after js components load

I'm still a novice when it comes to Magento 2 frontend with jsLayout, requireJS, etc. I have a custom module where, in javascript, I am trying to attach an onchange listener to the email textbox. I ...
0
votes
1answer
22 views

Magento 2 admin grid csv export not working properly

I added csv export in admin grid and want to have export functionality whether admin user have filtered results or not. now I'm filtering data by daterange. some dates are working properly and gives ...
0
votes
1answer
16 views

Magento 2: Add CSS class to ui_component listing table

I want to add a custom CSS class to the ui_component listing table. The listing table is created as follows: <?xml version="1.0" encoding="UTF-8"?> <listing xmlns:xsi=&...
0
votes
1answer
29 views

How to pass current value of Ui form field in js file

I want to pass the value of checkbox in custom js file, I am using UI component to create a chechbox. So I have to pass this value to js file and then use that value in Model. I am not able to pass ...
0
votes
0answers
9 views

Magento 2 How create Time Range Picker in ui component?

I want create for my working store hours https://devdocs.magento.com/guides/v2.4/pattern-library/getting-user-input/date_time_selector/date_time_selector.html#time-range-picker How i can create this? ...
0
votes
0answers
11 views

Magento 2 filter is not recognised in select all

When I select all in the admin grid it is passing all the items in the collection not recognizing the filter. I have added a filter using ui_component like this below. <argument name="data&...
0
votes
1answer
18 views

Magento 2 call url param in Model Collection filter

I'm trying to get some data that matches the id in the URL. I have a param in admin URL like below. seller/items/index/id/9/ I'm using the admin UI component which is working fine. My model code ...
2
votes
1answer
44 views

Magento 2 - Unable to add record in dynamic rows in admin product edit page

I am trying to add a dynamic row fields in admin product edit page. I tried the below code in my product_form.xml file. <?xml version="1.0" encoding="UTF-8"?> <form xmlns:...
0
votes
1answer
24 views

How to create ui-select in form programmatically

My code to generate the field multi-select $fieldset->addField('multiselect2', 'multiselect', array( 'label' => __('Select Type2'), 'class' => 'required-entry',...
0
votes
1answer
19 views

Update part of existing ui component

here is the component I have and want to modify (I just need to add a simple sentence in there, nothing that "should be" too hard) : <field name="imageUploader_0"> ...
0
votes
0answers
21 views

Magento 2 how to use many components inside a component knockout js?

I wan't to import components and use them just like in Vue or ReactJs. Where you can export default component And import it by using import Name from './path/to/component'; and finally use it How ...
1
vote
1answer
21 views

difference between the Block and UI_Component to Make grid and Form at admin side?

What is the Difference way to use of Block and ui_components to Make the Admin side grid and form and fields and elements in the form, can someone explain, which is better way to choose and Why ?
1
vote
1answer
31 views

How to add store selector multi select field in admin form without using ui component?

I am trying to get store selector in admin form. I created this form without using ui component. I tried the below code but it didn't worked and I got the below error. The expected input field is: ...
0
votes
1answer
48 views

Error: Call to a member function setPageSize() on null

I want to override admin side product grid collection, When Override then it's showing below error Error: Call to a member function setPageSize() on null in /var/www/html/2.4.1/vendor/magento/...
0
votes
1answer
47 views

Magento 2.4 How to add custom column to admin Magento_Review grid (Marketing → All Review page)?

I want to add custom column to admin grid on Marketing → All Review page (Magento_Review module). I create module app/code/Vendor/Module/etc/module.xml <?xml version="1.0" encoding="...
0
votes
2answers
104 views

UI Component form show dropdown or multiple text fields based on content

I have a form for adding animals with a field called species. This UI Component is: <field formElement="select" name="species" sortOrder="10"> <argument name=...
0
votes
1answer
38 views

Magento 2 UI Component admin form conditional required validation

I need to create 2 fields(checkbox and input) in admin catalog form. I created both fields using UI Component. I need to add a condition that when checkbox is checked then input field will be required....
0
votes
0answers
18 views

Magento2 UI component focusout event not working

I am using ui component for one the form in admin and for one element i am using component js class to trigger some operations on that element, it only gives onUpdate function, is there anything we ...
0
votes
0answers
15 views

How to add Product Attribute Values from Custom Model Data

I'm building a module for Supplier Inventory. I created a UI Component for creating Suppliers in the dashboard. In my Model\Data I added the Supplier Name. class Supplier extends ...
0
votes
0answers
12 views

Magento 2 how to use step navigator of checkout in a custom template?

I'm trying to use the checkout step navigator bar in another template. I tried this but did not work, it just shows buttons: in phtml. <div id="steps" data-bind="scope:'steps'"&...
0
votes
0answers
8 views

Magento 2: How to filter section show when page load?

I have set one grid in frontend using Uicomponent. I want to filter section expand when page load, after customer filter any value that it will close. I try using below code. $(document).ajaxComplete(...
2
votes
1answer
110 views

Magento 2: How to send ID of checked insertListing grid to save data controller

I have created a insertListing grid inside fieldset, Now I want to save id of checked grid items inside my custom collection field news_ids I get this data in save controller params But I am not ...
0
votes
1answer
21 views

Page Builder not working for the custom ui form admin

I have added the page builder in my admin form.But when I try to click on the setting icon for the elements it does not work. <field name="description" formElement="wysiwyg" ...
0
votes
0answers
27 views

How get data from custom Ui Fieldset

I have this code <modal name="test_modal"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="...
0
votes
2answers
75 views

Magento 2 - Create simple hello world script with uiComponent

I try to create my own Component and reuse it. So I created these files: THEME = app\design\frontend\company\fresh Component File: THEME\web\js\elements\custom\input_number.js define([ "...
1
vote
1answer
34 views

How can I use the Magento UI library to display a link as a button?

I'm migrating an old module to Magento 2.4 and I would like to use the native classes from the Magento UI library to replace my Bootstrap classes. What classes should I use to make my links look like ...
0
votes
1answer
17 views

Actions dropdown too far right in Admin Listing

I've managed to add a second action to the actions column in the admin product listing. It works fine until I add another column to the display. The dropdown menu doesn't "follow" the ...
0
votes
1answer
70 views

WYSIWYG Editor Issue in UI Component multi row not working

I have created dynamic rows with multiple descriptions filed(1 In a row) with the WYSIWYG editor. Editor showing and working with first one-row element and rest element which added by adding more it's ...
0
votes
1answer
27 views

Magento 2 Override view/adminhtml/ui_component XML file of third party Module

I am using Third Party Module for Admin section which used UI component to display data.The file path is Vendoname/Modulename/view/adminhtml/ui_component/news_data_listing.xml file .I want to override ...
0
votes
1answer
34 views

Filter after 'null' column values in the shipment grid issue on Magento 2.3.4

I've added a new column to the shipments grid: email_sent, by creating this file: app/code/VendorName/ModuleName/view/adminhtml/ui_component/sales_order_shipment_grid.xml and this code: <?xml ...
0
votes
2answers
28 views

Update data in block template using knockout js

I'm at a dead end. I'm trying realise custom pagination on frontend page. So, hear my code in modulename/view/frontend/web/js/blog.js define([ 'jquery', 'ko', 'uiComponent', 'domReady!'...
0
votes
0answers
29 views

Error: Call to undefined method [Vendor]\[Module]\Ui\DataProvider\DriverDataProvider::addField()

I have override product collection for url key filter by below code File [Vendor]\[Module]/view/adminhtml/ui_component/product_listing.xml Code <?xml version="1.0" encoding="UTF-8&...
0
votes
0answers
21 views

How can I display multiple UI grid in admin panel with different database in magento 2? here I have attached screenshot also

Here is the picture where I have created one module and I have added 2 menu now when I open second menu that time UI grid should be open which should be different from 1st menu grid
0
votes
0answers
29 views

Magento 2: set default data for an ui component field from DataProvider

I want to set a default value for an uiComponent field (shipping_id in this case) from the DataProvider (not from the form's XML, but from PHP). This is because the default value is dynamic (i am ...

1
2 3 4 5
24