Hi Everyone
You can set and get attributes for documents via XPath. Here are a few examples.
In a Setvalue qpac, you can use the following syntax to set the permission of the document in position 1 of your list called "doclist", to read/write/delete:
Left side of setValue:
/process_data/doclist[1]
Right side of setvalue:
setDocAttribute(/process_data/doclist[1],"wspermission", "7")
-------------------------------------------------------------------
To set a document name in position 2 of the list to file.txt:
Left side of setValue:
/process_data/@doclist[2]
Right side of setValue:
setDocAttribute(/process_data/doclist[2],"wsfilename", "file.txt")
---------------------------------------------------------------------
To retrieve that file name, create a variable of type string called
docfilename to hold it.
Left side of setValue:
/process_data/@docfilename
Right side of setValue:
getDocAttribute(/process_data/doclist[2],"wsfilename")
Hope this helps.
Diana@adobe