How to save a User input back to the data table?

If there is a single field on UI that user inputs so post clicking on submit how to save it back to database?(Traditional Pega)–See main issue is that if I use a saveable data page then the database save option will provide a data class right of the data type but if this page is created in work class so how will it be saved in data class?is there any other way to do so apart from saveable data page?As its a single property no page/pagelist type so how post DT/post activity will help here to save back to data class?

How do you want to save a single property back to data type? You need to save a new record every time or you need to update any existing record?

If you’re adding a record to the data table, then technically it has to be associated to the data class. Couple of options,

  1. Savable Data page during the case workflow Savable Data Pages | Pega Academy
  2. Call Page-New, Property-Set to the step page and then Save (Work-.Save) activity to save the record to the data table

Hi @VVNagaSaiN see basically on the UI if i am giving first name as Tanya i want this same to be saved into data table,now this first name is in work class so how can i save this record back into the data table?post clicking the submit button the db table should have 1 record as first name = Tanya

Hi @RameshSangili on the UI if i am giving first name as Tanya i want this same to be saved into data table,now this first name property itself is in work class so how can i save this record back into the data table?post clicking the submit button the db table should have 1 record as first name = Tanya

Hi @TanyaS58 ,

If you want to save data into a Data Type/Data Class, create an Activity in the Work class.

Define a step page with the Data Class (for example in Pages & Classes Tab, tempPage = Data-Customer), and then call this Activity from the post-processing of the Flow Action.

Please find the screenshots below.

Calling activity into the Flow action post processing

Data Saved into the Data Type

I hope this will help you

Thanks,

Ashok