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

Button To Get Value From Portal Row


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

Recommended Posts

Posted

Sorry, new to FMP 9. I have a portal with multiple rows. I need a button/script that will copy a value from a field in portal row X, by clicking on a button IN THE SAME ROW.

I guess the problem is that clicking the button in a specific row of a portal does not first select that specific portal row (related record) for the copy/set field whatever command.

Thank you.

Posted

Not true. A button on a portal row does in fact "know" what row you clicked -- until you do something to take you out of the row such as commit the parent record in your script.

E.g., assuming your button is running a script, and not just a Copy command, try setting the portal field you want to grab as the script parameter.

If you show me more of your script I could advise you where it's going wrong.

Posted

Thank you for responding. I just want to navigate to that particular portal row record by clicking a button in that portal row. "Go To Related Record" doesn't work. If I copy the Rec ID from that record and do a find for it (outside the portal), that obviously works. I was trying to script that.

Peter

Posted

It should work the way you describe, so check your implementation. Most common causes of problems are specifying the wrong table occurrence to go to, or leaving the portal row too soon (as Tom explained).

  • Like 1
  • 6 years later...

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