04-09-2013 06:17 PM
I am trying to filture a report by using the Result Filtering Expression under the Include Step Results in the Report Options based on a Attribute I have defined in the step. I have selected the Include Attributes option but I am not sure how to access that information to filter my report based on it.
To access the information within a process model callback you would use Parameters.Step.AsPropertyObject.Attributes.CustomAttributeName. This does not work as the result filtering expression.
Any help with this would be greatly apprecaited.
04-10-2013 05:36 PM
Hi wiltdavi,
The reason this does not work is because you must specify an expression for elements of the Result
container. You may add your attribute to the Result
container and specify that attribute with the expression, Result.CustomAttribute
.
Warm Regards,
04-10-2013 05:46 PM
04-10-2013
06:19 PM
- last edited on
10-25-2024
03:43 PM
by
Content Cleaner
Hi wiltdavi,
Correct. The filter expression can only specify elements of the Result
container. The help document for this function does not do a good job of explicitly stating this, but it does try. A quote from the help document is as follows:
You can use any subproperty in the expression, but you must use Result
in place of Step.Result
. For example, when you want to include only failing steps in the report, set the expression to Result.Status == "Failed"
. Use the ring control to select predefined expressions for all steps, failing steps only, or passing steps only.
It should more explicitly state you can only use subproperties of Result
.
Warm Regards,