Magento 2 actions column in backend grid registry.js error on click any collumnAdding filterable 'Manage Stock' column to catalog admin gridMagento 2: What's the Difference Between the Two Grid Component Data Providers?I created a custom module ,but getting error, not able to figure out what the error is about. How to get out of this error?Fatal error: Call to undefined method MagentoFrameworkViewElementUiComponentDataProviderDataProvider::addField()Adminhtml Grid giving error Magento 2Shipment grid custom mass action problem with UiComponentFactory::argumentsResolver()Magento 2 Grid custom column value in Ui Listingadmin grid not workingMagento 2.3 Can't view module's front end page output?Deleted ShipperHQ module causing error in “All Customers” section of Magento 2

How exploitable/balanced is this homebrew spell: Spell Permanency?

Different meanings of こわい

Should I tell management that I intend to leave due to bad software development practices?

Why is it a bad idea to hire a hitman to eliminate most corrupt politicians?

Does int main() need a declaration on C++?

How do conventional missiles fly?

What is a Samsaran Word™?

What reasons are there for a Capitalist to oppose a 100% inheritance tax?

How dangerous is XSS

Can someone clarify Hamming's notion of important problems in relation to modern academia?

How badly should I try to prevent a user from XSSing themselves?

how do we prove that a sum of two periods is still a period?

Can I hook these wires up to find the connection to a dead outlet?

Avoiding the "not like other girls" trope?

What Exploit Are These User Agents Trying to Use?

Was the Stack Exchange "Happy April Fools" page fitting with the '90's code?

Is it possible to create a QR code using text?

Forgetting the musical notes while performing in concert

Why was Sir Cadogan fired?

How can saying a song's name be a copyright violation?

Finitely generated matrix groups whose eigenvalues are all algebraic

Could the museum Saturn V's be refitted for one more flight?

How many wives did king shaul have

Can a virus destroy the BIOS of a modern computer?



Magento 2 actions column in backend grid registry.js error on click any collumn


Adding filterable 'Manage Stock' column to catalog admin gridMagento 2: What's the Difference Between the Two Grid Component Data Providers?I created a custom module ,but getting error, not able to figure out what the error is about. How to get out of this error?Fatal error: Call to undefined method MagentoFrameworkViewElementUiComponentDataProviderDataProvider::addField()Adminhtml Grid giving error Magento 2Shipment grid custom mass action problem with UiComponentFactory::argumentsResolver()Magento 2 Grid custom column value in Ui Listingadmin grid not workingMagento 2.3 Can't view module's front end page output?Deleted ShipperHQ module causing error in “All Customers” section of Magento 2













0















When I click anywhere on the Grid I get the following:



enter image description hereenter image description hereenter image description here
Actions xml:



...
<actionsColumn name="actions" class="VendorModuleUiComponentListingGridColumnBlogAction">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="indexField" xsi:type="string">blog_id</item>
</item>
</argument>
</actionsColumn>
...


BlogAction:



<?php

namespace VendorModuleUiComponentListingGridColumn;

use MagentoFrameworkUrlInterface;
use MagentoFrameworkViewElementUiComponentContextInterface;
use MagentoFrameworkViewElementUiComponentFactory;
use MagentoUiComponentListingColumnsColumn;

class BlogAction extends Column

const URL_PATH_EDIT = 'vendor/blog/edit';


protected $urlBuilder;
protected $_storeManager;

public function __construct(
ContextInterface $context,
UiComponentFactory $uiComponentFactory,
UrlInterface $urlBuilder,
array $components = [],
array $data = []
)
$this->urlBuilder = $urlBuilder;
parent::__construct($context, $uiComponentFactory, $components, $data);



public function prepareDataSource(array $dataSource)

if (isset($dataSource['data']['items']))
foreach ($dataSource['data']['items'] as &$item)
if (isset($item['blog_id']))
$item[$this->getData('name')] = [
'edit' => [
'href' => $this->urlBuilder->getUrl(
static::URL_PATH_EDIT,
[
'blog_id' => $item['blog_id']
]
),
'label' => __('Edit')
]
];



