01-24-2020 08:40 AM
Hello Everyone,
I would like to change "SerialNumber" text into Report Header as shown in figure. Is there any easy way to do this?
Just replace "SerialNumber" with othertext for example "XYZ".
Thanks in advance.
Solved! Go to Solution.
01-24-2020 09:10 AM
If you're using an XML or ATML report you should be able to do it by just modifying the stylesheet:
http://www.ni.com/product-documentation/54604/en/?OpenDocument
I played around with the ATML TR6_Expand one and got it to work by modifying "Serial Number" here:
<xsl:call-template name="PutBatchUutLink"/>
<h3>
UUT Report
</h3>
<table class="uutTable">
....
<tr>
<td>Serial Number :</td>
<td>
<xsl:value-of select="tr:UUT/c:SerialNumber"/>
</td>
</tr>
....
Hope this helps!
Trent
01-07-2021 09:29 AM
Hello,
Sorry, I am aware this is an old thread, but I am also working on something similar.
Can you please tell me where TestStand pulls the SerialNumber from using the statement:
"<xsl:value-of select="tr:UUT/c:SerialNumber"/>"
01-07-2021 11:40 AM
The Serial Number gets pulled from the actual XML report that the stylesheet is translating:
If you're customizing stylesheets, I highly recommend going through some of the documents on w3schools about XPath and XSLT: https://www.w3schools.com/xml/xpath_intro.asp
Hope this helps!
Trent