Pattern 5: Master-detail on separate search and edit pages |
This design pattern build on the result of Pattern 3: Master-Detail Form on a Single Page. As in Pattern 3, a first page offers facilities for searching and selecting a master-detail combination. This time, no data can be manipulated (edited) here. A second page is dedicated to editing the selected data. The second page is completely single-record, making it an attractive page for displaying images and videos related to that single record. Work in two stages: •Build the basic structure. •Finish the solution. Building the basic structure To spread a master-detail form across a Search-and-Select and an Edit page:
$.udb.navigateToRelated( 'Tours-Schedtours Edit' )
../<child data source name in Tours-Schedtours Search-and-Select>
../Related TOUR IS SCHEDULED AS SCHEDTOUR1
Test by selecting a Tour and a Scheduled Tour record in the first page, then making sure that after pressing "Go >>" you navigate to the second page and after you have landed there, the selected data in the parent and the child blocks are correctly selected.
Finishing the solution To finish this solution:
•You can make grid columns non-editable by setting the Read Only property of the Grid control to Yes. •You can make single-record fields non-editable by setting the Task Mode property of the TextColumnControl objects (etc.) to Search (instead of Edit). •Alternatively, you can set the Insertable, Updatable, Deletable properties to No at data source level. •Remove buttons associated with editing (Save, Rollback, Check, New, Delete).
See Also Page and Data Source Constructs
|