March 16, 201510 yr 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
March 16, 201510 yr 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?
Create an account or sign in to comment