04-12-2011 07:56 PM
Hi, I add the one column and want to display the step result in SequenceView control. The result should be display depends on the steptype, if it's Numeric, then result is a number, if it's a string, then result is a string, etc. How can I do this?
Currently, I found I can check whether the property exits like
PropertyExists("ThisContext.Step.Result.Numeric")? ThisContext.Step.Result.Numeric:PropertyExists("ThisContext.Step.Result.String")? ......
However, this will cause the all the step result are displayed even it's not executed. How can I only display it after the step is finished?
By the way, How can I also display the Limits(Low and High) for Numeric step if I add a new column?
Thanks in advance
BR
Gavin Chen
04-13-2011 10:37 AM
You should be able to determine if the step has been run by checking that the Step.Result.Status is an empty string or not. For limits you could maybe just do something like:
PropertyExists("Step.Limits.Low") ? Str(Step.Limits.Low) : ""
Hope this helps,
-Doug
04-13-2011 07:27 PM