Javascript API - get/set document version

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2007 05:32 AM
Hi,
surprisingly enough, I don't know how to access a document version from Javascript.
I was expecting something like
Also, what is the way to modify the version. For instance, I want to transform a MSWord to PDF, and I would like the PDF to be in sync with the .doc version.
Thanks in advance,
Best regards,
Stephane
surprisingly enough, I don't know how to access a document version from Javascript.
I was expecting something like
document.properties.versionor document.properties["cm:version"]
, but version doesn't follow the rule!Also, what is the way to modify the version. For instance, I want to transform a MSWord to PDF, and I would like the PDF to be in sync with the .doc version.
Thanks in advance,
Best regards,
Stephane
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2007 05:41 AM
I think property is called "versionLabel".
You can browse properties using NodeBrowser from admin menu or look at contentModel.xml.
You can browse properties using NodeBrowser from admin menu or look at contentModel.xml.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2007 07:25 AM
Of course, I passed by the versionLabel property without seeing it…
Thanks a lot for your very quick answer.
stephane
Thanks a lot for your very quick answer.
stephane
