Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

[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?

Posted

Hi

welcome to the best Forum of the web ! :)

Your script lacks a step, before going to $Portalrow:

Go to Layout [ original layout ]

Posted

Please, try before !

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

Go To related record[ bla, bla

[color:red]Go to Layout [ original layout ]

Go to Portal Row[select; $Portalrow ]

Posted

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.

Posted

Actually, rereading his post, he may already have the Go To Field before the Go to Portal Row; but it is not clear. I just thought I'd point it out, as a best practice.

Posted

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.

Posted (edited)

Hi Fenton,

naming the object seems like a good thing, but how can I figure out with of 8 Tabs is showing? Is there a way to figure out which one of the Tabs is the activeone? Assuming Tabs are named "TAB1" through "TAB8". Can't find anything on the net.

Edited by Guest
Posted

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.

Posted

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.

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