Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [data-provider]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
27 views

Issue with Data Provider date range filter

A custom column is populated when a date range filter from UI is applied. I noticed weird behavior. When I apply a date filter it works fine until I decide to apply the date range I filtered before. ...
Dramorian's user avatar
0 votes
1 answer
27 views

Edit Data for Store View UI component is not displaying with selected value

I have created a custom module and have used UI component to display store view field in Form page. I am facing this issue only in Production Mode. When I open the Edit form page the Store View UI ...
Kaushik Kumar Roy's user avatar
1 vote
1 answer
124 views

Inject scoped config into DataProvider in Magento 2.4

I am trying to make a tabular/grid view in the Admin area for some data that comes from an external API. For that I implemented a data provider. In here I need to create an instance for the external ...
Comforse's user avatar
  • 111
1 vote
1 answer
1k views

How to load existing data in "Dynamic Rows" in product edit form

I'm adding Dynamic Rows in my product edit form like this. data How can I populate the saved custom data in the edit product page with custom DataProvider?
Arshad Muhammad's user avatar
1 vote
1 answer
766 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 ...
クジェー's user avatar
1 vote
0 answers
156 views

Magento 2.4: UI component paging with non-collection DataProvider

I have listed UI component with DataProvider that is not a collection. I want to make pagination for it but when I add simply toolbar and pagination nodes in XML it does not work. I can see that I ...
LeTeeL's user avatar
  • 42
1 vote
0 answers
876 views

Get Param value to insert listing dataprovider

Hello I have form with grid, it call insert listing. I check param value, but still I see NULL. I dont know why get this value. Anybody who can help me? adminreporty_data_form.xml <insertListing ...
David Synek's user avatar
0 votes
1 answer
48 views

Collection DataProvider - Strange behavior

I've been killing for hours and no result. I don't understand this strange behavior, can anyone please explain this to me? It's unbelievable ... Thanks for All!!! $this->collection = $Collection; $...
David Synek's user avatar
0 votes
0 answers
317 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\...
lucas's user avatar
  • 309
1 vote
0 answers
162 views

Show thumbnail image via Data Provider in Dynamic Rows in admin form magento 2

How can I show image thumbnail (edit form) for dynamic rows created by Magento's Row Pattern using Data Provider / Modifier. Like this link: Magento2 How to add row pattern/dynamic rows to the custom ...
Yogita's user avatar
  • 784
0 votes
1 answer
575 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 ...
Robert's user avatar
  • 73
0 votes
1 answer
422 views

Grid not receiving array data from DataProvider

In my module, I use the Listing (grid) UI component to render data from an array. The data for the grid is provided by a DataProvider.php class getData() method. For some reason, when I use a simple ...
audio-engineer's user avatar
0 votes
0 answers
309 views

how to provide data source for sales order grid using ui component in magento2 frontend

The grid basically should contain sales order basic details such as order number, order status along with it should contain number of invoiced items, number of shipped items, number of invoices along ...
sivakumar's user avatar
  • 287
0 votes
2 answers
1k views

Hide a Ui Component Field based on condition on product edit

I have created custom field in Magento 2.4.1 product edit page, product_form.xml <field name="type" formElement="select"> <argument name="data" xsi:...
amith lal's user avatar
  • 790
0 votes
0 answers
288 views

Magento 2 UiComponent endless loop spinner

In this case I was trying to create a UI in admin page using UI Component. I got and endless spinner loop. Here is my code. view > adminhtml > layout > cscustomersupport_customer_index.xml &...
Sam's user avatar
  • 147
0 votes
1 answer
512 views

Ui/Component using plugin in magento2

I get QA review as below: example/module-mymodule/UiC/DataProvider.php is too similar to the Magento 2 file magento/module-cms/magento-module-cms-103.0.0-beta32/Ui/Component/DataProvider.php Since ...
user90874's user avatar
0 votes
1 answer
206 views

Where should DataProvider.php go?

I'm seeing examples of putting the DataProvider class in the following location: [YourNameSpace]\[YourModule]\Model\[ComponentName]\DataProvider However, the documentation makes me believe it should ...
James's user avatar
  • 1
2 votes
0 answers
114 views

Magento 2: How to fetch UI Grid Component using data from external REST API

I wanna know how to fetch data into a UI Grid using external data retrieved from a REST API. Anyone has a step by step solution to achieve this?
Jean Almeida's user avatar
5 votes
1 answer
2k views

