on 10-21-2011 8:58 AM
Hi,
We created a Visual Composer application which we would like to call from a workflow. If we don't pass a parameter to the VC, it works, when we pass one, it doesnu2019t work.
Our Visual Composer application expects an input value called WI_ID.
We would like to call this Visual Composer aplication via an iView launched from a workflow item.
Our task is TS90000138 and its visualization contains DYNPARAM: wi_id=${item.externalId}.
If we execute this task, &iviewDynamicParameter=wi_id%3d000005985089&wi_id=000005985089 is added to the URL, but the value is not passed on to the VC application, because as explained in http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/2090414b-cd20-2a10-d594-8de9d146044a, Visual Composer expects &_paramsXmlStr_=<Params><Row%20WI_ID="5984427"/></Params>.
We tried two options:
Option 1:
change the task visualization to paramsXmlStr=<Params><Row%20WI_ID="${item.externalId}"/></Params>, but this results in the following line in the UWL XML (after re-registering the UWL WebFlowConnector and deleting the cache):
<Property name="iviewDynamicParameter" value="_paramsXmlStr_=<Params><Row%20WI_ID="${item.externalId}"/></Params>"/>
which is not a valid XML format due to the < and > signs.
Option 2:
encode the string as explained on http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2090414b-cd20-2a10-d594-8de9d1460... and enter paramsXmlStr=%3CParams%3E%3CRow%20WI_ID%3D%22${item.externalId}%22%20/%3E%3C/Params%3E into the task visualization.
When we execute this "the encoding gets encoded" and we get the following URL, which doesn't work either:
&_paramsXmlStr_%3D%253CParams%253E%253CRow%2520WI_ID%253D%2522000005985097%2522%2520%2F%253E%253C%2FParams%253E&iviewDynamicParameter=_paramsXmlStr_%3D%253CParams%253E%253CRow%2520WI_ID%253D%2522000005985097%2522%2520%2F%253E%253C%2FParams%253E
As explained on http://help.sap.com/saphelp_nw70/Helpdata/en/45/a7863f445f4617e10000000a114084/content.htm, there are only 3 pamaters (ID, CONFIRM, DYNPARAM) and no other one can be used.
Do you know how to fix this issue?
Thanks,
Tamas
Hello Tamas,
I did succeed to call a Visual Composer model from the UWL (using workflow tasks coming from our ERP 6 backend).
I did customised UWL workflow task (within the portal) :
<Property
name="iviewDynamicParameter"
value="WI_ID=${item.externalId}"/>
<Property
name="iview"
value="pcd:portal_content/pcc_portal_application/.../xxx.uwl_task_VC"/>
Parameter WI_ID (WorkItem Id) is automatically sent by the portal system.
I set, in VC, a start point with a string data parameter called WI_ID.
When calling the model this parameter WI_ID is filled.
Hope it could help.
Rgds
Gilles
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tamas,
We have the same problem, did you solve it?
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Will this VC application be rendered in the Enterprise Portal? If so, you could try using the "Application Parameter" setting when you configure the VC app as an iView in the portal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.