Issue with edit Option in Action column admin gridHow can i rewrite TierPrice Block in Magento2Redeclare UI form component in Magento 2Magento 2.1 Create a filter in the product grid by new attributeMagento migration product error: UiComponentFactory->argumentsResolver('created_by', NULL)admin grid not workingCustomer export not working after creating custom attributes in magento 2.2.5Cannot export list of customer from the grid magento 2Image Uploader throws Uncaught type Error in Ui ComponentMagento2 : How to add button in admin custom module page?

Create Circle with Inner Radius

Are there any English words pronounced with sounds/syllables that aren't part of the spelling?

Do I care if the housing market has gone up or down, if I'm moving from one house to another?

Can the caster of Time Stop still use their bonus action or reaction?

Does Mathematica 12 support GT 730 CUDA?

Why is DC so, so, so Democratic?

Why is a PhD thesis typically 150 pages?

Host telling me to cancel my booking in exchange for a discount?

What does a Nintendo Game Boy do when turned on without a game cartridge inserted?

Acoustic guitar chords' positions vs those of a Bass guitar

Would using carbon dioxide as fuel work to reduce the greenhouse effect?

Is it better to deliver many low-value stories or few high-value stories?

What is a "staved" town, like in "Staverton"?

If hash functions append the length, why does length extension attack work?

Book in which the "mountain" in the distance was a hole in the flat world

How can I disable a reserved profile?

Adding gears to my grandson's 12" bike

How did pilots avoid thunderstorms and related weather before “reliable” airborne weather radar was introduced on airliners?

Source for "everyone has a specific area of Torah that they're naturally drawn to"

Pass USB 3.0 connection through D-SUB connector

Why can't a country print its own money to spend it only abroad?

Capture SQL Server queries without third-party tooling and without using deprecated features?

Reissue US, UK, Canada visas in stolen passports

Please let me know why 2/16 has a remainder of 2. Thanks



Issue with edit Option in Action column admin grid


How can i rewrite TierPrice Block in Magento2Redeclare UI form component in Magento 2Magento 2.1 Create a filter in the product grid by new attributeMagento migration product error: UiComponentFactory->argumentsResolver('created_by', NULL)admin grid not workingCustomer export not working after creating custom attributes in magento 2.2.5Cannot export list of customer from the grid magento 2Image Uploader throws Uncaught type Error in Ui ComponentMagento2 : How to add button in admin custom module page?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















enter image description hereenter image description hereWhile Creating the admin grid the action column remains empty and the Edit option is not visible. How to resolve this issue.



This is my Ui_Component file (action section)



<actionsColumn name="action" 
class="NaiwritaBoralUiComponentListingColumnAction">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="resizeEnabled" xsi:type="boolean">true</item>
<item name="resizeDefaultWidth" xsi:type="string">107</item>
<item name="indexField" xsi:type="string">id</item>
</item>
</argument>
</actionsColumn>


This is the action.php file where the edit option is implemented



use MagentoFrameworkViewElementUiComponentContextInterface;
use MagentoFrameworkViewElementUiComponentFactory;
use MagentoUiComponentListingColumnsColumn;
use MagentoFrameworkUrlInterface;
class Action extends Column

const ROW_EDIT_URL = 'sample/index/addrow';
protected $_urlBuilder;
private $_editUrl;
public function __construct(
ContextInterface $context,
UiComponentFactory $uiComponentFactory,
UrlInterface $urlBuilder,
array $components = [],
array $data = [],
$editUrl = self::ROW_EDIT_URL)

$this->_urlBuilder = $urlBuilder;
$this->_editUrl = $editUrl;
parent::__construct($context, $uiComponentFactory, $components, $data);

public function prepareDataSource(array $dataSource)

if (isset($dataSource['data']['items']))
foreach ($dataSource['data']['items'] as &$item)
$name = $this->getData('name');
if (isset($item['id']))
$item[$name]['edit'] = [
'href' => $this->_urlBuilder->getUrl($this->_editUrl, ['id' => $item['id']]),
'label' => __('Edit'),
];


return $dataSource;











share|improve this question
























  • can you show your in use classes from your Action.php file?

    – Mohit Rane
    Jul 13 at 10:18












  • I have included the classes I have used. Now I checked I am facing another issue sometimes the edit button is showing but on refreshing and opening the admin again the action section is empty again.

    – Naiwrita09
    Jul 13 at 10:25











  • Can you please share a screenshot?

    – Mohit Rane
    Jul 13 at 10:27











  • also show your whole listing.xml file to get better idea.

    – Mohit Rane
    Jul 13 at 10:33











  • ok 1 second. images added

    – Naiwrita09
    Jul 13 at 10:35

















0















enter image description hereenter image description hereWhile Creating the admin grid the action column remains empty and the Edit option is not visible. How to resolve this issue.



This is my Ui_Component file (action section)



<actionsColumn name="action" 
class="NaiwritaBoralUiComponentListingColumnAction">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="resizeEnabled" xsi:type="boolean">true</item>
<item name="resizeDefaultWidth" xsi:type="string">107</item>
<item name="indexField" xsi:type="string">id</item>
</item>
</argument>
</actionsColumn>


