Script to check consecutive numbering sequence
Posted on 2012-04-05
I Have a several portal rows and the number of rows can vary from 1 to a max of 12.
The user needs to set the Task Sequence manually via a value list numbered 188.8.131.52.5. etc..12.
Task abdc, the first portal row and firt task is numbered...1
Task bdcf..the second portal row is the second task and is numbered ...2(selected by the user)
Repeat until the total numbered of tasks have been sequenced.
The Sort Portal Records is set to Task Sequence ascending.
This all works well.
If the User in error selects a sequence ranging from 1 to 4 as 1... 2.. 3..5 instead of 1 2 3 4
I need a script triger to alert the user to the incorect sequence.
I have a script that is based on :
Go to Portal Row First ,If Task Sequence > 1 ..Show Custom Dialogue
Go to Portal Row Next If Task Sequence > 2 then show custom dialogue
Again this is ok but the script will end at the last portal row each time which is not what I want.
Is there a shorter way where the script will evaluate all the sequences entered per portal row and evalauate if the sequences are in sequence ?