Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

Open a Method/Dialog from HTML Report

Hello all.

 

I am currently trying to create a HTML report that reports on the status of multiple different frames and idealy provides links to different methods within the frames, got the report generating and got a path to the frames but am finding it hard to get the link to work.

 

From looking at the report produced by the Profiler I have had an attempt but it instead tries to open it in internet explorer and not within Plant Sim.

 

"<a href=\"opendialog:" + Method_Path + "\">" + Method_Path + "</a>"

Above is the HTML code that I have tied to get working, any tips or pointers towards a working solution to create a link to open the method.

 

 

Also is it possible to open a method at a set line of code either through SimTalk or from a HTML report?

 

JamesM

12 REPLIES

Re: Open a Method/Dialog from HTML Report

It looks like you are using too many "-signs. Can you check the resulting HTML-code as you generate it?

 


Gert Nomden
Senior Consultant | Tecnomatix Product Manager
cardsplmsolutions.com

Re: Open a Method/Dialog from HTML Report

Hello

 

The resulting line in the HTMLReport object looks like:

<a href="opendialog:.Test_Area.Frame.Run">.Test_Area.Frame.Run</a>

JamesM

Re: Open a Method/Dialog from HTML Report

Can you test without them?

 


Gert Nomden
Senior Consultant | Tecnomatix Product Manager
cardsplmsolutions.com

Re: Open a Method/Dialog from HTML Report

For clarity, please test it as follows:

"<a href=opendialog:" + Method_Path + ">" + Method_Path + "</a>"

 


Gert Nomden
Senior Consultant | Tecnomatix Product Manager
cardsplmsolutions.com

Re: Open a Method/Dialog from HTML Report

Hello

 

If I remove all of the " from it, then the same thing still happens, it shows the report and when I click on the link it tries to open it within Internet Explorer instead of with Plant Sim.

 

JamesM

Re: Open a Method/Dialog from HTML Report

Yes, I now noticed the same problem. Strange, because the code looks to be exactly the same format as in the Profiler-report!

 

Maybe the target for the link is defined elsewhere. Maybe one of the Siemens people can tell...

 


Gert Nomden
Senior Consultant | Tecnomatix Product Manager
cardsplmsolutions.com
Solution
Solution
Accepted by topic author JamesM
‎11-03-2016 08:40 AM

Re: Open a Method/Dialog from HTML Report

This will work:

<a href="opendialog:.Test_Area.Frame.Run" target="_self">.Test_Area.Frame.Run</a>
Regards,

Ralf

Re: Open a Method/Dialog from HTML Report

Hello.

 

Thank you, this worked for me, just put it into my code and tested it.

 

JamesM

Re: Open a Method/Dialog from HTML Report

Yes, this works, with and without "-sign.

 

Good to know!


Gert Nomden
Senior Consultant | Tecnomatix Product Manager
cardsplmsolutions.com