1

Magento 2 saves admin user UI preferences in the database in ui_bookmark table.


1

Try the following way: <exportButton name="export_button" class="SR\OrderRefundReason\Ui\Component\ExportButton"/> Now create following class: app/code/SR/OrderRefundReason/Ui/Component/ExportButton.php <?php namespace SR\OrderRefundReason\Ui\Component; use Magento\Framework\AuthorizationInterface; use Magento\Framework\View\Element\...


1

A good way to keep configuration data out of the javascript is to declare a provider in the base component’s XML so it will be able to find that data provider component. Under the node, add a node like this (where [ComponentName] is the name of the component): <item name="js_config" xsi:type="array"> <item name="provider" xsi:type="string">[...


1

Add datasource to di.xml <item name="sales_order_view_document_grid_data_source" xsi:type="string">Invoicing\Moloni\Model\ResourceModel\Orders\Collection</item> Now looks like: <type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory"> <arguments> <argument name="collections" xsi:type="...


1

Check my updated answer.. <?xml version="1.0" encoding="UTF-8"?> <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> <!-- Integration --> <argument name="data" xsi:type="array"> <item name="js_config" xsi:type="...


1

I am placing this answer, to allow someone having same issue get help. Investigating how magento core solves this issue (thinking I am missing something in my UI Component setup), I found this line of code: https://github.com/magento/magento2/blob/2.3-develop/app/code/Magento/Catalog/Controller/Adminhtml/Product/Initialization/Helper.php#L202 $productData[...


Only top voted, non community-wiki answers of a minimum length are eligible