getCurrent2STableInstance( )

对于两部分表单,找到当前正在运行规则的表行实例。

语法

注意:

这是一个聚集函数。如果目标采用两节形式,则为每个表单实例运行规则。

getCurrent2STableInstance()

参数

无。

返回值

  • 当前正在运行规则的实例编号(以 1 开头)。
  • -1(如果不是两节形式)。

示例 3-75 如果这是第一个实例,则在未输入 aeDate 时引发查询

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