Declare expressions do not work as expected
Below Declare Expression sets EligibleForRemittance to False when if IsAddedOnRemittanceDay evaulates to True, and True when if IsAddedOnRemittanceDay evaluates to False.
Both IsAddedOnRemittanceDay and EligibleForRemittance are properties of type TrueFalse.
Steps to Reproduce
Create a Declare Expression as described in the summary and test.
Given use case is a wrong usage of the function alias "pyCollectionEvalReturnBoolean" (Return value is [True / False]). This function alias compares the values selected in dropdown with the value in parameter "pxReturnValue". When both match- it returns true, when they do not match- it returns false. Since this is a declare expression, the context would not have parameter "pxReturnValue" set in it. Therefore, the R-U-F would not work as expected and would always return True instead of False and vice-versa.
Change the function alias from Return value is [True / False] to [expression evaluates to true].
0% found this useful