AnsweredAssumed Answered

Go to next portal row not working

Question asked by themonman on Mar 13, 2013
Latest reply on Mar 14, 2013 by themonman

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 ]

Loop

Loop

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= "" ]

End Loop

Go to Record/Request/Page [ Next; Exit after last ]

End Loop

 

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.

 

Any suggestions?

Thanks!

Outcomes