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

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

Recommended Posts

Posted

New solution in Dev7.

The script goes to a layout with the correct records in a portal then

loops through the rows setting fields and is supposed to exit after last

row, but does not.

Script portion as follows:

Go to Portal Row [select; First]

Loop

Go to Field [select/Perform; GAMES::weekNumber]

SetField [GAMES::someField; value]

...

Go to Portal Row [Next; Exit after last]

End Loop

... rest of script

It never exits when it gets to the last portal row number.

It makes new records. Running this in debug mode. I expect

I am doing something silly, but this seems pretty straight forward.

Posted

I don't believe this will work in a portal with a relationship set to allow creation of related records. Once you get to the last row, you're creating a new related record. It might work to add an Exit Loop If [Get(PortalRowNumber) = Count(relationship::serial)] just before the Go to Portal Row [Next] step, and remove the then redundant 'Exit after last' option.

Note that the Go to Field step is probably unnecessary if you're already in the portal row.

Posted

Thanks Queue. That did the trick. As an aside, I find myself often taking a very long time to wrap my head around the new paradigm in relationships in v7. I appreciate the help.

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