Jump to content

Get a field value in a portal


El_Pablo

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

Recommended Posts

Hi,

I have a portal with a button in it. How do I get the field value of a related record?

Is there a function that can do something such as this:

$fieldValue = GetFieldValueInPortal(rowX, fieldY)

BTW, in my problem the related table is in another file, so I think the GTRR function is not usefull in this case.

Thank you

Link to comment
Share on other sites

To access the value of a field that shares the same relationship as the portal does. Just reference that field.

portal_relationship::field_you_want

When the button for each portal row is pressed, it will give you the value of that record.

But if you were looking to get a vlues from a different record then you have to use GetNthRecord

Link to comment
Share on other sites

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