QueryRun.changed Method [AX 2012]
Determines whether the specified data source has fetched a new value since the last call to the QueryRun.next method.
public boolean changed(TableId table, [int occurrence])
Run On
CalledParameters
- table
- Type: TableId Extended Data Type
The table defining the data source to check. If more than one data source is assigned to the same table, the second parameter can be used to specify which occurrence to use.
- occurrence
- Type: int
The data source to check; optional. If more than one data source is assigned to a given table, this argument can be used to determine which data source to check.
Return Value
Type: booleantrue if the specified data source has changed since the last call to QueryRun.next; otherwise, false.
This method is useful when data sources are hierarchically structured. A more embedded data source may change many times (such as the customer transactions). This occurs every time that a less embedded data source (such as the customer table) fetches a new record (another customer).
The changedNo method can be used instead of this function.
Community Additions
ADD
Show: