[SOLVED] Custom Button for each row |
11/22/2012 4:26:43 AM |
PHPRunner General questions | |
S
StefanoF author
Hi. |
|
C
|
cgphp 11/22/2012 |
You have to use custom button: http://xlinesoft.com/phprunner/docs/inserting_button.htm ctrl.setDisabled(); //disable button |
S
|
StefanoF author 11/22/2012 |
Cristian, first of all thanks. I felt like lost in the PHP/JS jungle and with your suggestions I feel I can come out of it.
|
S
|
StefanoF author 11/22/2012 |
Cristian, first of all thanks. I felt like lost in the PHP/JS jungle and with your suggestions I feel I can come out of it. I've followed the manual, added the button and then moved it in the grid. I've added wrappers to the new button (this bit was missing from my local PHPRunner manual). So far I've managed to hide the button on a given state. Now, before proceeding with any update, I've tried to simply press the button and see what happens and I got the error icon on the left bottom corner. The detailed error message says **"Messagge: 'keys.length' is null or is not an object - Line: 249
|
C
|
cgphp 11/22/2012 |
Enter this code in the "Server" section: $data = $button->getCurrentRecord();
var message = result["txt"] + " !!!"; |
S
|
StefanoF author 11/22/2012 |
Enter this code in the "Server" section: $data = $button->getCurrentRecord();
var message = result["txt"] + " !!!";
|
C
|
cgphp 11/22/2012 |
Do not drag the button after inserting it but make sure to insert it directly to the grid. |
S
|
StefanoF author 11/22/2012 |
I did as you suggested, but the result didn't change. |
C
|
cgphp 11/22/2012 |
Did you set a primary key for that table in PHPrunner? Refer to this page: http://xlinesoft.com/phprunner/docs/edit_page_settings.htm. Go to the "Pages" sections, click the "Edit button" and select the primary key for that table. |
S
|
StefanoF author 11/22/2012 |
Did you set a primary key for that table in PHPrunner? Refer to this page: http://xlinesoft.com/phprunner/docs/edit_page_settings.htm. Go to the "Pages" sections, click the "Edit button" and select the primary key for that table.
|
S
|
StefanoF author 11/23/2012 |
Cristian, so far I owe you at least a coffee!!! The table has a primary key, but I 'didn't set it on the "PAGES"!!! Now no error message is shown and finally the "id" is shown!!! Hoping to be able to continue without bothering you, I really thank you. Stefano
|
S
|
StefanoF author 11/23/2012 |
Cristian, once the button is pressed, as the STATUS is changed , I need to hide it. How and where(EVENT) can I do it ? Thanks.
|