Master-Detail Grid

QuestionsMaster-Detail Grid
Steve Christiansen asked 11 years ago

I am using master-detail demos in purchased package but don't see an example where the master table contains "cooked" columns, that is $col arrays to display only specified fields. When I add $col arrays to master table, these same fields are appearing in the detail grid and add/edit form. The master-detail relationship is working but I do not want the master fields to appear in the detail grid and form.

What do I need to do?

1 Answers
Steve Christiansen answered 11 years ago

Figured it out. By using different $col[] variable for each grid

At the end of each $col array();//change the var

Example: master grid
$cols[] = $col;

then, before rendering
$g->set_columns($cols);

detail grid
$col1[] = $col;

and, before rendering
$g->set_columns($cols1);

Your Answer

14 + 2 =

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?