Views:

Description

This function allows you to access a field within the current record loop. 

Used when you need a loop inside another loop. 

Signature 1

CurrentRecordNested('fieldname')

Signature 2

CurrentRecordNested('fieldname', 'defaultvalue')

Example 1

Delete all contacts that start with the letter A. 

ForEachRecordNested(
   FindRecordsFD('AllContactsStartingWithA' ),
    DeleteRecord('contact', CurrentRecordNested('contactid'))
) 

The function RecordIndexNested() allows you to access an integer containing the current index number of the loop.

The function RecordTotalNested() allows you to access an integer containing the total number of loops. 

The function CurrentRecordNested() allows you to access an the entity object of the current loop.