Add controller path/function to buttonMagento 2 Dynamic Arrays in new tab of customer edit sectionMagento 2: Action button renderer for row in GridMagento 2 - Get checked checkbox values from grid on button clickHow to add javascript event to action button from product grid in backendHow to call resource model function in controller in Mangeto 2Magento 2 add new Button in admin ControllerCall Controller from ButtonDynamically add form fields using Ui component on click of Add More button in custom admin moduleCall a function in every controllerNeed to override edit.phtml on cart page to add new button near it

How would thermophilic fish survive?

What are the basics of commands in Minecraft Java Edition?

Why teach C using scanf without talking about command line arguments?

Difference between c++14 and c++17 using: `*p++ = *p`

Last-minute canceled work-trip mean I'll lose thousands of dollars on planned vacation

How can I help our ranger feel special about her beast companion?

Whipping heavy cream with melted chocolate

When can a polynomial be written as a polynomial function of another polynomial?

Round command argument before using

How to remove the first colon ':' from a timestamp?

What was the difference between a Games Console and a Home Computer?

Everyone but three

Which modern firearm should a time traveler bring to be easily reproducible for a historic civilization?

Wordplay addition paradox

Why does a tetrahedral molecule like methane have a dipole moment of zero?

Is surviving this (blood loss) scenario possible?

Did Hitler say this quote about homeschooling?

I want to identify a part from a photo

Drawing a circle with nodes shift with Tikz

Zhora asks Deckard: "Are you for real?". Was this meant to be significant?

When designing an adventure, how can I ensure a continuous player experience in a setting that's likely to favor TPKs?

Company looks for long-term employees, but I know I won't be interested in staying long

Redirect if userid is not found in a database table

I have found a mistake on someone's code published online: what is the protocol?



Add controller path/function to button


Magento 2 Dynamic Arrays in new tab of customer edit sectionMagento 2: Action button renderer for row in GridMagento 2 - Get checked checkbox values from grid on button clickHow to add javascript event to action button from product grid in backendHow to call resource model function in controller in Mangeto 2Magento 2 add new Button in admin ControllerCall Controller from ButtonDynamically add form fields using Ui component on click of Add More button in custom admin moduleCall a function in every controllerNeed to override edit.phtml on cart page to add new button near it






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








1















I have a button in a dynamic setting array like this



$this->addColumn(
'col_2',
[
'label' => __('download'),
'renderer' => $this->getInsta(),
]
);


How can I call the function from the controller by clicking this button in admin panel ??



enter image description here



I want add controller function to butto edit in action










share|improve this question
























  • can you share screenshot of what you're expecting to do?

    – Mohit Rane
    Jul 10 at 5:08











  • ok i shared, update question

    – Tomalo
    Jul 10 at 6:03











  • where is your button?

    – Mohit Rane
    Jul 10 at 6:05











  • Admin panel ->stores -> Configuration -> catalog -> Catalog -> i have my custom tab

    – Tomalo
    Jul 10 at 6:52

















1















I have a button in a dynamic setting array like this



$this->addColumn(
'col_2',
[
'label' => __('download'),
'renderer' => $this->getInsta(),
]
);


How can I call the function from the controller by clicking this button in admin panel ??



enter image description here



I want add controller function to butto edit in action










share|improve this question
























  • can you share screenshot of what you're expecting to do?

    – Mohit Rane
    Jul 10 at 5:08











  • ok i shared, update question

    – Tomalo
    Jul 10 at 6:03











  • where is your button?

    – Mohit Rane
    Jul 10 at 6:05











  • Admin panel ->stores -> Configuration -> catalog -> Catalog -> i have my custom tab

    – Tomalo
    Jul 10 at 6:52













1












1








1








I have a button in a dynamic setting array like this



$this->addColumn(
'col_2',
[
'label' => __('download'),
'renderer' => $this->getInsta(),
]
);


How can I call the function from the controller by clicking this button in admin panel ??



enter image description here



I want add controller function to butto edit in action










share|improve this question
















I have a button in a dynamic setting array like this



$this->addColumn(
'col_2',
[
'label' => __('download'),
'renderer' => $this->getInsta(),
]
);


How can I call the function from the controller by clicking this button in admin panel ??



enter image description here



I want add controller function to butto edit in action







magento2






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 10 at 5:57







Tomalo

















asked Jul 9 at 22:04









TomaloTomalo

