Questions tagged [data-provider]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 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
10 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
33 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
120 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
58 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
83 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
388 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
123 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
251 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 ...
1
vote
0answers
154 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
808 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
702 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
238 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
690 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
684 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
510 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
983 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
90 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
801 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
247 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
1k 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
107 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 ...
0
votes
5answers
2k 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
303 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
308 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
661 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
332 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
7k 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
0answers
523 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\...