Sunday, May 10, 2020

Obj-Save methods in pega

Obj Save methods in Pega:-
Obj-Save methodUse this method to request that the system save a clipboard page to the PegaRULES database or (if the page belongs to an external class) an external database. The Obj-Save method uses properties on the page to derive the internal key under which it will be saved.    
OBJ-SAVE Method
Above pictures shown the empty record of local database,Now we are going to save all            UI entered data to a local database.













Below is UI which accept some values.

Add one button and add action for that button show in below pictures

Create one activity add 3 steps in to activity 1)Page-New-Create new Temppage to clipboard and Refer that page to database page class(OG3WEG-FW-LeaveMan-Data-EmployeeDetails) class show in below pictures
2)Property Set-set all property value from pyWorkPage to TempPage so that all property value set to TempPage.

Added Temp page in pages and classes tab.

Use obj-Save method and add step page as TempPage so that entered data stored in to Data base which refer same data class which Temp page refer.


Now we are going to run our process,add section into flow action and flow action into flow


Add flow action 

Add section into flow action
















Run the flow
Entere all values in to section and click on save.
Now data has been stored in to data base















If you found your solution then don't forget to share it with your friends.


No comments:

Post a Comment