Posted: 15 Aug 2016 16:28 EDT 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?
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.
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?
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