Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting workflow multi-value attributes

Status
Not open for further replies.

mikepycroft

Programmer
Jan 3, 2002
11
GB
I have a multi-value text field as a workflow attribute. The user enters some text in a form and the next step in the workflow is to use a web report to copy this information from the form into the workflow attribute.

This works fine when I use a simple text field. However when I try to use a multi-value text field I am only able to update the first entry in the multi-value attribute.

Here is the code I am using:

[LL_REPTAG_&workid WFATTR:UserComments:COUNT SETVAR:myCounter /]
[LL_REPTAG_"1" ADDVAR:myCounter /]
[LL_REPTAG_%myCounter CURRENTVAL /]
[LL_REPTAG_&workid WFFORM:"Comments Form Form":txt_singleline:DISPLAY SETWFATTR:myCounter:UserComments /]

I have tried using
SETWFATTR:3:UserComments
and
SETWFATTR:"3":UserComments
and
SETWFATTR:[LL_REPTAG_%myCounter CURRENTVAL /]:UserComments

to add the information to the third element of the mutli-value variable but with no joy it always updates the first, any suggestions?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top