This topic is locked

Insert a button into the grid and get access to grid data not working.

4/26/2012 1:04:10 AM
PHPRunner General questions
K
kadidarm author

hi, anybody figured out how to do the button in grid as the demo and get the grid data like http://demo.asprunner.net/volinrok_yahoo_com/Project12/Balance_list.php ? I tried right clicking in the editor to insert the button into grid in list page but I cannot get access to grid data using rowData. Any help? Btw is it possible to get access to the keyid of the row as well even though it is hidden from the view?
Kris

W
wildwally 4/26/2012



hi, anybody figured out how to do the button in grid as the demo and get the grid data like http://demo.asprunne...alance_list.php ? I tried right clicking in the editor to insert the button into grid in list page but I cannot get access to grid data using rowData. Any help? Btw is it possible to get access to the keyid of the row as well even though it is hidden from the view?
Kris


I was able to get this to work as a button to redirect user to the view page.
First you add the button as you normally would in the add/edit page(s). Then reference the code provided by admin in the announcement found here:
http://www.asprunner.com/forums/topic/19447-april-25-2012-phprunner-61asprunnerpro-71-released/
From what I can tell it appears that using the code provided in the example the field has to be active in the rowData. Should I be wrong I'm sure someone will correct me.

Sergey Kornilov admin 4/26/2012

Confirming that this is a bug in PHPRunner 6.1 build 11586 related to passing parameters from ClientBefore event to Server event. Will be fixed in maintenance release later today.