This topic is locked

Pass date field to button before Save

10/8/2018 5:12:31 PM
PHPRunner General questions
P
PhpApprentice author

I have an edit page on a 1 record table. Using it as a place for action buttons and to change transaction date.
I have a date field, in that table, that uses the calendar lookup. Have been trying to have within On Server
$my_transaction_date = $values["transaction_date"];
then use this to update many records with a sql update, but I get blank $my_transaction_date. I am missing something.
My workaround is to have the user press the Edit Save button, then push my custom button.

admin 10/8/2018

In Button's code you do not have access to $values array.
Check code examples at https://xlinesoft.com/phprunner/docs/inserting_button.htm

P
PhpApprentice author 10/9/2018



In Button's code you do not have access to $values array.
Check code examples at https://xlinesoft.com/phprunner/docs/inserting_button.htm


Ok.
I am now trying to figure out how to either capture the browser value and get it over to the button, or have the browser value trigger an event so that I can do a sql update to the back end then, and read from the back end as the button does it's work.