November 28, 200223 yr 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"]
November 28, 200223 yr 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.
November 28, 200223 yr 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.
November 28, 200223 yr Author 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
Create an account or sign in to comment