Modifying Property Sheet data for a hierarchy of objects
The TreeSetPropData.pl is a sample Perl program delivered to the Contenta_home/Encaps/Samples/Perl directory.
It can be used to modify the data in a specified Property Sheet field for a hierarchy of Objects.
This script is only valid on Windows systems. It can be executed on a Windows Contenta Administration system that is accessing a Linux database server, but it does not work if issued on a Linux system (and it does not generate an error).
The Dynamic Import File Import feature does not have any assumptions about the Property Sheet of the data/Objects it is importing, therefore it does not populate any Property Sheet fields. If you use File Import to import a hierarchy of Objects you may need to add data to a Property Sheet field for the imported Objects. To do this, you can use TreeSetPropData.pl to add the data.
The syntax is:
TreeSetPropData.pl -p path -pd “PropertySheetFieldName”
-v value -s socketnum -n node -d database -u sysadmin -pw
password
| Switch | Description |
|---|---|
| -pd “PropertySheetFieldName” |
For example, to change or add data to the Document Type Property Sheet field data, enter “Document Type”. Double-quotes are mandatory if the field name contains spaces. |
| -v value | value is the data that is to be entered in the Property Sheet field. |
| -s socketnum | socketnum is the PcmPortal number to use to connect to the server. |
| -n node | node is the Contenta Server node name in which to connect. |
| -d database | database is the name of the Contenta database in which to connect. |
| -u sysadmin | Enter as shown, the user that connects and modifies the Property Sheet data must be the Contenta sysadmin user. |
| -pw password | password is the sysadmin’s password. |