Question

2
Replies
43
Views
SM928K Member since 2019 6 posts
P
Posted: 3 months ago
Last activity: 3 months 3 weeks ago

Savable DataPage issue with 'pxCreateOpName' property

I have a class, let's say -> 'A-Data-B'. It has 3 keys, one of them being 'pxCreateOpName'.

This class is mapped with a database table and using a savable data page, records are getting added and modified from the UI in this table.

Lets assume a very first record is added and its pzInsKey is: 

"A-DATA-B C-1!20200604T172942.000 GMT!User1"

1. 'C-1' is key 1, which is nothing but case ID.

2. '20200604T172942.000 GMT' is key 2, which is current date time.

3. 'User1' is key 3, which is defined to 'pxCreateOpName'. This is getting set to user's last name in the code, but Pega is changing to user's full name after insertion. (See below note in bold that who does this and when this happens)

Now another user, User2 edits this item, lets say changes the 'Comment'. On submit, savable datapage identifies it as an existing record, but while saving, changes the 'pxCreateOpName' value to User2's full name and hence while commit, a new record is getting added in the table as a new pzInsKey is formed.

I traced and found this OOTB activity 'Save' in @baseclass changes the pzInsKey in step 13.

Can anyone tell me why this activity is changing 'pxCreateOpName' value.

Pega Platform 8.3 Case Management
Share this page LinkedIn