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

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

Recommended Posts

Posted

I have a portal. I have a button in each portal row. What I want it to do is if a user clicks on it, a field in that portal row is copied, then a find is performed in the parent file (not the file the portal is related to).

It is easy enough to to copy a field, enter find mode, paste the copy into a field, perform find. The part I am stumped by is how to have a button sitting in a portal with a script attached know to go the field in that row.

Basically what I am trying to accomplish is the field in the portal has a id name. The parent file will have a single record that has a id name that is the same. I want to click on the portal row, but instead of it going to the related record, I want it to find the record in the current file that has a matching id name as the one in the portal.

Anyone have any thoughts on this?

LR

Posted

What you are trying to do is not difficult.

In fact, the user action of clicking on the button in the portal row will make that row 'current' at the same time as it launches the script. Any scripted actions which reference the relationship that the portal is based on will take place with respect to the current row.

So the answer is that you don't have to do anything. Simply placeing the button within the portal (and the user acrion of clicking on the button within the row they want to select) will ensure that the correct related record is ustilied by the script.

This is one of FM's more elegant features. wink.gif

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