Skip to main content
16-Pearl
June 6, 2023
Question

print widget extension

  • June 6, 2023
  • 2 replies
  • 2273 views

I need a print widget extension which takes "mashup entity" as input. 

 

I found some print widgets which takes screenshot of the current page. As scroll bar appears in mashup to see all the rows in collection widget, taking screenshot wont help. So we need a print extension which takes input as mashup, so that we can pass new static mashup in print widget to take print out.

 

2 replies

19-Tanzanite
June 7, 2023
16-Pearl
June 7, 2023

If you need a "widget" to be used in a mashup (that's how I read your post) you can have a look at https://community.ptc.com/t5/ThingWorx-Developers/Taking-screenshot-and-downloading-the-page/m-p/873613/highlight/true#M62256 who created a widget to trigger the "print" function in the mashups. Linking to github: https://github.com/Velkumar10/ThingworxPrintWidget 

16-Pearl
June 8, 2023

@Velkumar  @nmutter 

When iam clicking print button, i want some containers to be hided and when iam coming back from print to normal page, i need the hided containers to be shown again!! How we can trigger event when we closing print page ???

19-Tanzanite
June 8, 2023

Hi @AP_10343008 

 

I think we don't have the functionality to check print dialog box close event in Thingworx. 

 

As a workaround, you can create a separate mashup with the container closed/removed. Whenever a print button is clicked opens a Thingworx popup with a modified mashup and from there user can take a print. The only disadvantage is user has to click the print button 2/3 times. 

 

/VR