01-27-2009 10:08 AM
It seems not to be possible to use array of data in additional results? Anyone who knows if this correct?
Regards
Vagn
01-28-2009 03:26 AM
Hi,
Just add the array in the Value to Log column eg Locals.MyArray. You dont need to add each element.
Add some meaningful string in the Name column and ensure the Include in Report is enabled.
All this will do is include the values of each element of the array in the report. I have noticed that if you are using XML or HTML report, the contents of the array are displayed as a graph and you will have to change the report options as to how you want the data to be displayed.
As a Text report the values get displayed as a list.
Hope this helps.
Regards
Ray Farmer
01-28-2009 05:11 AM
Hi,
I am sorry not to be specific enough.
I have a custom data type existing of an array (StepIDs) of container (StepID) which include 2 numeric values (StepNo, ErrorCode) and 1 string value (ErrorComment).
I would like to specify the "StepIDs" in the "Type" field. This is not possible as I see. The "StepID" container may be specified, but not StepIDs.
If I make a local variable using "StepIDs" I can use this, but can't use the data type directly.
Hope this help understanding my problem.
Regards
Vagn
01-28-2009 06:14 AM
Hi,
I tried your example, the first step I am seeing the extra result and when I add some values to your local I see them as well.
The second step doesn't because you haven't specified anything to report.
Regards
Ray
01-28-2009 06:47 AM
Hi Ray,
Exactly my point. In the first step I show what is possible, but I don't want to do. In the second step I would like to specify "StepIDs" in the "Type" field. This is not possiple, and it is not possible to use an expression.
The reason I would like to use the "StepIDs" type is that in each step in the sequence a unique StepNo must be provided. This I would like to specify directly in the "additional results" pane.
(Alternative solution is to make a custome steptype and specify it in the result container to include it in the report. And make a smalle configurator for technician to key in Step No, Error code and error comment for each step.)
01-28-2009 07:43 AM
Hi,
Select <ANY TYPE> and it will pickup StepIDs when you specify the Locals.StepIDs and it will use the size of the array to insert into the report.
Otherwise if you select StepID then you have to specify the individual elements of the array.
Regards
Ray
01-28-2009 09:09 AM
Hi,
I think we misunderstand each other, I don't have data in Locals.StepIDs. This was only an example showing that additional results might operate with arrays. I need to key in information for each step in additional results. If I could settle for one stepNo in each test step it is possible to chose data type "StepID" (the container). If I need 2 or more step numbers I could include equivalent number of "StepID". The brilliant solution would be to have an array of "StepID". This is what I can't specify.
I have changed the example to use a number of "StepID". Instead of using a number of "StepID" I would like to use the "StepIDs" (array) but this seems not to be possible?
Regards
Vagn
01-29-2009 12:42 AM
Hi Vagn,
If I am understanding, it does appear that you can not select an array of types and populate with data statically as you have in your example.
The only way would be use a variable which is an array of types such as a Locals and link this in the additional results as I did in my example.
regards
Ray
02-04-2009 03:54 AM
Hi Ray,
I will just make a small modification to the standard NI test types and add a "StepIDs" array to the result container instead of using the "additional results". This solves my problem.
Regards
Vagn