cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

HTML Text Area - Print Button

pshashipreetham
18-Opal

HTML Text Area - Print Button

Hi, 

 

We have a request to be able to print the page when a button on the Thingworx Dashboard is pressed. 

 

I was checking, if possible, with the HTML Text Area widget, I was trying with below code and it was not working:

<!DOCTYPE html>
<html>
<head>
<title>Print Page Example</title>
</head>
<body>
 
  <h2>This is a sample printable page.</h2>
<p>Click the button below to print this page.</p>
 
  <button onclick="window.print()">Print This Page</button>
 
</body>
</html>


Thingworx Version: 9.7

Thanks,



Shashi Preetham,
Email: psp316r@outlook.com,
Mobile: +91 8099838001.
ACCEPTED SOLUTION

Accepted Solutions

Hi @Rocko 

 

Tried everything, nothing worked. According to the use case, I need to insert it into the HTML Text Area, which is currently not possible.

 

I found a workaround using the value display widget.

 

Thanks,

Shashi Preetham,
Email: psp316r@outlook.com,
Mobile: +91 8099838001.

View solution in original post

4 REPLIES 4

Have you considered a search on PTC support? Many articles are available on this topic.

https://www.ptc.com/en/support/search/#q=print%20mashup

 

Hi @Rocko 

 

Tried everything, nothing worked. According to the use case, I need to insert it into the HTML Text Area, which is currently not possible.

 

I found a workaround using the value display widget.

 

Thanks,

Shashi Preetham,
Email: psp316r@outlook.com,
Mobile: +91 8099838001.

HTML Text area is mainly for text display - you can't put active components or JS in there, it will be filtered out. 

Yes @Rocko , Agree.


Shashi Preetham,
Email: psp316r@outlook.com,
Mobile: +91 8099838001.
Announcements


Top Tags