Creating a drop down list where each option changes to its own layout
I've been working on a project where I need to create a dropdown list where every value takes you to a new layout. how can I achieve this?
Define a global field.
Format it with a value list of your layout names.
Use OnObjectSave to trigger this script step:
Go to layout [YourTable::GlobalDropDownField]
If you do not choose to put the exact layout names in the value list, you could still do it with code such as:
If [ YourTable::globalDropDownField = "Data Entry" ] Go to layout ["DataEntry" ]Else If [ YourTable::GlobalDropDownField = "Report' ] Go to Layout ["SummaryReport"]Else If...
Retrieving data ...