This topic is locked

button in grid area

11/16/2012 6:50:02 AM
PHPRunner General questions
C
chrispa author

Ok maybe my previous post was complex so i have create that one .
I need to add a button in grid area next to fields "from" and "to" .

so when user completes the fields "from" and "to" which are times i.e. from : 0000 / To: 0500 and pressing the button to autocomplete by clicking i.e. turn on the relevant checkboxes fields from 0000 to 0500 on the row . the row contains checkboxes from :0000 to :23:00 ( 24 hours a day ) .
can someone help me on that

?

C
cgphp 11/17/2012

There isn't a direct solution. Use a custom button (http://xlinesoft.com/phprunner/docs/inserting_button.htm):

  1. In the "Client Before" event enter the js code to get the values of "from" and "to" fields
  2. In the Server event update the database
  3. In the "Client after" event update the checkboxes on the grid