Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

How to display a documents version as stored in LC repository

Not applicable
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
Not applicable
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
pguerett
Level 10
Level 10
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)
Not applicable
Thanks very much for your hint! That helps me ..



Regards, Leo
Not applicable
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