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

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

  
Forge Component
(4)
Published on 23 May by Experts
4 votes
Published on 23 May 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?


Thanks,

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,

Paul

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