A Data Transform used to set the assignment key only works the first time it is used. After the first time, the data transform does not set the key and the assignment key has no value.
Scenario: 1. A grid is being used which displays the list of assignments available to the user. 2. On click of the Case id link in the row, the system opens the assignment (assignment key is set through a data transform) 3. The grid has an expandable details view which works through a flow action. 4. Once the detailed view is used at least once in the screen, the open assignment action stops working because the data transform does not set the assignment key.
"Empty Assignment Key" appears in a message popup on the browser window.
Steps to Reproduce
Create a Report Definition at Work- level with a JOIN on Assign-Worklist
Create a Repeating Grid using above Report as a source to display the list of assignments available to the user.
Create a Data Transform to get the pyAssignmentKey
DataTransform is just getting the assignment Key at the top page level to be used on the next method
Configure the Repeating Grid Actions to run the Data Transform and then open an assignment using the key value populated by the Data transform.
Create any FlowAction to display the grid.
At runtime expand any row from the Grid and click on any line after.
Observe that the error “Empty Assignment Key” displayed in a popup.
A few local changes are possible, but the best option is to avoid the DataTransform altogether and directly reference the Key with the following format: .pxPages(Assign).pzInsKey within the Open Assignment action area.
The above format will be working fine as long as the page is correctly defined on the "Pages & Classes" tab of the same SECTION: .pxPages(Assign) > Assign-Worklist
Example configuration for the local-change is as follows: