Adding a new list item
Update an existing list of items with new items.
Add a new list item, for example, ServiceHistoryList and persist it.
In Dev Studio, to add a new list item, create a data type ServiceHistory in the PegaDATA database and have the following properties pyID (Primary key), EntityID, and EntityType.
Add other properties related to subsidiary like service center name, service date, and so on.
In the Vehicle data type (PegaPS-Data-Entity-Vehicle), create a field.
In the Field name box, enter ServiceHistoryList.
In the Type list, select Embedded data.
In the Data object list, select ServiceHistory.
Click Submit.
Update the PersitEmbeddedPage (PegaPS-Data-Entity-Vehicle) activity with a new step looping the ServiceHistoryList property and invoke the activity SaveObject by passing the EntityID and EntityType parameters similar to CommList.
Create a UI to capture the service history details so that they persist after you enter the data.
Previous topic Updating duplicate check validation for a field Next topic Update Vehicle case type