This is the action.php file where the edit option is implemented



use MagentoFrameworkViewElementUiComponentContextInterface;
use MagentoFrameworkViewElementUiComponentFactory;
use MagentoUiComponentListingColumnsColumn;
use MagentoFrameworkUrlInterface;
class Action extends Column

const ROW_EDIT_URL = 'sample/index/addrow';
protected $_urlBuilder;
private $_editUrl;
public function __construct(
ContextInterface $context,
UiComponentFactory $uiComponentFactory,
UrlInterface $urlBuilder,
array $components = [],
array $data = [],
$editUrl = self::ROW_EDIT_URL)

$this->_urlBuilder = $urlBuilder;
$this->_editUrl = $editUrl;
parent::__construct($context, $uiComponentFactory, $components, $data);

public function prepareDataSource(array $dataSource)

if (isset($dataSource['data']['items']))
foreach ($dataSource['data']['items'] as &$item)
$name = $this->getData('name');
if (isset($item['id']))
$item[$name]['edit'] = [
'href' => $this->_urlBuilder->getUrl($this->_editUrl, ['id' => $item['id']]),
'label' => __('Edit'),
];


return $dataSource;











share|improve this question
























  • can you show your in use classes from your Action.php file?

    – Mohit Rane
    Jul 13 at 10:18












  • I have included the classes I have used. Now I checked I am facing another issue sometimes the edit button is showing but on refreshing and opening the admin again the action section is empty again.

    – Naiwrita09
    Jul 13 at 10:25











  • Can you please share a screenshot?

    – Mohit Rane
    Jul 13 at 10:27











  • also show your whole listing.xml file to get better idea.

    – Mohit Rane
    Jul 13 at 10:33











  • ok 1 second. images added

    – Naiwrita09
    Jul 13 at 10:35













0












0








0








enter image description hereenter image description hereWhile Creating the admin grid the action column remains empty and the Edit option is not visible. How to resolve this issue.



This is my Ui_Component file (action section)



<actionsColumn name="action" 
class="NaiwritaBoralUiComponentListingColumnAction">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="resizeEnabled" xsi:type="boolean">true</item>
<item name="resizeDefaultWidth" xsi:type="string">107</item>
<item name="indexField" xsi:type="string">id</item>
</item>
</argument>
</actionsColumn>


This is the action.php file where the edit option is implemented



use MagentoFrameworkViewElementUiComponentContextInterface;
use MagentoFrameworkViewElementUiComponentFactory;
use MagentoUiComponentListingColumnsColumn;
use MagentoFrameworkUrlInterface;
class Action extends Column

const ROW_EDIT_URL = 'sample/index/addrow';
protected $_urlBuilder;
private $_editUrl;
public function __construct(
ContextInterface $context,
UiComponentFactory $uiComponentFactory,
UrlInterface $urlBuilder,
array $components = [],
array $data = [],
$editUrl = self::ROW_EDIT_URL)

$this->_urlBuilder = $urlBuilder;
$this->_editUrl = $editUrl;
parent::__construct($context, $uiComponentFactory, $components, $data);

public function prepareDataSource(array $dataSource)

if (isset($dataSource['data']['items']))
foreach ($dataSource['data']['items'] as &$item)
$name = $this->getData('name');
if (isset($item['id']))
$item[$name]['edit'] = [
'href' => $this->_urlBuilder->getUrl($this->_editUrl, ['id' => $item['id']]),
'label' => __('Edit'),
];


return $dataSource;











share|improve this question
















enter image description hereenter image description hereWhile Creating the admin grid the action column remains empty and the Edit option is not visible. How to resolve this issue.



This is my Ui_Component file (action section)



<actionsColumn name="action" 
class="NaiwritaBoralUiComponentListingColumnAction">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="resizeEnabled" xsi:type="boolean">true</item>
<item name="resizeDefaultWidth" xsi:type="string">107</item>
<item name="indexField" xsi:type="string">id</item>
</item>
</argument>
</actionsColumn>


This is the action.php file where the edit option is implemented



use MagentoFrameworkViewElementUiComponentContextInterface;
use MagentoFrameworkViewElementUiComponentFactory;
use MagentoUiComponentListingColumnsColumn;
use MagentoFrameworkUrlInterface;
class Action extends Column

const ROW_EDIT_URL = 'sample/index/addrow';
protected $_urlBuilder;
private $_editUrl;
public function __construct(
ContextInterface $context,
UiComponentFactory $uiComponentFactory,
UrlInterface $urlBuilder,
array $components = [],
array $data = [],
$editUrl = self::ROW_EDIT_URL)

$this->_urlBuilder = $urlBuilder;
$this->_editUrl = $editUrl;
parent::__construct($context, $uiComponentFactory, $components, $data);

public function prepareDataSource(array $dataSource)

