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

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

Recommended Posts

  • Newbies
Posted (edited)

Very Novice...Hi I'm trying to create a script so that when I close the window of a particular layout in a related file, I will return to the layout that I can from. Is this done with one of the "Get" functions?

Edited by Guest
Posted

No.

The Go To Layout script command gives the option "original layout". That is the layout you were in before the script started.

Posted

What IdealData said -- The only thing I was going to add is what the Get functions due (they might come in useful to you at some point)

When you set up your fields you had to define what type of field they were (Text is the default) Sometimes you need to grab data from one field and put it in another, but the two tpes are not the same. So for example let's say I have a Date field. Then I have another field that I want to say "Today's date is 11/21/07" -- The new field would be a calculation, with the result being a text (look at the bottom of the calculation window) and the calculation wold be:

"Today's date is" & GetasText (Date)

Putting things into a text filed usually doesn't give you too much trouble as FMP just puts whatever is there, but sometimes you need to go from a Date to a number or some other similar thing.

Posted

There are several ways to do this. The first is Go to [Original Layout] as many people mentioned. Second, you can set a variable for every main window, let say one of main windows will be called "$$OriginalLayoutWindow" with Get (WindowName). Then, whenever you want to go back to this window, you can call it by the Select Window function: Select Window [Name: $$OriginalLayoutWindow; Current file].

So, the easiest way, just perform "Go to Layout ["Original Layout"], however, if you have several Main Windows, make the variables windows...

  • 2 weeks later...

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