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

Selecting the active portal in a script?


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

Recommended Posts

Posted

Somewhere I saw a discussion of how to handle multiple portals on the same layout, but now that I need the information I cannot find it.

I have defined two portals .. on the same table ... one displays rows 1 and 2 and the other displays rows 3 through 12. So far so good ... the portals display the data correctly. However, I have a script that validates the data - which works fine on the first portal, but ignores the rows in the second portal.

How do I specify that I want to access rows in the second portal? And how are they numbered? would the first row in the second portal have row number 1 or row number 3.

Or is this mission impossible?

Patricia

Posted

Its amazing that Filemaker hasn't dealt with this issue either in v7 or before. The usual method when you have 2 or more portals on a layout is to go to a field that is unique to the portal. It sounds like both portals have the same fields, in which case you can place a 1 pixel by 1 pixel field...a global will do...on the portal you're having trouble getting to. Then do a GoTo Field(fieldname). Make sure you set the field to not allow entry. By default, Filemaker goes to the portal that was placed on the layout first.

In terms of numbering, each portal starts at row 1.

Steve

Posted

There is another fudge which works with copies of the same portal (starting at different row numbers) on a layout and that is to set the tab order to go through the portals in the order that you want. I tend to use just the first field in each portal. Go to the first field and then loop a Go to next field. That will go through the portals row by row. Of course you have to think of some test you can use to stop the script or it will endlessly cycle through the fields in the tab order.

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