Add Local Action to Data Object Table in the Pega SDK

We are currently using the 24.2 version of the Pega SDK. We have a table of data objects that we show in our UI using the Pega React SDK. We need to be able to add a local action to each row of the table to allow users to create new cases from the data objects. To set this up, we are following the steps from this article, Configuring Actions for data objects - User Experience / Knowledge Share - Pega Forums.

Modifications have been made to the List View component to support adding a new column called “Actions” when allowCrudOperations evaluates to true. We are successfully able to get the list of available actions and to open the action using the pconnect functions getDataObjectActions and openDataObjectAction. But, the problem that we are running into is that the modal that appears does not have cancel or submit buttons. If we modify “ModalViewContainer” to show buttons if isMultiRecord || isDataObject the buttons show but clicking the “Submit” button breaks the functionality and doesn’t perform the action and we can see in the network tab it isn’t calling what is expected since it is meant to run on a case and not a data object. From reading what is available in version 25 of the pega sdk there is getPConnect().getActionsAPI().submitDataObjectAction() which seems to be the action we want to run on submit of updating the details for the data object.

What is the recommend approach to mimic the supported constellation behavior? Specifically how would we approach this in the 24.2 version?

@JuliaL61 this has been addressed in React SDK '26. As part of that fix, we introduced support in ModalViewContainer to render the DataViewActionButtons component for Data Object actions instead of the standard case action buttons.

You can find this in Pull Request on our GitHub