04-01-2009 06:11 AM
Hello,
I have an application in which HTML Report generation is the requirement.
Actually, the application is a testing application for an embedded hardware and is used for testing the hardware for a number of test cases.
Now, i have to print all tests in a summary format in which the result of each test is to be displayed in front of the test case as Pass or Fail in a tabular format in HTML Report.
I want to insert hypertext link to the result of the test so that when ever user clicks on the result (Pass or Fail) of an individual test, its full information should be visible.
I can append the hypertext to a string and print that on HTML Report by using Appent Hypertext Link Anchor to Report.vi.
But how to insert Hyperlink to the text in a particular index of the table displayed in HTML Report.
Please guide me in this regard.
Thanks & Regards,
Samriddh Sarbalhi
04-01-2009 06:39 AM
Hi samriddh,
you can use <a name="target"> and jump to it with <a href="#target">.
Hope it helps.
Mike
04-01-2009 06:54 AM
Hi Mike,
Can you elaborate your answer. What i just understood is that i have to write a program which will have <a name="target"> as a java tag and other things to work perfect as i had come to know that Java is behind the HTML Report generation.
Am I right?
Can it be possible to do this without defining any thing like <a name="target"> in the vi as i have been ordered by my manager to eliminate the usage of this type of text to the minimum possible limit.
Thanks & Regards,
Samriddh Sarbalhi
04-01-2009 07:12 AM
Hi Mike,
I tried with your suggested solution.
The text was hypertexed but when i click to display the text which is linked to it is not shown.
In general text i had linked the Text to a file to open after click on the hypertext by using Append Hypertext Link Anchor to Report.vi by stating the URL or the File Path to its input.
I am attaching the VI for your reference.
Thanks & Regards,
Samriddh Sarbalhi
04-01-2009 08:20 AM
Hi samriddh,
attached you'll find an example about what i think what you want.
Hope it helps.
Mike