How to disable an UI component field while add new item and enable while editing?

Hi i'm new at magento 2 and i want to disable Ui Component field while creating item, and enable the field while editing. Well, following this tutorial: Disabling a UI component field upon condition ...
Rafael Fagundes's user avatar
0 votes
1 answer
932 views

Magento 2 Get Request Param Always Null

I can't seem to get request params from a Data Provider. I've modified Magento\Review\Ui\DataProvider\Product\ReviewDataProvider.php to log (also tried var_dump) the information, but it always returns ...
Hunter's user avatar
  • 809
1 vote
1 answer
685 views

When i tried to export the customer i got this error Undefined offset: 0 in magento 2.3

I tried to export the customer from the magento i caught the error i didn't got any solution to resolve it. Notice: Undefined offset: 0 in /var/www/html/development/amt/vendor/magento/module-...
Sabareesh's user avatar
  • 358
3 votes
1 answer
3k views

How to Create a Sliding Modal Popup on Custom Button in Magento2 admin

How can we create a modal popup on a custom button like it does when we click on the "Add Attribute" button when editing the product in the backend. I want to create a similar feature on a custom ...
hardik malkani's user avatar
1 vote
2 answers
2k 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"> <...
Attila Naghi's user avatar
  • 4,023
0 votes
1 answer
689 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="...
Waqar Ali's user avatar
  • 2,329
1 vote
0 answers
2k 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 ...
Radu's user avatar
  • 460
0 votes
1 answer
932 views

How does Magento 2 sku generated automatically?

I want to know how does Magento 2 sku generated automaticlly. I wonder when I type product name while creating new product in admin then its sku is automatically typed in sku field. I researched ...
Arshad Hussain's user avatar
0 votes
1 answer
121 views

M2 | Can we create one field by dataprovider and one field by uicmponent in single group at Product Creation Page?

I have created toggle button by uicomponent in one group and some other fields by dataprovider way in another group. Can I get toggle button into group created by dataprovider way. As it is not ...
Ajwad Syed's user avatar
  • 1,591
1 vote
2 answers
1k views

Magento 2.3.1 Incompatible argument type

I have an issue on compile on customs extension: ImaginationMedia\SocialOrder\Ui\DataProvider\Sales\Order\Donation\DataProvider Incompatible argument type: Required type: string. Actual ...
Ed Tan's user avatar
  • 183
1 vote
0 answers
547 views

How To Add Custom Data Into Product Edit Form DynamicRows Ui Component

I need to know how to populate a dynamicRows ui component I have added to the product edit form in Magento 2. I've got the data coming from a custom table and the data is getting through. I have the ...
David's user avatar
  • 73
6 votes
1 answer
6k views

Magento 2.3.0 While edit UI component form data not filled up in custom module

I have created a custom module and I am currently trying to implement a UI component form, however I am facing an issue: in my edit form data is not showing. Below is UI form code with given path. /...
Chirag Patel's user avatar
  • 6,136
1 vote
1 answer
3k views

Magento 2 How to set Config Provider for all pages?

I created one module. which have helper function which returns module is enabled or not? Now I want to check if this module is enabled or not in javascript for all pages on the frontend, for that, I ...
Utsav Gupta's user avatar
  • 1,243
2 votes
0 answers
955 views

Setting custom product attribute value in magento 2

I have used below code to change the value of custom attribute when the product is viewed in admin. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
Jafar Pinjar's user avatar
  • 1,929
1 vote
1 answer
4k views

Custom Field in Product Edit form in magento2 admin

I am trying to add custom text field in product edit form in admin panel. I have used below code in etc/adminhtml/di.xml <virtualType name="Magento\Catalog\Ui\DataProvider\Product\Form\...
Jafar Pinjar's user avatar
  • 1,929
0 votes
2 answers
3k views

Magento2 how to modify admin grid collection using ui component

You guys would be knowing that usually, we are using core Magento DataProvider while creating admin grid using UI component. Sometimes, we need to add some filter or modify the basic grid collection ...
Pratik Navapara's user avatar
3 votes
1 answer
3k views

Magento 2: Uicomponent grid filter with multiple values as url params

In this example <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="update_url" xsi:...
lisa's user avatar
  • 133
2 votes
2 answers
2k views

