Question
Capgemini Technology Solutions India Limited
IN
Last activity: 4 Mar 2021 5:13 EST
Inserting Record using Savable Data Page
-
Likes (2)
Suresh Chintapalli Srimanta Choudhury -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
Hello,
Thank you for writing your query in Pega Support Community.
Kindly have a look into the Link that has detailed information about Savable Data page in 7.4.
Hope this helps!
Thanks,
Hello,
Thank you for writing your query in Pega Support Community.
Kindly have a look into the Link that has detailed information about Savable Data page in 7.4.
Hope this helps!
Thanks,
Geeda.
WellsFargo
IN
@GauravK2454 @GouriShankarK Did you get any solution for this?
-
SHARATH S
Capgemini Technology Solutions India Limited
IN
Yes, after loading the content in a datapage their are 3 ways you can do this:
1. Activity: Call "Save-DataPage" method.
2. Flow Action : Mention your Data page name in "SavableDataPage" in Action tab
3. Flow: Call the smart shape to save the Content of the Data page
-
Shruti A R
Coforge DPA Pvt Ltd
IN
Not a good idea but.. If you really want to do this, call activity in data save options and use Obj-Save method.
Blue Rose Technologies GmbH
DE
Seems the savable data page works fine for and existing data page instance, but to insert a new records we need to use the old way of Obj-Save.
Anyone if have found any work around with out getting this not recrods available with this value please update.
-
Supipi Pathirana
Bank of America
US
We are looking into - How to insert a record into a DataPage using Savable DataPage Concept .
So far , it appears , if the datapage is Savable, its expecting a record to exist. It requires the Primary Key to be passed to the datapage.
If we have to insert a new record, we don't have the primary key.
If anyone is able to insert a record via Datapage , please share .
Thanks.
EAI Systems
SG
Same issue. Unable to add new instances via savable data pages. But unable to find any such clauses in help system.
JP Morgan Chase
IN
Is there a way we can insert a new record using savable data pages ;i think the whole concept is around updating the data ,not for writing a new record.
JP Morgan Chase
IN
Yes ,finally i figured out a way; often the problem lies in the default savable data pages generated while creating the data types. It has a data sourcing logic based on primary keys defined. As we are trying to write a new record ,this default data page may not work and throw some errors. Instead I did the following,
--Create another savable data page which is sourced from a data transform (no parameters should be defined)
--Inside the data transform ,move blanks/default values to all the fields in data type.
--In your flow/activity/flow action ,refer the data page and set appropriate values in all fields. (when you refer the data page ,it will be loaded based on the DT(i.e blank values)) ; override these values. For e.g via a data transform you can set appropriate values to fields inside this data page
--Save the data page (in flow using smart shape, in activity using Save-data page)
--If you observe tracer ,an error will be throw from Obj-Open by handle ,but as there is no record it will be gracefully handled and new record will be written to DB.
-
Lakshmi Cherukuri naveen bandaru Sumana Kundu Raghavender Reddy Lankapothu Satish Boddepalli and 1 More
Blue Rose
NL
I have extended my data type class from Data-Party class so in the data transform source for Savable data page. Please mention pyworkpartyuri other wise throw an error
-
George Jacob
Capgemini Norge
NO
This forum thread might help you https://ask.onestoppega.com/d/85-savable-data-pages-to-insert-a-new-record-in-db/
-
Snehasis Panda
Updated: 20 Jun 2020 5:39 EDT
Morgan Stanley
IN
This worked for me. First of all update your savable data page SOURCE to data transform. In the data transform configure the the Parameters tab to set all the fields for the new record. Configure the same parameters on the Data Page also and select "Pass Current Parameter Page". Now call the savable data page from your flow action and pass the parameters. That's it, pega will take care of the rest. Now need of writing a activity with Page-New, Obj-Save etc all those methods. Enjoy the ease that Pega provides.
-
Venkat Raman Malaiarasan Sravya Pandari Venkata Alagappan Ramanathan Bharathan T Dileep Nerella and 1 More
Updated: 9 Feb 2021 0:10 EST
Aflac Northern Ireland
GB
@SnehasisP0085 @GeorgeJ6156 Thanks for the solution. This works perfectly.
But this does not work if there is no single record already existing in the local data storage. In that case what should be passed as a parameter to the data page.
-
Andy Martinez Pritam Jape
Pegasystems Inc.
IN
@AlagappanR Use the same savable data page remove the lookup and keep source as data transform map the properties in the data transform you want to insert into the data type
-
Sumit Ray Dileep Nerella