[File Viewer Plugin] File Viewer Plugin not working with Outsystems 11

Forge Component
(5)
Published on 2018-08-22 by Experts
5 votes
Published on 2018-08-22 by Experts

Hi,


I am using Outsystems 11 and trying to use the "File Viewer Plugin". I have set up a very simple client action shown below and triggered it using a button. Unfortunately I receive the following error on both my android devices

"Cannot read property 'DocumentPrview' of undefined"

I have also tried putting a dataURI in the "urlFile" field in the format "data:image/gif;base64,R0lGOD..."

Solution

Hi Anthony,

I guess that the plugin wasn't installed, you can use the CheckDocumentViewerPlugin Action to verify if the plugin exists on your device. Case are not, you'll need to generate a new binary (apk) and uninstall and install again the application on your devices.

I hope this solve your issue! 

Best Regars,

Leandro.




Anthony Phan wrote:

Hi,


I am using Outsystems 11 and trying to use the "File Viewer Plugin". I have set up a very simple client action shown below and triggered it using a button. Unfortunately I receive the following error on both my android devices

"Cannot read property 'DocumentPrview' of undefined"

I have also tried putting a dataURI in the "urlFile" field in the format "data:image/gif;base64,R0lGOD..."



Solution

Hi Leandro,

I can confirming that uninstalling the app, regenerating the APK and reinstalling has fixed my issue. 

Had my app of been in production I believe this may have been a problem though.