Master Detail plus second detail link

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
johnberman
User
Posts: 210

Master Detail plus second detail link

Post by johnberman »

I have a Master Detail Page which works just fine and they are linked via a unique ID

I have now added a second table linked back to the master using the same unique ID

When I click on the + sign to expand the table I now see the second table on a second tab and it shows the data as expected

If there is no matching data it still shows the second tab and says no records found

Would there be a way for it not to show the second tab if there are no records ?

Regards
John B


mobhar
User
Posts: 11660

Post by mobhar »

You may simply use "Startup Script" of "List Page" that belongs to your master table. Just check recordcount of your desired detail table, and if it returns less than 1, then hide the related tab based on its element id.


Post Reply