The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [data-provider]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
22 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="...
0
votes
0answers
14 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 ...
0
votes
0answers
18 views

Filter Options value when creation configurable product magento 2

I have a custom attribute that i will create my product configurable according to it and every product has his specific values so i want to filter the options when creation product to just show me the ...
0
votes
1answer
33 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 ...
0
votes
0answers
16 views

What is the correct way to join 2 tables in DataProvider for Admin Grid?

I want to join my order table with the Magento order table to display data on my custom grid. The correct way to add fields to a DataProvider is by using addFieldStrategies and addFilterStrategies via ...
0
votes
0answers
11 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
1answer
34 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 ...
1
vote
2answers
302 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 ...
0
votes
0answers
97 views

Custom Ui DynamicRows component not pulling in data

I am fairly new to custom UI components and I'm attempting to build DynamicRows component in order to allow the user to add new rows for delivery method options on the product page. I have created ...
1
vote
0answers
112 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 ...
2
votes
1answer
614 views

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

I have created a custom module using UI component form and i am facing issue while edit form data is not showing. Below is UI form code with given path. /app/code/Namespace/Modulename/view/...
0
votes
0answers
191 views

Add Custom Product Form Custom Data Source Without Overriding Product Data Source

I've added a dynamic rows element which is populated from a custom table. This is working fine but the datasource for this ui component overrides the default product data source and the default ...
1
vote
1answer
325 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 ...
2
votes
0answers
191 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:...
1
vote
1answer
982 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\...
0
votes
2answers
910 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 ...
2
votes
1answer
316 views

Magento 2: Uicomponent grid filter with multiple values as params

in this example <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="update_url" xsi:type="url" path="mui/index/render"/> &...
2
votes
2answers
817 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\...
3
votes
0answers
808 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 ...
1
vote
1answer
598 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&...
1
vote
2answers
1k 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/...
0
votes
1answer
100 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 ...
6
votes
1answer
929 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\...
3
votes
1answer
279 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 ...
8
votes
1answer
2k 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 ...
2
votes
0answers
113 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 ...
1
vote
5answers
3k 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\...
4
votes
1answer
342 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 ...
2
votes
0answers
328 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"&...
0
votes
1answer
712 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 ...
2
votes
0answers
345 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 ...
2
votes
2answers
3k 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. ...
6
votes
5answers
8k views

How to setdata for field in form UI

Is there a right way pass data (request value) to form ui-component? I have try to setData from DataProvider define in form-ui.xml but not work. After form load complete this field must be populated ...
3
votes
1answer
2k views

uiComponent Form. How to show data from DB table

I'm trying to understand uiForm Component. I'm stucked in My module settings page. I created database table with settings in one row. And now I must to get default data and show them in Form. My main ...
4
votes
1answer
2k views

How to properly populate ui-select component

I would like to copy the new category picker, from product edit form, to my custom form. I found out that this component based on \Magento_Ui\view\base\web\js\form\element\ui-select.js so i added ...
1
vote
1answer
569 views

How do you join a column for shipment grid?

I've already been able to add my column to the sales_order_shipment_grid. Now it's time to join the data from another table so we can display it. Approach 1: Some articles online suggest adding a ...
16
votes
1answer
2k views

Magento 2: What's the Difference Between the Two Grid Component Data Providers?

In Magento 2.1, there are 25 total UI Component listing/grid data providers configured and in use. Their data provider classes and ui_component files are listed below Magento\Bundle\Ui\DataProvider\...