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
BedrockMission!

Learn More

View all

Sign in to view all badges

WriteDocument Activity problem

Avatar

25-08-2008

Hi,

I try to save attachment on disk. In my user activity I save "notes and attachments" in a "list" of document (variable name : ListDocAttachment).

After I want save this attachments with activity "WriteDocument".

In "pathname pattern" I have :

concat('D:/tmp/', getDocAttribute(/process_data/ListDocAttachment[/process_data/@loopVar],"wsfilename"))



In "document" I have :

/process_data/ListDocAttachment[/process_data/@loopVar]



Make Unique: false

OverWrite: true.



Before his activity I have a "SetValue" where I raise my "loopVar".



So, In fact I save all documents on disk but they are the first document's name.

If I attach 2 documents (d1,d2) LC save d1 and overWrite d1 value with d2 value on d1 name.

In fact I have one document name d1 with d2 value.

So, I want d1 and d2.

Any Idea?

Thanks.

Replies

Avatar

25-08-2008

Hi,

I found a solution :

"pathname pattern":

concat(/process_data/@PathsaveAttach, getDocAttribute(/process_data/ListDocAttachment[number(/process_data/@loopVar)],"wsfilename"))



I just added "number" on my "loopVar".

Sorry for this useless post.

Avatar

Avatar
Boost 5
Level 9
HowardTreisman
Level 9

Likes

5 likes

Total Posts

936 posts

Correct Reply

9 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile

Avatar
Boost 5
Level 9
HowardTreisman
Level 9

Likes

5 likes

Total Posts

936 posts

Correct Reply

9 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile
HowardTreisman
Level 9

25-08-2008

Hi Siham

It's not a useless post, it's actually really helpful of you to post your solution - this will help others who hit the same problem.



Thank you!

Howard