How to set value to form control (subform) using API
I now have a process starting by a form which includes sub-form, allowing user to apply multiple items in same process instance.
But the thing is, I may have to start the process through external form.
so I call the API "CreateProcInst" when user applying something from external form,
and pass the value which user applied to parameter "Attributes".
It worked fine if user only have one thing to apply like this pic below
But I failed to pass multiple items' value, and if I change the "Name" field to "XXX:[*]" like it said in the Data Model, I will get an Invalid token error.
/
I tried to start a process from Agilepoint, applying multiple items.
Then I checked the data in Runtime Management, and the Xpath was with index at the end.I tried to copy that Xpath and change the parameters of API CreateProcInst.
But still, the process created only contained one item in subform.
Should I create a form variable (SubFormItem) from API of any kind or what? Does anyone know how to fix this problem?
-
In additional, I tried to send data following the structure of what I saw from Runtime Management like pic.
But the result was like this
Also, I noticed that when Creating Process Instance from AgilePoint Application, the "CustomAttributes" of that specific event was null.I guess the content the form passed was in the "ParamsXml" field's "UserContext", is it possible if I just send data through that field?
Please sign in to leave a comment.
Comments
3 comments