Support Article
Not able to access assignment using IAC
Summary
User has configured one gadget using prgateway.
User action is to open assignment dynamically by passing the Assignment Key through Get method in URL.
But system is not able to parse the value of the Assignment key and throwing error.
Error Messages
Not Applicable
Steps to Reproduce
- Configure gadget like below:
<div id="ANZCLW"
style="overflow:auto"
PegaGadget="ANZCLW"
PegaResize="stretch"
PegaA="openAssignment"
PegaA_key= "<% request.getParameter("CaseID"); %>"
PegaA_readOnly="false"
PegaDefer="false"
PegaA_params={UserIdentifier:"modakd1",Password:"cnVsZXM%3D"}>
</div>
2. Create Gadget and deploy it.
3. Access the gadget and observe the error.
Root Cause
User is trying to give <% request.getParameter("CaseID")%> and tries to setup the gadget which is an incorrect configuration.
The issue is not related to PRPC.
Resolution
When one directly tries to open an assignment through gadget setup the key(insKey) is required to open it.
As per user requirement, the user want to dynamically set the variable.
To achieve this configuration, user need to setup the Html in such a way that the key being passed should be set to the PegaA_Key attribute in the gadget div.
Refer the below PDN article which will have the data-binding syntax for mashup:
https://pdn.pega.com/pega-web-mashup-data-binding-syntax/pega-web-mashup-data-binding-syntax
Published September 22, 2017 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.