if (isset($dataSource['data']['items']))
foreach ($dataSource['data']['items'] as &$item)
$name = $this->getData('name');
if (isset($item['id']))
$item[$name]['edit'] = [
'href' => $this->_urlBuilder->getUrl($this->_editUrl, ['id' => $item['id']]),
'label' => __('Edit'),
];


return $dataSource;








magento2 uicomponent action






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 13 at 10:34







Naiwrita09

















asked Jul 13 at 9:00









Naiwrita09Naiwrita09

268 bronze badges




268 bronze badges












  • can you show your in use classes from your Action.php file?

    – Mohit Rane
    Jul 13 at 10:18












  • I have included the classes I have used. Now I checked I am facing another issue sometimes the edit button is showing but on refreshing and opening the admin again the action section is empty again.

    – Naiwrita09
    Jul 13 at 10:25











  • Can you please share a screenshot?

    – Mohit Rane
    Jul 13 at 10:27











  • also show your whole listing.xml file to get better idea.

    – Mohit Rane
    Jul 13 at 10:33











  • ok 1 second. images added

    – Naiwrita09
    Jul 13 at 10:35

















  • can you show your in use classes from your Action.php file?

    – Mohit Rane
    Jul 13 at 10:18












  • I have included the classes I have used. Now I checked I am facing another issue sometimes the edit button is showing but on refreshing and opening the admin again the action section is empty again.

    – Naiwrita09
    Jul 13 at 10:25











  • Can you please share a screenshot?

    – Mohit Rane
    Jul 13 at 10:27











  • also show your whole listing.xml file to get better idea.

    – Mohit Rane
    Jul 13 at 10:33











  • ok 1 second. images added

    – Naiwrita09
    Jul 13 at 10:35
















can you show your in use classes from your Action.php file?

– Mohit Rane
Jul 13 at 10:18






can you show your in use classes from your Action.php file?

– Mohit Rane
Jul 13 at 10:18














I have included the classes I have used. Now I checked I am facing another issue sometimes the edit button is showing but on refreshing and opening the admin again the action section is empty again.

– Naiwrita09
Jul 13 at 10:25





I have included the classes I have used. Now I checked I am facing another issue sometimes the edit button is showing but on refreshing and opening the admin again the action section is empty again.

– Naiwrita09
Jul 13 at 10:25













Can you please share a screenshot?

– Mohit Rane
Jul 13 at 10:27





Can you please share a screenshot?

– Mohit Rane
Jul 13 at 10:27













also show your whole listing.xml file to get better idea.

– Mohit Rane
Jul 13 at 10:33





also show your whole listing.xml file to get better idea.

– Mohit Rane
Jul 13 at 10:33













ok 1 second. images added

– Naiwrita09
Jul 13 at 10:35





ok 1 second. images added

– Naiwrita09
Jul 13 at 10:35










1 Answer
1






active

oldest

votes


















0














Please truncate ui_bookmark table from the database and run the following commands into the cmd.




php bin/magento setup:upgrade



php bin/magento setup:static-content:deploy -f



php bin/magento indexer:reindex



php bin/magento cache:flush




this solution is work.






share|improve this answer























  • sure sir I will try

    – Naiwrita09
    Jul 13 at 11:15













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%2f281971%2fissue-with-edit-option-in-action-column-admin-grid%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














Please truncate ui_bookmark table from the database and run the following commands into the cmd.




php bin/magento setup:upgrade



php bin/magento setup:static-content:deploy -f



php bin/magento indexer:reindex



php bin/magento cache:flush




this solution is work.






share|improve this answer























  • sure sir I will try

    – Naiwrita09
    Jul 13 at 11:15















0














Please truncate ui_bookmark table from the database and run the following commands into the cmd.




php bin/magento setup:upgrade



php bin/magento setup:static-content:deploy -f



php bin/magento indexer:reindex



php bin/magento cache:flush




this solution is work.






share|improve this answer























  • sure sir I will try

    – Naiwrita09
    Jul 13 at 11:15













0












0








0







Please truncate ui_bookmark table from the database and run the following commands into the cmd.




php bin/magento setup:upgrade



php bin/magento setup:static-content:deploy -f



php bin/magento indexer:reindex



php bin/magento cache:flush




this solution is work.






share|improve this answer













Please truncate ui_bookmark table from the database and run the following commands into the cmd.




php bin/magento setup:upgrade



php bin/magento setup:static-content:deploy -f



php bin/magento indexer:reindex



php bin/magento cache:flush




this solution is work.







share|improve this answer












share|improve this answer



share|improve this answer










answered Jul 13 at 11:14









Hardik MakwanaHardik Makwana

4131 silver badge13 bronze badges




4131 silver badge13 bronze badges












  • sure sir I will try

    – Naiwrita09
    Jul 13 at 11:15

















  • sure sir I will try

    – Naiwrita09
    Jul 13 at 11:15
















sure sir I will try

– Naiwrita09
Jul 13 at 11:15





sure sir I will try

– Naiwrita09
Jul 13 at 11:15

















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%2f281971%2fissue-with-edit-option-in-action-column-admin-grid%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

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

Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?