Hi abu,
I have a small issue and doubts,
I have two tables
table1 and table2
i have done the grids. in table2 page i have used the dropdown call back method
it works fine
i would like to updated the status in the first table based on the status selected in the second page.
i have tried with custom event but it is not getting updated.
can you guide me how to do it?
Thanks
In the on_update event of second grid page, you can execute a sql command that update the first table.
yes i have tried that also
but it is not updated
i will paste my code in pastebin
please tell me the problem where it occurs
Code looks fine, please add some debugging lines in callback to check the issue.
function update_by($data)
{
ob_start();
print_r($data);
$arr = ( ob_get_clean() );
$str = "UPDATE invopo_quotationmaster SET status='ordered'
WHERE quotationid = {$data["quotationid"]}";
mysql_query($str);
echo $arr;
phpgrid_error($str);
}