Looping through portals

Hi all,

How do you find the index of the last row in a portal so that you can use that number to exit a loop through?

Hi Steve,

You can use the relation itself which the portal is based on to get a count of those records as in:

relationship_name.getSize();

This function is under the parent form node and then look at the Relations sub node.
The relations will be listed and functions which can be applied to each and the above function should give you an index number to use as a condtion in a loop

Cheers
Harry