307
Views
2
Comments
Solved
[File Viewer Plugin] File Viewer Plugin not working with Outsystems 11
Question
file-viewer-plugin
Mobile icon
Forge asset by OutSystems

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..."

2021-08-30 15-28-09
Leandro Correa
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..."



UserImage.jpg
Anthony Phan

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.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.