There is requirement of Accessing Assignment dynamically using Pega IAC gateway. Currently while setting up gadget we are selecting 'Open an assignment' in Pega Action Tab of the PRGateway and then passing the Assignment Key which is a static one (we are able define only one Assignment key in the field).
Now we want to make this assignment key filed to take value dynamically in our gadget and it should open the respective assignment.
***Updated by Moderator: Marissa to update categories***
<div id="PegaGadgetA" style="overflow:auto;"
PegaA = "openAssignment"
PegaA_key = "<% pegaAssignmentKey %>"
Where pegaAssignmentKey is a Java String variable set earlier.
How is the key for the assignment going to be built? Assignment keys should come from PRPC so just using OpenAssignment alone is going to be tricky.
I would instead use a "Display" action and display a work list or other type of report to meet your needs that uses standard processing to open the assignment. This keeps the processing within PRPC with out the top level application having to dynamically build an assignment key.
So how the gadget can take assignment key value dynamically as input if we give PegaA_key = "<% pegaAssignmentKey %>" ?
Another thing, I am going to pass Assignment Key value via URL , like https://<host Name: port no>/MyGadget.html?pegaAssignmentKey=<value> . My gadget got generated in Html. In this scenario how Pega Can get the assignment key. Is there any way that we can generate gadget other than html (like in jsp or asp)