Try the fastest and simplest way to install ONLYOFFICE

Know the active edition

Integration questions/issues

Know the active edition

Postby bclauss » Tue Dec 19, 2017 11:00 am

Hey,

I need to know the document that are currently open and modified. Is there a service in the document server that I can call to get this information ?

Thanks,

Baptiste C.
bclauss
 
Posts: 22
Joined: Mon Sep 18, 2017 9:06 am

Re: Know the active edition

Postby Maxim » Tue Dec 19, 2017 1:11 pm

Hello bclauss!
I need to know the document that are currently open and modified

What exactly do you want to know about this document?
Maxim
 
Posts: 1742
Joined: Tue Oct 11, 2016 2:34 pm

Re: Know the active edition

Postby bclauss » Tue Dec 19, 2017 1:17 pm

If the document is open by another user and if I need to generate a new key or not. (I want to make a co-editing system)
bclauss
 
Posts: 22
Joined: Mon Sep 18, 2017 9:06 am

Re: Know the active edition

Postby Maxim » Tue Dec 19, 2017 1:27 pm

Hello bclauss!
I think you should look here
Maxim
 
Posts: 1742
Joined: Tue Oct 11, 2016 2:34 pm

Re: Know the active edition

Postby bclauss » Tue Dec 19, 2017 1:37 pm

I already read this. I know how it works. But thing is that in my document manager I don't know if my document is already open or not. Is there a way to ask the api ?
bclauss
 
Posts: 22
Joined: Mon Sep 18, 2017 9:06 am

Re: Know the active edition

Postby Maxim » Tue Dec 19, 2017 1:52 pm

Hello bclauss!
I hope this will help you.
Maxim
 
Posts: 1742
Joined: Tue Oct 11, 2016 2:34 pm

Re: Know the active edition

Postby bclauss » Tue Dec 19, 2017 2:21 pm

Thanks,
I receive a error code equal 0 if the document is open or not. Is that okay ?
bclauss
 
Posts: 22
Joined: Mon Sep 18, 2017 9:06 am

Re: Know the active edition

Postby Maxim » Thu Dec 21, 2017 12:17 pm

Hello bclauss!
If a document is not open you will get "Error code -1"- Document key is missing or no document with such key could be found.
If a document is open you will get "Error code - 0" and callback will get data with information who edits the file.
Maxim
 
Posts: 1742
Joined: Tue Oct 11, 2016 2:34 pm


Return to API

Who is online

Users browsing this forum: No registered users and 3 guests