7011 bronze badges




7011 bronze badges












  • can you share screenshot of what you're expecting to do?

    – Mohit Rane
    Jul 10 at 5:08











  • ok i shared, update question

    – Tomalo
    Jul 10 at 6:03











  • where is your button?

    – Mohit Rane
    Jul 10 at 6:05











  • Admin panel ->stores -> Configuration -> catalog -> Catalog -> i have my custom tab

    – Tomalo
    Jul 10 at 6:52

















  • can you share screenshot of what you're expecting to do?

    – Mohit Rane
    Jul 10 at 5:08











  • ok i shared, update question

    – Tomalo
    Jul 10 at 6:03











  • where is your button?

    – Mohit Rane
    Jul 10 at 6:05











  • Admin panel ->stores -> Configuration -> catalog -> Catalog -> i have my custom tab

    – Tomalo
    Jul 10 at 6:52
















can you share screenshot of what you're expecting to do?

– Mohit Rane
Jul 10 at 5:08





can you share screenshot of what you're expecting to do?

– Mohit Rane
Jul 10 at 5:08













ok i shared, update question

– Tomalo
Jul 10 at 6:03





ok i shared, update question

– Tomalo
Jul 10 at 6:03













where is your button?

– Mohit Rane
Jul 10 at 6:05





where is your button?

– Mohit Rane
Jul 10 at 6:05













Admin panel ->stores -> Configuration -> catalog -> Catalog -> i have my custom tab

– Tomalo
Jul 10 at 6:52





Admin panel ->stores -> Configuration -> catalog -> Catalog -> i have my custom tab

– Tomalo
Jul 10 at 6:52










1 Answer
1






active

oldest

votes


















0














Try by this way:



$link= $this->getUrl('module/controller/method');
$this->addColumn(
'action',
array(
'header' => __('Actions'),
'sortable' => false,
'filter' => false,
'type' => 'action',
'actions' => array(
array(
'url' => $link,
'caption' => __('Terminate Session'),
'confirm' => __('Are you sure?'),
),
),
)
);





share|improve this answer























  • no generate buton

    – Tomalo
    Jul 10 at 12:01













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%2f281450%2fadd-controller-path-function-to-button%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














Try by this way:



$link= $this->getUrl('module/controller/method');
$this->addColumn(
'action',
array(
'header' => __('Actions'),
'sortable' => false,
'filter' => false,
'type' => 'action',
'actions' => array(
array(
'url' => $link,
'caption' => __('Terminate Session'),
'confirm' => __('Are you sure?'),
),
),
)
);





share|improve this answer























  • no generate buton

    – Tomalo
    Jul 10 at 12:01















0














Try by this way:



$link= $this->getUrl('module/controller/method');
$this->addColumn(
'action',
array(
'header' => __('Actions'),
'sortable' => false,
'filter' => false,
'type' => 'action',
'actions' => array(
array(
'url' => $link,
'caption' => __('Terminate Session'),
'confirm' => __('Are you sure?'),
),
),
)
);





share|improve this answer























  • no generate buton

    – Tomalo
    Jul 10 at 12:01













0












0








0







Try by this way:



$link= $this->getUrl('module/controller/method');
$this->addColumn(
'action',
array(
'header' => __('Actions'),
'sortable' => false,
'filter' => false,
'type' => 'action',
'actions' => array(
array(
'url' => $link,
'caption' => __('Terminate Session'),
'confirm' => __('Are you sure?'),
),
),
)
);





share|improve this answer













Try by this way:



$link= $this->getUrl('module/controller/method');
$this->addColumn(
'action',
array(
'header' => __('Actions'),
'sortable' => false,
'filter' => false,
'type' => 'action',
'actions' => array(
array(
'url' => $link,
'caption' => __('Terminate Session'),
'confirm' => __('Are you sure?'),
),
),
)
);






share|improve this answer












share|improve this answer



share|improve this answer










answered Jul 10 at 6:55









bhargav shastribhargav shastri

3291 silver badge11 bronze badges




3291 silver badge11 bronze badges












  • no generate buton

    – Tomalo
    Jul 10 at 12:01

















  • no generate buton

    – Tomalo
    Jul 10 at 12:01
















no generate buton

– Tomalo
Jul 10 at 12:01





no generate buton

– Tomalo
Jul 10 at 12:01

















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%2f281450%2fadd-controller-path-function-to-button%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?