I have a user step with a few attachments. When I use the same list in the consecutive user step the attachments from the previous step duplicate and it creates double the number of attachments. I use the "copy all notes and attachments from a list of documents." and specify the list for input and output.
Could someone explain if this is a bug or expected functionality.
Thanks
Aditya
Views
Replies
Total Likes
It is not a bug, but an implementation concern on collections.
For e.g lets take the assignment: aListVariable = {a list of attachments}
Now, the list variable will not overwritten rather the items will be appended to the list;
So to get rid of this issue, try to follow my approach;
create two list variable of type document (say list1 & list2)
For a Assign Task activity set the following:
Attachment & Notes
Copy all attachments from = list1
Output attachments = list2
Place a Set Value component after the Assign Task and assign the following:
list1 = empty-list()
list1 = list2
list2 = empty-list()
Hope this will resolve your problem.
Nith
Views
Replies
Total Likes
To overwrite existing items in a List, indicate the index in the list. So, to overwrite all the list items, use the 1 index:
/process_data/listVar[1]
http://livedocs.adobe.com/livecycle/8.2/wb_help/000262.html
scott
Views
Replies
Total Likes
Never mind about my suggestion, scott's reply is correct!
Nith
Views
Replies
Total Likes