GrantSymon Posted November 28, 2002 Posted November 28, 2002 Hi, is there any way to script FM to go to a particular Portal on a layout? (The reasoning : I am initiating a script from a portal on a layout. It sets a 2nd portal to show certain records. I would like to finish the script by going to the 1st record in the 2nd Portal, but I can find no way of activating this 2nd Portal (a self) without actually physically 'clicking' on it.) As an aside... I've noticed that the 'Go To Portal' script step in FM6.x always goes to the same Portal on a layout... if there is more than one.... even if the script is activated by clicking in another... unrelated... Portal. Bug I guess. [color:"#666666"]
slstrother Posted November 28, 2002 Posted November 28, 2002 Use the Go To Field script step when you have more than one portal on the layout. This will go to the first record in the portal.
CobaltSky Posted November 28, 2002 Posted November 28, 2002 When there are several portals on the layout, FM goes to the one which is backmost in the stacking order. That means if your scripts always needs to go to the same particular portal you can place it at the back. If you need to have scripts access different specific portals on a multi-portal layout, one way to achieve this is to create copies of the layuout, each with a different portal stacked backmost (using the 'go to back' command on the arrange menu in layout mode). Then you can Freeze Window within the script and flip to the appropriate layout in order to access a portal which is not at the back on the current layout. With this method, the 'Go to Portal Row' command can be used. In some circumstances, the 'Go To Field' step is an attractive alternative.
GrantSymon Posted November 28, 2002 Author Posted November 28, 2002 Ray, S. Strother... thanks! A mix of 'Go to Field' and shifting the Portal to the back for a 'Go to Portal Row' solved the problem. It looks much slicker now. *: Grant
Recommended Posts
This topic is 8035 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 accountSign in
Already have an account? Sign in here.
Sign In Now