AX2386
IsRunningMultiPass function
Returns True if the file that contains the function is currently being processed using multipass processing. You can use it to create dynamic headers or change file settings based on whether multipass processing is occurring.
Syntax
IsRunningMultiPass()
This function does not take any parameters.
Remarks
IsRunningMultiPass is a non-volatile function.
Examples
=IsRunningMultiPass()
This example returns "False" when multipass processing is not occurring and "True" when it is occurring.
=IF(IsRunningMultipass()=TRUE,GetCurrentValue(),"Consolidated")
In this example, the IsRunningMultiPass function is used within an IF function to change the result depending on whether multipass processing is occurring. This function returns the current pass item during multipass processing and returns the text "Consolidated," otherwise. (You can get the same result by using just the GetCurrentValue function provided you define the current value default as "Consolidated" for the column that defines the multipass list of items.)
