Question


srcLogic
US
Last activity: 17 Aug 2016 8:54 EDT
Changing user results in all case data being wiped out
After creating an order case in a Customer profile (entering in product information), we log out and change users to become a Technician to complete the order. When the Technician views the order information in his profile, all the product information is gone. This product information was stored in pages on the clipboard, and when going back to that clipboard page all the pages exist but are blank. Any idea on why the information is gone when changing users?
Version 7.2.1
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution


CA
The sections are showing up as null because (Page property, e.g. .Product) is not initialized. Pega won't create a page untill you refer a property of that page. Do this - in pyDefault (Data Transform) of your work class, initialized a property of Page (e.g. Set ".ProdInfo.<text property>" = "". Then your section would display. Also, make sure in the clipboard before you load that section on screen, the page property should show under pyWorkPage
pyWorkPage
.ProductInfo


CA
Hi
Before log out, can you check if the work object was persisted. So close it, refresh the screen and reload the WO and check clipboard.


srcLogic
US
Nikhil,
The work object was not persisted: after closing the WO, refreshing, and reloading, the clipboard did not have any data. How can I fix that?
Isabella


srcLogic
US
So we now realize that the forms save the information to data pages, which are not ever saved to the database. How can we get the form information that the users submit to save to the database?


CA
Well, you have to create Page(list) properties in work class to point to data classes and then it will be saved. Data Pages don't belong to a particular instance and that's why it won't persist with the WO.


srcLogic
US
We have had a lot of trouble with section includes from data classes. We created sections in the appropriate data classes (e.g. for a Product Info form we made it in the Data-Product class), and we are now including multiple of these sections in our form. In the pages & classes tab we reference the -data class that the section came from and for the page name we use a property name (like .Product) that is in the Work class. However, the forms are still showing null when we preview them. Is there a different way to do section includes from other classes or is there a step that we are missing?
Accepted Solution


CA
The sections are showing up as null because (Page property, e.g. .Product) is not initialized. Pega won't create a page untill you refer a property of that page. Do this - in pyDefault (Data Transform) of your work class, initialized a property of Page (e.g. Set ".ProdInfo.<text property>" = "". Then your section would display. Also, make sure in the clipboard before you load that section on screen, the page property should show under pyWorkPage
pyWorkPage
.ProductInfo


srcLogic
US
Thank you so much! That worked!