Script - Advancing one record in a Portal
I have a script that does the following:
- Goes to Layout 1
- Goes to the first row in a Portal
- Starts Loop
- Copies record information to variables
- Goes to Layout 2
- Adds new record
- Sets Fields with variables in #3 above
- Goes back to Layout 1
- Goes to Next Row in Portal, Exit after Last
- Ends Loop
The problem is it keeps going back to the 1st row in the Portal and never advances to the next row. I sure it's is because I go back to Layout 1. Can someone point me in the right direction?
Thanks in advance.