Home › Forums › Guriddo Suito PHP › Master detail with two parameters
Can i pass two parameters from master grid to detail grid on select row event in master (using postData or other method)?
Please post a sample…
Thank you
I want to select row on master and read COL1 and COl2 on selected row and then pass this parameters to SQL query on detail (Select from TABLE where id=COL1 and cod=COL2).
Can be done….?
Hello,
Yes, this is possible. The idea is when the row is selected in a onSelectRow to get the data on the row columns and then pass it in the posData array.
This can be done something like this: (on Master)
Then you can accept these parameters in detail PHP. See demo.
Kind Regards, Will
Guriddo Support Team
OK! Thank you I understand how to send….but what is the code in detail.php to pass parametrs to sql query. This is correct?
This is partially correct. To work this you will need to pass the parameters to renderGrid too
…but what about jqGrid and stored procedure on SQLServer… POST HERE
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS