08-17-2010 03:22 PM
I am trying to modify a ResultList in the TestReport Callback to customize a Report, but want to keep the original state for the rest of my Process Model Execution Entry Point (mainly for PostUUT Callback).
I can't create at design time a variable of type Result.
I can't create at run-time a variable of type Result.
I may clone the Result array to a PropertyObject, but I may not use this PropertyObject the same way I would with a Result array in the default Process Model.
I can't pass my ResultList by value instead of by Reference in an attempt to unmodify the original copy of the data in the Callback.
I am now thinking of having my PostUUT prior to TestReport callback, which I think should work, but I was hoping for a cleaner outcome.
I am missing something obvious?
Thank you,
Mathieu Daigle
Certified TestStand Architect
Averna
08-18-2010 12:58 AM
Hi Mathieu,
Not 100% clear on what you are trying to do but can't you just use
Locals.tmpResultList = Locals.ResultList and then work with tmpResultList.
08-19-2010 08:23 AM
Thanks Ray for your post which lead me to a solution on my side.
What I want to do? Well without entering in details, I use my ResultList in two places, TestReport and PostUUT Callbacks. I want to modify this ResultList in one case and leave it untouched for the other.
I had a brain lag forgetting I could just copy paste a ResultList array for a Locals.ResultList somewhere and put it in TestReport Callback (I just don't know why the Result type is so hidden and not usable to create a variable). That being done, = assignation effictively copies the data and allows to modify the copy without modifying original content.
OK, this might not be 100% clear, but oh well, it works now.
Thanks again,