[Web Previewer] Is there a sample OML?

[Web Previewer] Is there a sample OML?

  
Forge Component
(17)
Published on 19 Nov (3 weeks ago) by Rui Mendes
17 votes
Published on 19 Nov (3 weeks ago) by Rui Mendes

Hello,


I would like to use the WebPreviewer, however, i  have no idea how to implement it in my application. Would it be possible to get a sample OML?


Thank you in advance.

Hi Basama,

I have attached the test oml.

Pfa

Regards,

Rajat Agrawal

Rajat Agrawal wrote:

Hi Basama,

I have attached the test oml.

Pfa

Regards,

Rajat Agrawal

Hey Rajat,

The sample is not working, it does not preview a file.

Hi,

It is working, Let me send you the screenshot.


Regards,

Rajat

Rajat Agrawal wrote:

Hi,

It is working, Let me send you the screenshot.


Regards,

Rajat

In that case,

Perhaps I am not deploying it correctly, please do send a screenshot.

Thanks in advance.


Hi,

I'll sending you screenshot soon, internet is working in laptop.

Give me sometime I'll send you soon.

Regards,

Rajat 

Hi Basma,

See the screenshot below


It's working fine, can you share your oml file.

Regards,

Rajat Agrawal

Rajat Agrawal wrote:

Hi Basma,

See the screenshot below


It's working fine, can you share your oml file.

Regards,

Rajat Agrawal


I do get this page, but the preview itself is not working. I can't preview the file after uploading it!

Hi,

But you can see I am available to see preview after uplaoding file. I think you doing some mistake. Can you share your OML file with me and one more thing go check the filename, binary data, file type you are passing in web preview file list variable.


Regards,

Rajat Agrawal

Solution

Hello, Basma and Rajat.

The component itself has a sample module you can use to test the file preview from the database or URL.

You can open the WebPreviewerSample module and check out the implementation.


Hope this is helpful.


Cheers,

Rui Mendes

Solution

Hi Mendes,

It will also help Ruis and I think you have created this extension.

When we download the component we dn't get any sample module.

I am attaching you the download oml.


Regards,

Rajat Agrawal


Hi,

You can also see in below screenshot. 


Regards,

Rajat Agrawal

Hi, Rajat and Basma.

Please update the component to the most recent version [Version 2.0.1].

You should be able to reference the WebPreviewer block in your app, and have the sample available as well.


Cheers,

Rui Mendes

Hi Ruis,

I already implement this component and is working fine.

Thanks for your new version update and now it will help others in future.


Regards,

Rajat Agrawal

Can u help me on this issue. The preview is working correctly on mobile devices but it shows some error in PC.