Deep Thought II Posted August 21, 2004 Posted August 21, 2004 there is a problem when one tries to loop within a portal. the problem is with the end-of-loop detection. Example script: Go to Portal Row [select; Perform without dialog; First] Loop ..... ..... ..... (your operations here) Go to Portal Row [select; Perform without dialog; Next; Exit after last] End Loop The above script enters an infinite loop and creates infinite new portal records in the portal. Is there a fix for this? or am I just scripting something wrong here? I tried taking out Select, but it doesn't do it. It doesn't seem to detect the end-of-portal-records in portal.... :-( and this script is very important for me... thanks if you can help~
Ender Posted August 21, 2004 Posted August 21, 2004 This is typical if the relationship is allowing creation of related records. Solutions: Use a second table occurance for non-creation operations, use a counter to know if you've hit the last portal row, check if the current portal row's auto entered ID is empty, or work the loop from the last portal row to the first, exiting after last.
Ender Posted August 21, 2004 Posted August 21, 2004 Another one: jump to the related records and process them from there.
Recommended Posts
This topic is 7661 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