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;
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 ??
I want add controller function to butto edit in action
magento2
add a comment |
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 ??
I want add controller function to butto edit in action
magento2
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
add a comment |
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 ??
I want add controller function to butto edit in action
magento2
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 ??
I want add controller function to butto edit in action
magento2
magento2
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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?'),
),
),
)
);
no generate buton
– Tomalo
Jul 10 at 12:01
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%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
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?'),
),
),
)
);
no generate buton
– Tomalo
Jul 10 at 12:01
add a comment |
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?'),
),
),
)
);
no generate buton
– Tomalo
Jul 10 at 12:01
add a comment |
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?'),
),
),
)
);
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?'),
),
),
)
);
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
add a comment |
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
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%2f281450%2fadd-controller-path-function-to-button%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
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