Generate a QR code that downloads or displays pdf file

I am trying to use ignition perspective's QR component to generate a path to a view I have created, directing the user to that view. This is the bare minimum I am trying to accomplish. For the long term however, I would like to QR code to allow a download of a pdf but I'm not sure if that is possible. Is there anything I can do to accomplish this?

At the minimum you would need to decide on a format for the data in the QR to script something in Ignition to be able to parse/handle it when it's scanned.

If you are going to mix and match your QR codes (some do nav and some do download), then you need to decide on unique identifiers for each type so your script can determine which type of QR code was scanned.

From there, based on what was in the QR, perform navigation via system.perspective.navigate or call system.perspective.download to prompt the user to download something.

For actually generating the barcode, you can use the Reporting module for Ignition, or you can use a 3rd party tool.

So to call system.perspective.download or system.persepective.navigate, I would need to design a scanning application in ignition for users to use to scan said QR code and view/download its contents?

Yes, either that or integrate the barcode scanning into your existing application (that you want to navigate in).

That would probably mean either running your application in the mobile app or putting a barcode scanner input component on all your views, or maybe a designated view to allow navigation/download.

2 Likes