Jump to content

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

Recommended Posts

Hey group,

I am trying to run a script that will loop thru a portal and change the date. It runs and works but is in an endless loop. Here's the code.

Set Error Caption [On]

Go to Object [Object Name: “PortalLabour”]

Go to Portal Row [First]

Loop

Set Field [Labour::Date; DailyReports::Date]

Commit Records/Requests [No Dialog]

Go to Object [Object Name: “PortalLabour”]

Go to Portal Row [Next; Exit after Last]

End Loop

Link to comment
Share on other sites

Remove the Commit (that step will take you out of the portal). You then do not need the second Go To Object.

 

That addresses the script, but doesn't address why you are doing this and what happens if one of the related records in the portal is in use by another user and your Set Field fails. Would that be an issue?

  • Like 1
Link to comment
Share on other sites

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