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

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

  
Forge Component
(1)
Published on 2016-11-07 by OutSystems Experts
1 vote
Published on 2016-11-07 by OutSystems 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.