Question

Open Assignment is throwing "Empty Assignment Key" pop up.

Hi All,

I am trying to open an assignment on click of a button. I am using Open Assignment control there. Its throwing "Empty Assignment Key" for the first time. It is working then for the second time. I am passing the assignment key in side the parameter of Open Assignment control. Please let me know.

***Edited by Moderator Marissa to update categories***

Comments

Keep up to date on this post and subscribe to comments

May 25, 2018 - 8:20am

On click of a button, i am calling one activity which is creating a new case. Then below that i am calling open assignment to open that case. Here pzInsKey is not passing from the activity to the open assignment. Tried using a new page, new property.

 

Pega
May 29, 2018 - 10:29am
Response to sandeep.kar07

Hi @Sandeep,

Here is my understanding, You created a section and inside you have a button.

Now in button Actions, you configured 2 actions 1. RUn activity and 2. Open assignment and you are passing case Key which you created from the activity

If yes, Please try below things.

While rendering  the section, we will get a markup form server, so all the actions should be loaded on initial load, In first action you created one activity from that you are creating new case , but while second action executing it won't get Key which you are passing because it won't be available to client side, but for the second time if you perform, it will able to find it.

Follow below steps  to get the value to client side using Change Tracking mechanism, so it will work

1. In the section, add pxHidden control and give property name as pyInsKey 

2. In the button property panel, add the first action as  Refresh-This-Section and call the activity to create a case and store pyInsKey, and in the second active set use Open Assignment and pass the pyInsKey.

 

Please let me know if you need any additional information?

If Its working fine please mark it as a correct answer.

 

May 30, 2018 - 2:56am

Hi @GodavariM,

I have a requirement where i need to display 3 different actions on click of a button. So I am calling Menu Control on click of the button. Then On the Menu Control, I am calling one navigation rule which will show 3 different actions. 

Inside Navigation rule, we can give only action set. In that action set, I am first calling Run Activity which will build the pzInsKey and then open assignment. Here the pzInsKey is not coming out of the activity.

Pega
May 30, 2018 - 4:58am
Response to sandeep.kar07

I believe the previous reply was correct. In the action set, are you not seeing the "refresh" one under "display"?

You would call your activity from the "refresh" action. The refresh action allows you to call an activity after the refresh is done.

Did I miss something?

Pega
May 31, 2018 - 3:02am
Response to MERLX

Yes, As Navigation supporting only one action set so you need to use Refresh and call your Activity,  If the Refresh is not happen then the value should not be updated in browser DOM which causes inconsistent behavior. 

If you perform refresh it should work. 

May 30, 2018 - 4:44am

Hi, could you please attach the events tracing (case creation and assignment opening)?