Question
Atos Syntel
IN
Last activity: 19 Dec 2019 4:44 EST
Editable Data Pages
Two questions
1. I was able to edit the data(on the clipboard side) of a readonly D page and used the edited data in my Test Application, if i am able to edit the data of a readonly D page, then what is the use of editable D page ?
2. why do we see editable D pages under User Pages category and readonly pages D pages under Data Pages category in clipboard ?
***Edited by Moderator: Lochan to update platform capability tags***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
Hi,
The difference in Read-Only and Editable mode of data page and chose which could be best option for your application.
Hi,
The difference in Read-Only and Editable mode of data page and chose which could be best option for your application.
Read Only
– Prevent the data page from being modified, except during page load and post-activity processing. The data page displays in the Data Page list on the clipboard.Editable
– Allow the data page to be modified. The data page displays in the User Page list on the clipboard.
So, when a data page is configured to be read-only, you cannot really modify the properties on the data page during the case process unless there is a page load/post load processing in data page configuration. If the data page with read-only mode is attempted to modify without any of the above mentioned conditions, then you might face an error saying readonly data page cannot be modified from ClipboardImpl class.
Hence, if your requirement is supposed to modify the content in data page during processing, then you can go with editable data page.
Atos Syntel
IN
"If the data page with read-only mode is attempted to modify without any of the above mentioned conditions, then you might face an error saying readonly data page cannot be modified from ClipboardImpl class" - I was hoping for something like this to happen, but i was able to modify the data without any issue, that too in the middle of case processing.
BPM Company
NL
adding to the previous comment:
1. How did you change it? Through Clipboard Viewer or in the context of a work object? I guess you can change the page in the clipboard viewer, but not during the case processing.
2. That is expected locations of Editable and ReadOnly pages. So the answer on "Why?" - "Because Pega has such design"
Atos Syntel
IN
I just did it using property-set method in an activity like below, no errrors during execution.
D_CountryDetailsList.pxResults(<LAST>).Country = "XXXX"
I executed the activity in the middle of case processing, refershed the section in the case which was displaying the D Page data and I saw the updated value there.
Virtusa Consulting UK
GB
Hi, Did you trace this? Did you get any error or warning? Thanks.
Atos Syntel
IN
I did trace it, no errors while updating the data.
TCS
US
yes , you can edit the Read only data page or Editable data page while using them but you will not be able to do Obj-Save on the read only data page but an Obj-Save on data page for an editable data page will save the record in database. This is the difference between these 2 types of data page. Both data pages allows you to manipulate the data in processing but only editable data page allows you to save.
Think of scenario, where you get the records from DB using editable datapage , edits few properties and want to save them back to DB by calling Obj-Save. With Read only datapage you can't achieve this functionality.
-
Prasangi Shankar Nagendra Bala Bhargavi Samanthakurthi
Atos Syntel
IN
Yes i tried that too, got the below error when trying obj-save on both Editable and Read only D page
Cannot save a page with an instance of class xxxx-xxx-xxx-xx: it is read-only
TCS
US
which Version of pega you are trying this option ?
Last when I tired was on 7.2.2. The help file for the 7.2.2 does not mention anything about save plan but for 8.2 it says there is no save plan.
Atos Syntel
IN
Version is 7.4 PE, I think save plans are for savable data pages, I am looking for the difference between editable and read only data pages.
TCS
US
Also mention whether the class you are trying is derived from Work- or data- ?
Atos Syntel
IN
it is Data
TCS
US
Are you sure that you got error for both Read only and Editable page when you did property set once the data page is loaded ? can you share some screenshots of the things you tried for both read only and editable data page. I tried just now in 7.4. A thread level Read Only data page gave the above(read-only) error when I tried to update a property(pyLabel) with some text and while a thread level Editable does not give the above error. That should explain the difference for them.
TCS
US
This will be little tricky to answer now as my hands on is not complete on savable data page. Based on what I have read(limited) about savable data page, the objective is to save instance of a class. Usually we write Obj-save in activities to save record in DB and sometimes an activity is needed just for saving the record in DB by Obj-Save. this savable data page would eliminate the need of those activities.
Till 7.4 savable data pages were not present and in 7.2.2 in order to save instances I used editable data pages but now , both being present the actual usecase am not sure.
May be someone from Pega Architecture or someone with handons on latest version can let us know.
-
PURETI GURU SANTHOSH Usha Shravya Charugulla
Atos Syntel
IN
I tested it again and found it to be working as expected. I was not able to update read only D page and was able to update Editable D page, not sure why it didn't work the first time.
-
vinayaka kanigolla PURETI GURU SANTHOSH
Atos Syntel
IN
This post can be closed.