Expand my Community achievements bar.

How to display a documents version as stored in LC repository

Avatar

Former Community Member
Hallo,



I need to display the version of an XDP file. Stored in the LC repository every file gets a version number, e.q. myfile[#1.2].



So I thought to use a textfield an set its value to these version number. But, how to acces the repositorys version number of an file?



Regards, Leo
4 Replies

Avatar

Former Community Member
Or (as a second question, may be simplier) access the metadata (form properties) via scripting and place "a" version number information.



Any hints, please?



Regards, Leo

Avatar

Former Community Member
I do not believe that you can get at the version information that is in the repository. It merely takes the latest one that is active.



All of the Form Properties are stored in the XDP template. Here is an example of getting at the Title and Version. This assumes your form root node is form1:



xfa.host.messageBox("Title is " + xfa.form.form1.desc.title.value)

xfa.host.messageBox("Version is: " + xfa.form.form1.desc.version.value)

Avatar

Former Community Member
Thanks very much for your hint! That helps me ..



Regards, Leo

Avatar

Former Community Member
Hello, is there a compact overview about all informations available in xfa.form.form1.desc.* ? I only found common informations about XMP at Adobe's website ...



And: If I defined some proprietary variables as form properties how can I get those values in these kind?

Regards, Leo