mikepycroft
Programmer
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_singlelineISPLAY 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
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_singlelineISPLAY 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