Master-detail inside a subgrid

QuestionsMaster-detail inside a subgrid
himawan asked 7 years ago

Hi,
Can we place a master-detail inside a subgrid?
I tried to code from multi-subgrid_detail.php and changed the tables into master-detail, but I failed to get the param(rowid) from master table. When I traced, the parameter is from the table from multi-subgrid.php page.
How can I get the master table rowid in subgrid detail page?

1 Answers
Abu Ghufran Staff answered 7 years ago

Hi,
You can send data with other names beside rowid. For example to send field names from master -> detail you can set in master grid:
$opt[“subgridparams”] = “client_id,company”;
$grid->set_options($opt);
 
And read in detail grid as:
$client_id=$_GET[“client_id”];
$comp = $_GET[“company”];

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Your Answer

6 + 11 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?