Highlighted

How to display a documents version as stored in LC repository

Avatar

23-06-2008

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

Replies

Highlighted

Avatar

23-06-2008

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
Highlighted

Avatar

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692

Avatar

pguerett

Total Posts

7.7K

Likes

611

Correct Answer

692
pguerett

23-06-2008

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)
Highlighted

Avatar

23-06-2008

Thanks very much for your hint! That helps me ..



Regards, Leo
Highlighted

Avatar

26-06-2008

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