DMXzone Database Connector PHP Support Product Page

Answered

Master Detail page - detail section to load only when button clicked

Asked 13 Jun 2016 12:38:59
1
has this question
13 Jun 2016 12:38:59 David Woolley posted:
I have a list of records in the left column of a page with a button to connect each to a detail column on the right, like in your Master-Detail tut with a hidden form field for the ID.

How do you prevent the Detail section showing the first record on page load? In other words one must click on the button before anything loads in the detail column.

Replies

Replied 13 Jun 2016 14:27:27
13 Jun 2016 14:27:27 Teodor Kuduschiev replied:
Hi David,
Add the following code to your repeat region:
data-binding-repeat-index="none"

This way, there will not be any data in the Detail Region, until you select a record in the repeat region.
Replied 13 Jun 2016 15:18:26
13 Jun 2016 15:18:26 David Woolley replied:
Thanks a lot Teodor!
That works just as I want.
Dave

Reply to this topic