Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4786 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a database with many different layouts. grouped into two folders. I would like a drop down menu pretty much identical to the in built Layout drop down menu found at the bottom left of the status toolbar.

Reason being once I create a runtime solution, there won't be any status toolbar so this menu to hop between layouts needs to be in the GUI. Making 20 buttons with scripts to take the user to the specified layout is only going to clutter the screen.

Thanks so much in advance.

Posted

Create a calculation field Layouts= LayoutNames(Get(FileName)). Create a value list using all values from Layouts. Create a global field g.layout, and put that field as a dropdown list on your layouts. Attach a script trigger to the field triggered by OnObjectModify. The script should be Go To Layout (Layout Name by Calculation)(Layouts).

Keep in mind that this will allow users to access every layout in the file, even utility layouts. Also, if a user has to navigate to 20 different layouts, that's an indication that there might be something wrong with your data model or your user interface model. Offering 20 layouts to a user in a runtime will most likely lead to a lot of really confused users. Are you sure that you can't lead the user through the maze with judicious use of Next buttons? Or, at least, one Switchboard layout that has the 20 buttons, and every other layout has a Return to Switchboard button.

Posted

Keep in mind that this will allow users to access every layout in the file, even utility layouts.

Well, you could use a custom value list - listing only the layouts you do want them to access. A calculation field using LayoutNames is problematic anyway, since it should be unstored - but then it's not so easy to base a value list on it.

Posted

Sorry, Just one quick question. I don't really understand the calculation required once I have selected Go to Layout --> Layout Name by Calculation. I really don't know what formula to type in the calculation box. Thanks so much for your assistance.

Posted

I really don't know what formula to type in the calculation box.

The field name of the calculation field (the one I previously called Layouts).

This topic is 4786 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.