I have a pdf viewer that I created a custom property on called
isZoomed. I’m changing the pdf view based on this custom property. For testing, i’m using a button to toggle the custom property. It works perfect in designer preview mode, but it does not work in the client and I get this error.
Traceback (most recent call last): File "<event:actionPerformed>", line 2, in <module> AttributeError: 'com.inductiveautomation.factorypmi.plugins.reporti' object has no attribute 'isZoomed'
pdf = event.source.parent.getComponent('PDF Viewer') if pdf.isZoomed: pdf.isZoomed = 0 else: pdf.isZoomed = 1