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

Go To Portal Row logic


SaturdaySoftware

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

Recommended Posts

[color:brown]Set variable [ $Portalrow; Value:Get( PortalRowNumber )]

Go To related record[ bla, bla

Go to Portal Row[select; $Portalrow ]

Seems straight forward. My logic: Where was I?, change to different record, move to the row in the portal where all this started of.

Doesn´t work as expected! Does work if I leave out the step [color:brown]Go To related record[ bla, bla. The variable contains the correct value (i.e. 34) but the [color:brown]Go To related record[ bla, bla seems to reset the rowcount to 1. So I get an error since I am trying to reach a row > 1.

Any ideas?

Link to comment
Share on other sites

You should use the step Go To Field [ related::field ] BEFORE you use Go to Portal Row. Yes, the order of steps seems backwards, but it is important.

Otherwise if you have more than 1 portal on the layout FileMaker will not know which one when you issue Go to Portal Row (the back most, usually 1st created, is the default).

It works fine, because the cursor stays in the field specified, no matter which portal row you go to.

Link to comment
Share on other sites

You can name each tab, using the Object Info, Object Name box. Then, when returning to the layout, via a script, you could return to a specified tab, or to do a tab stored within a Variable or global field. Some people have created fairly elaborate generic methods to capture and restore the foremost tab(s). I haven't, yet.

Link to comment
Share on other sites

As you are using scripts to control access through the tabs then set up a global variable ($$current_tab) when executing in the navigation script to be the name of the selected object name.

Now you know which tab your are on.

Link to comment
Share on other sites

Check out FM Help on the GetLayoutObjectAttribute function. Note specifically the HasFocus and IsFrontTab options. A combination of naming your objects and using these functions allows high degree of control.

Link to comment
Share on other sites

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