-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
Hi,
I want to populate an OpenJS grip based on the value selected by the used on a drop down list. The calling script is time_data.php which extracts and populate the data. How can I achieve this ?
html PART
<th col="time_id" width="30" type="id">Id</th>
<th col="time_name" width="200" >Name</th>
<th col="time_in" width="150" >Time In</th>
<th col="time_out" width="150" >Time Out</th>
<th col="time_stats" width="150">Status</th>
<th col="time_apprv" width="95" >Approval</th>
<?php }?>
</table>
</body>
time_data.php
true, "delete"=>true, "editing"=>true, "where"=>"time_grpc = 'CARP'", "joins"=> array( "LEFT JOIN tbl_tmstat ON (tmstat_code = time_stats)" ), "select" => 'selectFunction' )); // 'selectFunction' function selectFunction($grid) { $selects = array(); //Session_start; // category select $grid->table = "tbl_tmstat"; $selects["time_stats"] = $grid->makeSelect("tmstat_code","tmstat_name"); // active select $selects["active"] = array("1"=>"true","0"=>"false"); // render data $grid->render($selects); }`enter code here` ```Metadata
Metadata
Assignees
Labels
No labels