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

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