getCurrent2STableInstance( )

For two-section forms, find the current table row instances where the rule is currently being run.

Syntax

Note:

This is an aggregation function. The rule is run for each form instance in the case where the target is on a two-section form.

getCurrent2STableInstance()

Parameters

None.

Return value

  • Instance number (starts with 1) where the rule is currently being run.
  • -1 if it is not a two-section form.

Example 3-75 If this is the first instance, raise a query if aeDate is not entered

// If this is the first instance, raise a query if aeDate is not entered
  
  
return (getCurrent2STableInstance() == 1 && aeDate === null)?false:true;