November 21, 200718 yr Newbies 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 November 21, 200718 yr by Guest
November 21, 200718 yr No. The Go To Layout script command gives the option "original layout". That is the layout you were in before the script started.
November 21, 200718 yr 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.
November 21, 200718 yr 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...
Create an account or sign in to comment