Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

populate an OpenJS grip based on the value #89

Open
gkamal2 opened this issue Nov 3, 2015 · 1 comment
Open

populate an OpenJS grip based on the value #89

gkamal2 opened this issue Nov 3, 2015 · 1 comment

Comments

@gkamal2
Copy link

gkamal2 commented Nov 3, 2015

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` ```
@optikalefx
Copy link
Owner

See this video for master-detail

https://www.youtube.com/watch?v=U5MGopAoQrM

You just need to add an action to your drop down to do what we're doing in this video for the child table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants