New answers tagged

0

I dont know what exactly goes wrong with that implementation of view models, but seems like creating observable properties this way (e.g. testObservable: ko.observable(1)) make that property shared through all same models. I tested some other solution with same logic and it works in a different way: component define([ 'jquery', 'uiComponent', ...


0

By default, there is no zIndex/z-index property available for modals. It will set higher z-index on the last created popup. So last created popup will be always on top with higher z-index. But you can use modalClass property to set CSS class and set required z-index on that class. var options = { ... modalClass: 'css_class_for_z_index' ... }; OR if ...


0

Thank you, I understood what was wrong in my grid: I had no action column (no need since the edit was inline) so I had no apply button. Adding the action column made the apply button visible so now I can see that the value of the field gets saved for all the selected items. Thanks


0

This method is worked for me .I have changed by model file refering this https://webkul.com/blog/join-two-table-and-create-grid-in-admin-section-using-ui-component-in-magento2/ and then I have changed the _initSelect() instead of joinleft I used $this->getSelect()->where("main_table.user_id = ".$Id);


1

All in column field is useful when you want to apply same value to the multiple columns. So, rather than copy pasting same value by clicking on each columns, you can just select records and under your desired column, in All in column you can put your values and click Apply and than Save. Here's an example to perfectly describe how it works: Suppose I ...


0

All in column is used to set entered values in all the selected rows. In this example (CMS/Page), I'm editing 4 rows simultaneously. Let's say, if I want to update Title for all selected rows to "Test Title", then I just need to set "Test Title" in "All in Column" input field and click Apply button. This will set Title for all selected rows to "Test Title"...


3

Add this into your listing xml file Vendor/Module/view/adminhtml/ui_component vendor_manage_listing.xml <container name="listing_top"> ......................................................................... ......................................................................... .......................................................................


2

Add the below code in Vendor/Module/view/adminhtml/ui_component/seoreport_category_listing.xml file in the filters tab. <filterSelect name="value"> <argument name="optionsProvider" xsi:type="configurableObject"> <argument name="class" xsi:type="string">X247commerce\Seoreports\Model\Config\Source\Status</argument> </...


0

add this into your layout file <uiComponent name="admin_user_listing"/> app/code/VendoreName/ModuleName/etc/di.xml di.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/ObjectManager/etc/config.xsd"> <type name="Magento\Framework\View\Element\...


1

<field name="text_example" formElement="input"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="default" xsi:type="string">Default text here</item> </item> </argument> <settings> <label ...


1

You are not allowd to use the tag value in that specific ui component. If you want the input to have a default value then you should make your component look like this <text name="text_example" template="ui/form/field"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <...


0

I have Added this for Categories you can change options to Yours <field name="select_Categories"> <argument name="data" xsi:type="array"> <item name="options" xsi:type="object">Magento\Catalog\Ui\Component\Product\Form\Categories\Options</item> <item name="config" xsi:type="array"> <item name="...


0

<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> <listingToolbar name="listing_top"> <filters name="listing_filters"> <filterSelect name="private_group" provider="${ $.parentName }" component="Magento_Ui/js/form/...


2

The Multiselect component provides the interface for a list or a data set. Multiselect allows selecting multiple items. <form> ... <fieldset> ... <field name="multiselect_example" formElement="multiselect"> <settings> <dataType>text</dataType> <label ...


1

If anybody stumbles across this in the future. Based on Pritam Info 24's answer we modified our Price.php class to also include the formatting for the tiered prices as such: <?php /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ namespace Company\MyModle\Ui\DataProvider\Product\Modifier; use Magento\...


3

Add this line <container name="listing_top"> ........................................... ........................................... ........................................... <exportButton name="export_button"/> </container>


0

I found the answer in this post: Magento 2 : Form Ui Component doesn't submit field in the html content I needed to add the data-form-part="shipping_rule_form" to all the inputs.


0

I manage this validation by trick while saving data In save controller you should check condition for blank data if(!$Data['textfield'] && !isset($Data['image'])){ $this->messageManager->addNoticeMessage( __( 'please add image or text.' ) ); $...


1

Found it. All you have to do is add the extends="parent_name" attribute to the listing or form node as follows: <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" extends="parent_listing_componnt" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">


0

The best way to add color picker in field is . <field name="md_label_background_color"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="component" xsi:type="string">Magento_Ui/js/form/element/color-picker</item> <item name="template"...


1

in ui_form.xml <field name="custom_link" sortOrder="20" formElement="input"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="source" xsi:type="string">custom_test</item> <item name="elementTmpl" xsi:type="string">Vendor_Module/input.html</...


0

The problem was the data_scope apparently, I simplified it and it now works as expected: <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> <fieldset name="sidebar_content"> <argument name="data" xsi:type="array"> <item name="...


1

I'm also facing the same problem on UI component fileUploader in Magento 2.3.2. The best way to handling dynamic fileUploader is extending core Upload class. Below steps are solution for above problem, Step 1: Have to create Uploder class in your custom module. For instance, below are example code, File: app\code\Vendor\Module\File\DynamicFileUploader.php ...


0

Just adding this here for others, also refer to Magento 2 : Custom grid keeps spinning and grid doesn't load if it's still not working.


1

Put this <column name="created_at" class="vendore\ModuleName\Ui\Component\Listing\Column\DateChangeActions"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="editor" xsi:type="string">text</item> <item name="filter" xsi:type="string">dateRange<...


0

app/code/VendoreName/ModuleName/view/adminhtml/ui_component product_form.xml <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> <fieldset name="[Fieldet_Name]"> <field name="new_column"&...


Top 50 recent answers are included