Open Assignment is throwing "Empty Assignment Key" pop up.
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***
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.
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.
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.
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.