return $dataSource;




It seem that it's related to the actionsColumn as if I remove the xml then on click grid no error happen. I just can't figure it out what I am missing some sort of registry perhaps?



Anyone have any idea?










share|improve this question


























    0















    When I click anywhere on the Grid I get the following:



    enter image description hereenter image description hereenter image description here
    Actions xml:



    ...
    <actionsColumn name="actions" class="VendorModuleUiComponentListingGridColumnBlogAction">
    <argument name="data" xsi:type="array">
    <item name="config" xsi:type="array">
    <item name="indexField" xsi:type="string">blog_id</item>
    </item>
    </argument>
    </actionsColumn>
    ...


    BlogAction:



    <?php

    namespace VendorModuleUiComponentListingGridColumn;

    use MagentoFrameworkUrlInterface;
    use MagentoFrameworkViewElementUiComponentContextInterface;
    use MagentoFrameworkViewElementUiComponentFactory;
    use MagentoUiComponentListingColumnsColumn;

    class BlogAction extends Column

    const URL_PATH_EDIT = 'vendor/blog/edit';


    protected $urlBuilder;
    protected $_storeManager;

    public function __construct(
    ContextInterface $context,
    UiComponentFactory $uiComponentFactory,
    UrlInterface $urlBuilder,
    array $components = [],
    array $data = []
    )
    $this->urlBuilder = $urlBuilder;
    parent::__construct($context, $uiComponentFactory, $components, $data);



    public function prepareDataSource(array $dataSource)

    if (isset($dataSource['data']['items']))
    foreach ($dataSource['data']['items'] as &$item)
    if (isset($item['blog_id']))
    $item[$this->getData('name')] = [
    'edit' => [
    'href' => $this->urlBuilder->getUrl(
    static::URL_PATH_EDIT,
    [
    'blog_id' => $item['blog_id']
    ]
    ),
    'label' => __('Edit')
    ]
    ];



    return $dataSource;




    It seem that it's related to the actionsColumn as if I remove the xml then on click grid no error happen. I just can't figure it out what I am missing some sort of registry perhaps?



    Anyone have any idea?










    share|improve this question
























      0












      0








      0








      When I click anywhere on the Grid I get the following:



      enter image description hereenter image description hereenter image description here
      Actions xml:



      ...
      <actionsColumn name="actions" class="VendorModuleUiComponentListingGridColumnBlogAction">
      <argument name="data" xsi:type="array">
      <item name="config" xsi:type="array">
      <item name="indexField" xsi:type="string">blog_id</item>
      </item>
      </argument>
      </actionsColumn>
      ...


      BlogAction:



      <?php

      namespace VendorModuleUiComponentListingGridColumn;

      use MagentoFrameworkUrlInterface;
      use MagentoFrameworkViewElementUiComponentContextInterface;
      use MagentoFrameworkViewElementUiComponentFactory;
      use MagentoUiComponentListingColumnsColumn;

      class BlogAction extends Column

      const URL_PATH_EDIT = 'vendor/blog/edit';


      protected $urlBuilder;
      protected $_storeManager;

      public function __construct(
      ContextInterface $context,
      UiComponentFactory $uiComponentFactory,
      UrlInterface $urlBuilder,
      array $components = [],
      array $data = []
      )
      $this->urlBuilder = $urlBuilder;
      parent::__construct($context, $uiComponentFactory, $components, $data);



      public function prepareDataSource(array $dataSource)

      if (isset($dataSource['data']['items']))
      foreach ($dataSource['data']['items'] as &$item)
      if (isset($item['blog_id']))
      $item[$this->getData('name')] = [
      'edit' => [
      'href' => $this->urlBuilder->getUrl(
      static::URL_PATH_EDIT,
      [
      'blog_id' => $item['blog_id']
      ]
      ),
      'label' => __('Edit')
      ]
      ];



      return $dataSource;




      It seem that it's related to the actionsColumn as if I remove the xml then on click grid no error happen. I just can't figure it out what I am missing some sort of registry perhaps?



      Anyone have any idea?










      share|improve this question














      When I click anywhere on the Grid I get the following:



      enter image description hereenter image description hereenter image description here
      Actions xml:



      ...
      <actionsColumn name="actions" class="VendorModuleUiComponentListingGridColumnBlogAction">
      <argument name="data" xsi:type="array">
      <item name="config" xsi:type="array">
      <item name="indexField" xsi:type="string">blog_id</item>
      </item>
      </argument>
      </actionsColumn>
      ...


      BlogAction:



      <?php

      namespace VendorModuleUiComponentListingGridColumn;

      use MagentoFrameworkUrlInterface;
      use MagentoFrameworkViewElementUiComponentContextInterface;
      use MagentoFrameworkViewElementUiComponentFactory;
      use MagentoUiComponentListingColumnsColumn;

      class BlogAction extends Column

      const URL_PATH_EDIT = 'vendor/blog/edit';


      protected $urlBuilder;
      protected $_storeManager;

      public function __construct(
      ContextInterface $context,
      UiComponentFactory $uiComponentFactory,
      UrlInterface $urlBuilder,
      array $components = [],
      array $data = []
      )
      $this->urlBuilder = $urlBuilder;
      parent::__construct($context, $uiComponentFactory, $components, $data);



      public function prepareDataSource(array $dataSource)

      if (isset($dataSource['data']['items']))
      foreach ($dataSource['data']['items'] as &$item)
      if (isset($item['blog_id']))
      $item[$this->getData('name')] = [
      'edit' => [
      'href' => $this->urlBuilder->getUrl(
      static::URL_PATH_EDIT,
      [
      'blog_id' => $item['blog_id']
      ]
      ),
      'label' => __('Edit')
      ]
      ];



      return $dataSource;




      It seem that it's related to the actionsColumn as if I remove the xml then on click grid no error happen. I just can't figure it out what I am missing some sort of registry perhaps?



      Anyone have any idea?







      module grid magento2.2.2 custom-column-grid






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 18 hours ago









      Juliano VargasJuliano Vargas

      586523




      586523




















          1 Answer
          1






          active

          oldest

          votes


















          0














          Ok found where the actual problem comes from and why the error occur.



          It comes form inlineEdit editor config within columns I comment it out and the error is gone



          e.g



          ...
          <argument name="data" xsi:type="array">
          <item name="config" xsi:type="array">
          <item name="editorConfig" xsi:type="array">
          <item name="selectProvider" xsi:type="string">vendor_blog_grid_index.vendor_blog_grid_index.vendor_blog_grid_columns.ids</item>
          <item name="enabled" xsi:type="boolean">true</item>
          <item name="indexField" xsi:type="string">blog_id</item>
          </item>
          <item name="editor" xsi:type="array">
          <item name="editorType" xsi:type="string">text</item>
          <item name="validation" xsi:type="array">
          <item name="required-entry" xsi:type="boolean">true</item>
          </item>
          </item>
          <item name="storageConfig" xsi:type="array">
          <item name="provider" xsi:type="string">vendor_blog_grid_index.vendor_blog_grid_index.listing_top.bookmarks</item>
          <item name="namespace" xsi:type="string">current</item>
          </item>
          <item name="childDefaults" xsi:type="array">
          <item name="fieldAction" xsi:type="array">
          <item name="provider" xsi:type="string">vendor_blog_grid_index.vendor_blog_grid_index.vendor_blog_grid_columns.actions</item>
          <item name="target" xsi:type="string">startEdit</item>
          <item name="params" xsi:type="array">
          <item name="0" xsi:type="string">edit</item>
          <item name="1" xsi:type="string">$ $.$data.rowIndex </item>
          </item>
          </item>
          <item name="storageConfig" xsi:type="array">
          <item name="provider" xsi:type="string">vendor_blog_grid_index.vendor_blog_grid_index.listing_top.bookmarks</item>
          <item name="root" xsi:type="string">columns.$ $.index </item>
          <item name="namespace" xsi:type="string">current.$ $.storageConfig.root</item>
          </item>
          </item>
          </item>



          ...



          Somewhere in here there's something not quite right!






          share|improve this answer























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "479"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f268341%2fmagento-2-actions-column-in-backend-grid-registry-js-error-on-click-any-collumn%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Ok found where the actual problem comes from and why the error occur.



            It comes form inlineEdit editor config within columns I comment it out and the error is gone



            e.g



            ...
            <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
            <item name="editorConfig" xsi:type="array">
            <item name="selectProvider" xsi:type="string">vendor_blog_grid_index.vendor_blog_grid_index.vendor_blog_grid_columns.ids</item>
            <item name="enabled" xsi:type="boolean">true</item>
            <item name="indexField" xsi:type="string">blog_id</item>
            </item>
            <item name="editor" xsi:type="array">
            <item name="editorType" xsi:type="string">text</item>
            <item name="validation" xsi:type="array">
            <item name="required-entry" xsi:type="boolean">true</item>
            </item>
            </item>
            <item name="storageConfig" xsi:type="array">
            <item name="provider" xsi:type="string">vendor_blog_grid_index.vendor_blog_grid_index.listing_top.bookmarks</item>
            <item name="namespace" xsi:type="string">current</item>
            </item>
            <item name="childDefaults" xsi:type="array">
            <item name="fieldAction" xsi:type="array">
            <item name="provider" xsi:type="string">vendor_blog_grid_index.vendor_blog_grid_index.vendor_blog_grid_columns.actions</item>
            <item name="target" xsi:type="string">startEdit</item>
            <item name="params" xsi:type="array">
            <item name="0" xsi:type="string">edit</item>
            <item name="1" xsi:type="string">$ $.$data.rowIndex </item>
            </item>
            </item>
            <item name="storageConfig" xsi:type="array">
            <item name="provider" xsi:type="string">vendor_blog_grid_index.vendor_blog_grid_index.listing_top.bookmarks</item>
            <item name="root" xsi:type="string">columns.$ $.index </item>
            <item name="namespace" xsi:type="string">current.$ $.storageConfig.root</item>
            </item>
            </item>
            </item>



            ...



            Somewhere in here there's something not quite right!






            share|improve this answer



























              0














              Ok found where the actual problem comes from and why the error occur.



              It comes form inlineEdit editor config within columns I comment it out and the error is gone



              e.g



              ...
              <argument name="data" xsi:type="array">
              <item name="config" xsi:type="array">
              <item name="editorConfig" xsi:type="array">
              <item name="selectProvider" xsi:type="string">vendor_blog_grid_index.vendor_blog_grid_index.vendor_blog_grid_columns.ids</item>
              <item name="enabled" xsi:type="boolean">true</item>
              <item name="indexField" xsi:type="string">blog_id</item>
              </item>
              <item name="editor" xsi:type="array">
              <item name="editorType" xsi:type="string">text</item>
              <item name="validation" xsi:type="array">
              <item name="required-entry" xsi:type="boolean">true</item>
              </item>
              </item>
              <item name="storageConfig" xsi:type="array">
              <item name="provider" xsi:type="string">vendor_blog_grid_index.vendor_blog_grid_index.listing_top.bookmarks</item>
              <item name="namespace" xsi:type="string">current</item>
              </item>
              <item name="childDefaults" xsi:type="array">
              <item name="fieldAction" xsi:type="array">
              <item name="provider" xsi:type="string">vendor_blog_grid_index.vendor_blog_grid_index.vendor_blog_grid_columns.actions</item>
              <item name="target" xsi:type="string">startEdit</item>
              <item name="params" xsi:type="array">
              <item name="0" xsi:type="string">edit</item>
              <item name="1" xsi:type="string">$ $.$data.rowIndex </item>
              </item>
              </item>
              <item name="storageConfig" xsi:type="array">
              <item name="provider" xsi:type="string">vendor_blog_grid_index.vendor_blog_grid_index.listing_top.bookmarks</item>
              <item name="root" xsi:type="string">columns.$ $.index </item>
              <item name="namespace" xsi:type="string">current.$ $.storageConfig.root</item>
              </item>
              </item>
              </item>



              ...



              Somewhere in here there's something not quite right!






              share|improve this answer

























                0












                0








                0







                Ok found where the actual problem comes from and why the error occur.



                It comes form inlineEdit editor config within columns I comment it out and the error is gone



                e.g



                ...
                <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                <item name="editorConfig" xsi:type="array">
                <item name="selectProvider" xsi:type="string">vendor_blog_grid_index.vendor_blog_grid_index.vendor_blog_grid_columns.ids</item>
                <item name="enabled" xsi:type="boolean">true</item>
                <item name="indexField" xsi:type="string">blog_id</item>
                </item>
                <item name="editor" xsi:type="array">
                <item name="editorType" xsi:type="string">text</item>
                <item name="validation" xsi:type="array">
                <item name="required-entry" xsi:type="boolean">true</item>
                </item>
                </item>
                <item name="storageConfig" xsi:type="array">
                <item name="provider" xsi:type="string">vendor_blog_grid_index.vendor_blog_grid_index.listing_top.bookmarks</item>
                <item name="namespace" xsi:type="string">current</item>
                </item>
                <item name="childDefaults" xsi:type="array">
                <item name="fieldAction" xsi:type="array">
                <item name="provider" xsi:type="string">vendor_blog_grid_index.vendor_blog_grid_index.vendor_blog_grid_columns.actions</item>
                <item name="target" xsi:type="string">startEdit</item>
                <item name="params" xsi:type="array">
                <item name="0" xsi:type="string">edit</item>
                <item name="1" xsi:type="string">$ $.$data.rowIndex </item>
                </item>
                </item>
                <item name="storageConfig" xsi:type="array">
                <item name="provider" xsi:type="string">vendor_blog_grid_index.vendor_blog_grid_index.listing_top.bookmarks</item>
                <item name="root" xsi:type="string">columns.$ $.index </item>
                <item name="namespace" xsi:type="string">current.$ $.storageConfig.root</item>
                </item>
                </item>
                </item>



                ...



                Somewhere in here there's something not quite right!






                share|improve this answer













                Ok found where the actual problem comes from and why the error occur.



                It comes form inlineEdit editor config within columns I comment it out and the error is gone



                e.g



                ...
                <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                <item name="editorConfig" xsi:type="array">
                <item name="selectProvider" xsi:type="string">vendor_blog_grid_index.vendor_blog_grid_index.vendor_blog_grid_columns.ids</item>
                <item name="enabled" xsi:type="boolean">true</item>
                <item name="indexField" xsi:type="string">blog_id</item>
                </item>
                <item name="editor" xsi:type="array">
                <item name="editorType" xsi:type="string">text</item>
                <item name="validation" xsi:type="array">
                <item name="required-entry" xsi:type="boolean">true</item>
                </item>
                </item>
                <item name="storageConfig" xsi:type="array">
                <item name="provider" xsi:type="string">vendor_blog_grid_index.vendor_blog_grid_index.listing_top.bookmarks</item>
                <item name="namespace" xsi:type="string">current</item>
                </item>
                <item name="childDefaults" xsi:type="array">
                <item name="fieldAction" xsi:type="array">
                <item name="provider" xsi:type="string">vendor_blog_grid_index.vendor_blog_grid_index.vendor_blog_grid_columns.actions</item>
                <item name="target" xsi:type="string">startEdit</item>
                <item name="params" xsi:type="array">
                <item name="0" xsi:type="string">edit</item>
                <item name="1" xsi:type="string">$ $.$data.rowIndex </item>
                </item>
                </item>
                <item name="storageConfig" xsi:type="array">
                <item name="provider" xsi:type="string">vendor_blog_grid_index.vendor_blog_grid_index.listing_top.bookmarks</item>
                <item name="root" xsi:type="string">columns.$ $.index </item>
                <item name="namespace" xsi:type="string">current.$ $.storageConfig.root</item>
                </item>
                </item>
                </item>



                ...



                Somewhere in here there's something not quite right!







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 18 hours ago









                Juliano VargasJuliano Vargas

                586523




                586523



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Magento Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f268341%2fmagento-2-actions-column-in-backend-grid-registry-js-error-on-click-any-collumn%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                    Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                    Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form