I'm trying to create a script to copy the values from a field from all rows in a portal into a "local" field.
Here's my script:
Enter Browse Mode
Go to Record/Request/Page
[ First ]
Go to Related Record [ From table: “TATConfig”; External; Using layout: “TATConfig” (TATConfig) ] [ Show only related records ]
Copy [ TATConfig::Order_Code ] [ Select ]
Paste [ TATproducts::Config_Sort_Order_Code ]
Insert Text [ “ ” ]
Go to Portal Row [ Next; Exit after last ]
Exit Loop If [ TATConfig::Order_Code= "" ]
Go to Record/Request/Page [ Next; Exit after last ]
The problem is: The script doesn't go to the next portal row. It just keeps repeating the Paste command from the first portal row in an endless loop.
Filemaker Pro 8.5 Advanced.