[File Viewer Plugin] Cannot read property 'DocumentPreview' of undefined

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

When using the FileviewerPlugin.OpenDocument action I get an error: Cannot read property 'DocumentPreview' of undefined.

Is there some prerequisite I am missing?

Kind regards,

Paul Schmeddes

Hi Paul,

Can you please share your implementation?


Tiago Gafeira.

Hi Tiago,

Please find enclosed a modified file transfer example app.

I changed the Mainflow/Download/DownloadFileOnDownloadComplete action to invoke the FileViewer.OpenDocument action.

Kind regards,


I had same error. Regenerating the native apps will fix this error.