cancel
Showing results for 
Search instead for 
Did you mean: 

Using the Same Applet with Different Display Template Types

Former Member
0 Kudos

I'd like to use the same Java applet in my HTML with different types of display templates (and template types - some will be iChart, some iSPCChart, etc)depending on a value that a user picks off a list.

How do I change the 'code=' dynamically?

Accepted Solutions (1)

Accepted Solutions (1)

jcgood25
Active Contributor
0 Kudos

David,

Your best bet would be to use an iFrame to house an irpt page. Then in the parent html page where the user makes their selection simply pass through the necessary parameters, etc. to the irpt page using the named tokens embedded in the irpt page itself.

For an example you can refer to a predelivered sample on your server: <a href="http://localhost/Lighthammer/Samples/SPC/Servers.irpt">http://localhost/Lighthammer/Samples/SPC/Servers.irpt</a>

Essentially the user choices just set the stage and when they press the 'Go' button you formulate a url and change the src of the iframe. The irpt page does all the necessary search and replace tokens from the request url string and your dynamic page shows up.

Best Regards,

Jeremy Good

Former Member
0 Kudos

David,

On your irpt page your applet code will look something like this:

<APPLET NAME="BatchList" CODEBASE="/Illuminator/Classes" CODE="" ARCHIVE="illum8.zip" WIDTH="95" HEIGHT="306" MAYSCRIPT> notice the CODE="" where display is the session variable you will set from the "main" page (the page containing the iframe in Jeremy's scenario).

Joe

Answers (0)