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

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

Recommended Posts

Posted

Hi guys, I came up with a bit of dilemha and wasn't sure exactly how to solve it.

Okay, there are basically two list layouts. They are both near identical, except one provides summaries for sorting, and the other does not. Each of these has a link to one of four other layouts. These layouts are all capable of going to any of the other four layouts. When they are done, regardless of which of the four layouts they are on, I would like to be able to return to the original 1 of 2 layouts they had chosen. (The first two).

Basically, i want to be able to save which layout I am on when I leave the two layout stage.

Thanks a lot!

Jim

Posted

Create a global field that will hold the name of the layout. The links to the other 4 layouts need to be scripted rather than a direct link to the other layout. That is, don't make the link a simple 'Go to Layout' button, but have it execute a script with the 'Go to layout' command. As part of that script, include a Set Field / commit command that will write the name of the current layout to the global field using the Get(LayoutName) function in FM7, or Status(CurrentLayoutName) in FM6. When exiting one of the other 4 layouts, run another script that goes to the layout which is stored in the global field. Use the Go To Layout [Layout Name by Calculation - gYourGlobal].

That should do it.

Exit Report:

SetField [gYourGlobal; Get(LayoutName)]

commit record/request [no dialog]

Go to Layout [The Target Layout]

Re-enter report:

Go to Layout [Layout Name by Calculation - gYourGlobal]

Note that if users jump around layouts by pulling them from the status area, this can get all screwed up. I never let them do that, and script all layout changes.

Good luck,

Dan

Posted

Hi there, sorry, one more thing, im afraid when I attempt to use the save layout function it fails to interpret the data from the global field. Specifically, it wants a number not a name (recall I am using Filemaker 6) but even if I enter it manually, it still fails to work. However, when I attempt the function using a normal field it seems to work. Does anyone have ant suggestions? Thanks a lot,

Jim

Posted

Set your global to Status(CurrentLayoutNumber) instead, then you can use Go to Layout [layout number from field].

This topic is 7445 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.