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

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

Recommended Posts

Posted

I want to go to the last row in a portal and copy a field to the layout where the portal resides. I have a quote file that stores quotes by date. I want to display the latest quote on the master inventory layout where the quote portal resides. This will give at a glance the latest quoted price for this part no., even thou it is in the portal. The portal is sorted by date, therefore the latest quote will always be in the last row of the portal. confused.gif

Posted

Have you tried duplicating your relationship and sorting by date descending? Then your 'first' related record, i.e. the one you would see with a simple related field (not a portal) on a layout, should be the most recent.

Posted

You may want to switch the Go to Portal Row and Go to Field statements, if you have more than one portal on the layout. Also, you can use Set Field [ fieldinthisfile, relationship::field ] instead of the Copy/Paste steps.

Still, I think it would be easier to use a descendingly sorted relationship and avoid scripting altogether.

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