sparky3903 Posted March 16, 2015 Posted March 16, 2015 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
bcooney Posted March 16, 2015 Posted March 16, 2015 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? 1
sparky3903 Posted March 22, 2015 Author Posted March 22, 2015 Thanks. That's awesome. Worked perfect.
Recommended Posts
This topic is 3533 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 accountSign in
Already have an account? Sign in here.
Sign In Now