FMPRO-L Archives

September 2013, Week 3

FMPRO-L@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Bruce Herbach <[log in to unmask]>
Reply To:
FileMaker Pro Discussions <[log in to unmask]>
Date:
Wed, 18 Sep 2013 12:48:28 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (40 lines)
Hi

In your script set $$prevlayout before updating $$layout with the new layout name. The way you have it now $$prevlayout gets the new layout name. 

You may need a refresh to see the new values on the screen. 

Bruce Herbach
Herbach Consulting

Sent from my mobile device... Please excuse typos.

On Sep 18, 2013, at 12:35 PM, Nick Adams <[log in to unmask]> wrote:

> Hi,
> 
> I would like to use a button to return to the previous layout.
> 
> My scripts are (on each layout):
> Layout Trigger: on layout enter, set variable $$layout name:value: get (layout name)
> Layout Trigger: on layout exit, set variable: $$prevLayout: $$layoutName; value $$layoutName
> 
> My Button Script:
> Go to Layout (name by calculation) [$$prevLayout]
> Adjust window [resize to fit]
> exit script
> 
> My Startup script sets both of these variables to ""
> 
> I have inserted a merge field for both variables and the variable are being set correctly but the script does not work, it stays in the same layout.
> The Script Debugger does not return any errors.
> 
> Would someone please tell me what I am doing wrong?
> 
> I am using FMP11 Advanced on a Mac running OS 10.5.4
> I have 256 MB allotted for FMP cacheNick Adams
> 
> Thanks,
> 
> Nick

ATOM RSS1 RSS2