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
When I click anywhere on the Grid I get the following:
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
add a comment |
When I click anywhere on the Grid I get the following:
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
add a comment |
When I click anywhere on the Grid I get the following:
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
When I click anywhere on the Grid I get the following:
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
module grid magento2.2.2 custom-column-grid
asked 18 hours ago
Juliano VargasJuliano Vargas
586523
586523
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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!
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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!
add a comment |
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!
add a comment |
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!
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!
answered 18 hours ago
Juliano VargasJuliano Vargas
586523
586523
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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