2

you can do so just by checking if your Entity id exists In your data provider. public function getData() { if (!empty($this->loadedData)) { return $this->loadedData; } $items = $this->collection->getItems(); foreach ($items as $page) { $rec = $page->getData(); $rec['edit'] = true; // true when the data is set ...


1

Try adding config as an argument in your initialize method: initialize: function (config) { this._super(); totals.getItems().subscribe(function (items) { this.setItems(items); }.bind(this)); console.log(config) } I have only done this with x-magento-init and not PHP Layout Processors but I'm hoping it works the same. If it works it ...


1

As per the default behavior of magento clicking the Save and Continue Edit Button will take you to the "Save" Controller only. However in the Save Controller you will get a URL Param called "back". If this parameter is present in the URL the control will be redirected to the Edit Page. If the "back" parameter is not present it ...


1

try this public function getButtonData() { $message ='Are you sure you want to do this?'; $url = $this->getUrl("api/data/deleteheader"); return [ 'label' => __('Save Header'), 'class' => 'myclass', 'on_click' => 'confirmSetLocation('{$message}', '{$url}')', '...


1

hello you can change your code with following code $fieldset->addField('registered', 'button', array( 'label' => Mage::helper('core')->__('Send e-mail to all registered customers'), 'value' => Mage::helper('core')->__('Button Caption'), 'name' => 'registered', 'class' => 'form-button', ...


1

This is my idea hope it help. In getButtonData() function add on_click to javascript function something like 'saveHeader()' add your template in layout call to UI form: sample we have MODULE-NAME_CONTROLLER-NAME-ACTION.xml this content like <body> <referenceContainer name="content"> <uiComponent name="your_ui_form"...


1

Can this be achieved without using a custom JS? No, you need to extend the Magento_Ui/js/form/element/select component to add new features to the select (disabling it when the value is selected is a new feature). How do I disable the field after a value is selected? You can do this by subscribing to the value property of your custom select, which is "...


1

I just fixed it by using mentioned below steps Store param value in session in controller public function execute() { $this->_catalogSession->setTokenId($this->request->getParam('entity_id')); $this->_view->loadLayout(); $this->_view->loadLayoutUpdates(); $this->_view->getPage()->getConfig()->getTitle()->set(__('Redeem ...


1

Remove the company column in grid. view/adminhtml/ui_component/customer_listing.xml <?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"> <columns name="...


1

The widget is initialised correctly your missing .lib-dropdown() in your theme's less, in your example the minimum less would be .example-dropdown-2 { .lib-dropdown(); } Look at the docs on lib-dropdown for info on the paremeters, by default it generates css for the .action.toggle and ul.dropdown sibling classes as per your example html


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