Preview in G9

Hi 

The standard Preview functionality in G9 looking very good

When looking into the calls i see few calls happens when clicking on a Document for example to preview:

https://online2.superoffice.com/xxxxx/api/v1/Agents/Document/GetDocument?documentId=742
https://online2.superoffice.com/xxxxx/clientapi/ServerEvent/CallEndExecuteOnPlugins
https://online2.superoffice.com/xxxxx/api/v1/Agents/Document/GetPreviewDocumentStream

...

But looking into that CrossMessaging sample you guys had on the Github for opening a document or send as an email..etc

Is it possbile to expand that concept for some kind of SoProtocol command for Previewing a Document/Activity?

Or is there something out there already / Or maybe just i have to register this as a wish 

 

Thanks.

RE: Preview in G9

Hi Shivan,

I think this post has gone stale because we're just not certain what you mean by "Previewing a Document/Activity". This could mean a few different things and no one ones to try and interpret and explain all variations. 

If you would be so kind as to elaborate more on what you mean by previewing? For instance, are you asking what the SoProtocol would be to open the Preview minicard?

 

 

Av: Tony Yates 20. jan 2021

RE: Preview in G9

Hi Tony and thanks for the answer ,


Yes that was the question what the SoProtocol would be to open the Preview minicard ? 
when you click on a document or an appointment in Preview the contain

(Is that possible via SoProtocol)

Av: Shivan Malek 20. jan 2021

RE: Preview in G9

Hi Shivan,

Does the minipreview soprotocol not give you what you want?

https://site/default.aspx?contact.main.activityarchive.minipreview?document_id=654321
https://site/default.aspx?contact.main.activityarchive.minipreview?appointment_id=123456

Hope this helps!

Av: Tony Yates 20. jan 2021

RE: Preview in G9

Thanks will try it again.

Av: Shivan Malek 20. jan 2021

RE: Preview in G9

This so comand works fine and you can preview appointment and document from your panel

main.activityarchive.minipreview[dialog=stop][refresh=false]?appointment_id=1

I had to include the [dialog=stop] otherwise it wasnt working 

But there is one issue the [refresh=false] has no effect it on it , it alwayes jump out of my panel (application) and select the SuperOffice Activities panel , I tried to include something like [dialogwinname=mywindow] and other combination but still same

is there any other way to stop this jumping and refreshing when using SoProtocol ?

 

Av: Shivan Malek 28. jan 2021

RE: Preview in G9

Hi Shivan,

Yeah, those [dialog=stop][refresh=false] entries don't make sense. Well, I get the attempt for [refresh=false], which is relevant when archives are in context... 

I've had to go back and consult the team on this one and contrary to the typical scenerio where the main panel and card are required, in this case it seem that just specifying minipreview is enough.

... executeProtocol("minipreview?document_id=" + dataItem.ID)

 

Hope this helps!

Av: Tony Yates 28. jan 2021

RE: Preview in G9

Thanks for the quick response Tony , works better now no jumping to SuperOffice Activities now and the preview work as expected.

But it is refreshing my panel though :) 

i will try to figure that out.

Av: Shivan Malek 28. jan 2021

RE: Preview in G9

This was really interesting. Could really se the use of this, but still anoying that all web panels refresh...

Let me know if you find a way around that :)

Av: Andreas Bergstrand 28. jan 2021

RE: Preview in G9

Ok, one step closer... let's see if we can land this plane!

try:
<nameofwebpanel>[refresh=false].minipreview?appointment_id=245

Where the name of the webpanel is from:

How's that work for you?

 

Av: Tony Yates 28. jan 2021

RE: Preview in G9

And the plane has landed! Worked like a charm!

Thank you Tony!

Av: Andreas Bergstrand 28. jan 2021