Missing required argument $modifiers of Magento\Ui\DataProvider\Modifier\Pool

I have created a custom module. In which I want to use data modifier. I have written this code but it gives the following error: Missing required argument $modifiers of Magento\Ui\DataProvider\...
Deepak Shinde's user avatar
7 votes
2 answers
2k views

How can I pass a URL parameter to admin grid data provider?

I have a custom admin grid, which lists only the orders that contain the product given as a URL parameter. My URL is of form https://www.example.com/admin/mymodule/orders/index/product_id/123/ I ...
Juho Jaakkola's user avatar
1 vote
2 answers
2k views

admin grid not working

listing file <argument name="data" xsi:type="array"> <item name="js_config" xsi:type="array"> <item name="provider" xsi:type="string">faq_listing.faq_listing_data_source&...
Dipak Solanki's user avatar
6 votes
2 answers
4k views

Magento 2 declaring modifier PHP Fatal Error: null given in $modifiers

I get this php error: PHP Fatal error: Uncaught TypeError: Argument 2 passed to Magento\Ui\DataProvider\Modifier\Pool::__construct() must be of the type array, null given, called in /vendor/...
boat's user avatar
  • 121
0 votes
1 answer
234 views

Admingrid: Ui-component form in magento 2

I have created admin form using ui-component in backend, I have two fieldsets one(general) is containing noraml text fields another one(upload) is containing image uploder fields(small,large,extra ...
Jaisa's user avatar
  • 2,626
6 votes
1 answer
3k views

Magento 2 Extend Ui DataProvider file

I have created a module. All working fine. Just want to extend one file but can't success. I added extra field at admin tier price using this file. \Magento\Catalog\Ui\DataProvider\Product\Form\...
JACK's user avatar
  • 387
3 votes
1 answer
2k views

How to use FilterPool and Collection using the FilterApplierInterface

Hi fellow Magento developers! I'm currently trying to figure out how to use the FilterPool with classes instead of using it with the etc/di.xml. It should be possible to use filters in a grid ...
Merijn's user avatar
  • 152
13 votes
3 answers
12k views

How to pass data to another ui components DataProvider

I have a grid UI component which is inside fieldset of some edited form. I need to pass an entity_id from the edit form to grid where an I can filter collection of some items by some value, and grid ...
Mistery's user avatar
  • 133
2 votes
0 answers
355 views

How is checkoutProvider implemented?

How is the Onepage checkoutProvider implemented and how could a custom provider be written for a similar component, for example a product page "productProvider" specific to that product, with all of ...
LM_Fielding's user avatar
  • 1,533
3 votes
5 answers
10k views

Magento 2.1 UI component form addFieldToFilter() on null

I am trying to make a UI component form for creating products in Magento 2.1 module. However, I stuck with the problem that it throws this error: Fatal error: Method Magento\Ui\TemplateEngine\...
Nikolay Baychenko's user avatar
4 votes
1 answer
789 views

How does the CMS page admin form data provider gets its data?

Long story short: The CMS page admin form data provider class Magento\Cms\Model\Page\DataProvider, more specific the method getData always returns an array with a single element that contains the data ...
Marius's user avatar
  • 198k
4 votes
0 answers
500 views

HOW TO PROVIDE DataSource To UiComponent <DynamicRows>

I've Created A UIcomponent form Having As Below. <dynamicRows name="docrows"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"&...
Rizwan Khan's user avatar
  • 1,939
0 votes
1 answer
1k views

Magento 2: How do I add attributes to a custom EAV model collection?

Using Magento 2.1.3: I want to display custom EAV attributes in a admin grid, but can't figure out how to properly add them to the data provider collection. I would assume this would work, but it's ...
dbcn's user avatar
  • 754
2 votes
0 answers
535 views

Magento 2.1.2 - Product Backend EAV Attribute Field Enabled or Disabled Depends on Product Status

I have added an EAV attribute named disabled_date. I would like to attach an observer to the attribute field on product page where it is disabled if product status is enabled (1) and enabled if ...
Rendy Eko Prastiyo's user avatar
2 votes
2 answers
6k views

Magento 2 Admin Form add parameter to form submit url

I need to add a parameter from the registry to my form save action Currently i'm attempting to do this by storing my parameter in the registry, then collecting it in the the buttons save block class. ...
Frank's user avatar
  • 1,144