08-12-2010 03:07 AM - edited 08-12-2010 03:09 AM
Hi,
It seems there some "enhancements" in viewing xml reports in 4.2, 4.5 against 4.0, 4.1
I realized that in 4.0 the viewer was showing the the report as xml. The XSLT transformation was done by the web browser control inside
the the viewer.
Now in TS4.2 i have to define in the Report object the stylesheet path (unless i will define it in xml-file, too !!!!).
Then before the viewer will show my stuff it is transformated in html. Since 4.2 there is a TempReport.html instead TempReport.xml
Now the problem is that i am using my own stylesheet with a lot of javascript.
It seems that the transformation in the viewer is not working with my javascript stuff. (Note: MSIE has no problem in doing transformation)
Is there a way in 4.2, 4.5 to switch back to 4.0 and let the browser control doing transformation ?
Regards
Juergen
08-13-2010 03:36 AM
Hi Juergen,
when you select XML in "Configure" -> "Report Options" -> "Report Format: XML Document" you must get an XML report sheet too! Also in version 4.2.1. See the following document:
Report Generation Explained: http://zone.ni.com/devzone/cda/tut/p/id/3977
I also want to point that TestStand 4.5 is no existing version of National Instruments's TestStand software. How did you catch up on this "new" / not existing version?
I hope my information helps you to solve your problem.
Best regards
Suse
08-13-2010 04:38 AM
Hi Suse,
i am sorry but your formation did not solve the problem at all.
The report generation is working in all versions. The problem is at the bulit in report viewer since testand 4.2 it not showing my report. But why? Thats what i recognizsed: In the old versions of TS the xml file was given to the viewer which was a
descendant of a webrowser control. The browser transformated the xml via the stylesheet to internal html.
In newer versions of TS the xml file is transformated to html BEFORE it is given to the viewer. You will see it that there is
no TempReport.xml is generated. Since 4.2 it will be created a .html file.
I need to know if it is possible to switch back to TS4.0 feature or
you should tell me which transformation engine you are using in new versions.
TS 4.5 is the Teststand 2010 (Currently in Beta). And i am proud to be one of the test members before offical release
Regards
juergen
08-13-2010 11:49 AM
j_dodek,
There is a known issue in TS 4.2 or later, with the reportView control showing an empty report if the Report.StylesheetPath is not set.
In the default Sequential Process Model (Test UUTs and Single Pass Entry Points), this is done in the sequence called from Setup Report Dispaly Settings step.
Can you try setting the Report.StylesheetPath in the process model to see if this resolves your issue.
Regards
Anand Jain
National Instruments
08-16-2010 03:55 PM
Hi Anand,
- Report.Stylesheet path is set.
The problem is that the built in viewer CAN NOT transformate my own/user defined stylesheet. It seems the transformation engine has a problem with stylesheets which are using java-script. Note: MSIE 's engine has no problem with it.
Regards
Juergen
08-17-2010 12:46 AM
Juergen,
I have reviewed changes made to the report view control source-code in TS 4.2 and later, and did not find any other source code change made in TestStand 4.2 or later that could impact XML reports other than the one mentioned in my previous post.
The one change that I made in TestStand 4.2, impacts how we process XML reports if the stylesheet is not set.
To help resolve this issue further, can you please contact NI support and provide the custom stylesheet that does not work with the report view control in TS 4.2.
I will post back to the forums once we find a resolution to this issue.
Regards
Anand Jain
National Instruments
08-18-2010 10:03 AM
Hi Juergen,
did you already contact NI support?
I wanted to ask you for your files, especially the custom stylesheet!
Please add it to your post and we can search for a solution!
Best regards
Suse
08-19-2010 04:05 AM
08-19-2010 04:24 AM
Hi,
please call National Instruments 0049 89 / 74 13 130 and refer to Service Request Number (SRQ) 931128.
Then we can finish working on this issue.
Best regards
Suse
08-19-2010 03:30 PM
Hi Suse,
That means i have to pick my phone call NIG, Then i will give them my address, then will send your or another address to me where i can response.
Lasttime i did this procedure was i think five or more years ago. And it was really slow and often i found the solution here on this forums before SRQ was processed.
So i gave up ringing NIG and favourite the forums.
I will check it out and call NIG in last week of august, because i am out of office.
Regards
Juergen