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

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

Recommended Posts

Posted (edited)

Hi,

Is there a way to visit previous or next layouts as in an internet browser?

I'm able to navigate only to the previous layout, but no more than the last one.

I guess it could be possible using a global variable that would stack the visited layouts with a cursor.

Thanks

Edited by Guest
Posted (edited)

You are on the right track with the global variable to store previously visited layouts.

The tricky part here is remembering tabs. Especially, if you have double-stacked tabs. Let me warn you of a trap I have fallen into.

I named all the tabs on my layout and then set all the object names into a variable using this function: LayoutObjectNames ( Get ( FileName ) ; Get ( LayoutName ) )

I then looped through all the object names and called this: GetLayoutObjectAtrribute ( $object; isFrontTabPanel ) on each object. Since Object Names are listed according to their stacking order on the layout, the last listed tab panel would seem to be the "bottom" front tab panel on a stacked tab set.

The problem is this: When there are more than one nested tab sets, a tab can be in the front even when it is not visible. Tricky. Tricky.

I asked for help within the company and was sent the attached file. I have emailed him to ask him where he obtained said file. I know we didn't write it so, I will add a source once I know.

Other things to note, you will have to add a script step in front of every Go To Layout, Go To Related Record and New Window script step to make sure that the variable is capturing the layout the user is coming from or going to. If you are using FM9 or previous, this will mean locking down the Status Bar. If you are lucky enough to be developing on FM10, you can use the OnLayoutLoad script trigger to set your history variable.

All this code is from memory so my apologies if there are errors.

Let me know if you have questions, I would love to help you avoid the pitfalls I have experienced with created back (and forward) functionality.

Regards,

Lauren Kuhlman, Application Developer

Soliant Consulting

FileMaker 10 Certified

FileMaker 9 Certified

http://www.soliantconsulting.com

Tab_Rememberer.fp7.zip

Edited by Guest
Posted

Thanks for the reply.

Actually, I'm not sure if I will go as deep as tab remembering. Since this might be a new test feature in the actual system.

So I guess there would be the stack variable with the cursor telling the actual position the user is in.

Posted

Take a look at Ray's demo.

http://www.nightwing.com.au/FileMaker/demos9/demo905.html

  • Newbies
Posted

Hi,

Is there a way to visit previous or next layouts as in an internet browser?

It's easy with a script to send a user to a particular layout, so the trick here is to record a history of which layouts someone has visited and then crawl that stack as they hit forward and back.

A few years ago, I created a series of custom functions to keep track of XML data and then wired them to a forward/back demo file. See attached. While it's getting a bit long in the tooth, you should be able to fold it into your solution and it'll "just work". (Heh.. famous last words.)

-- Scott

AB_Nav_System_v3.0.zip

Posted

Thanks!

Looking at all your custom functions, it's more complicated than I though.

I'm not sure if I will implemented this feature since it will be time consuming.

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