Hello everyone, we have a constellation application which is built on existing UI Kit/ Cosmos application. The client data will be stored in external database, and we use Connect- Rest to fetch that data and 99% of the time we use integrations in our process flows.
On our one of landing page, we have configured a List view which uses existing data page to fetch the results. we have updated the data page to use query concept by enables the checkboxes in both dpage and connect rest rules.
We are able to fetch the results using the inputs entered in promoted filters using query page lhs, rhs structure. but we are not able to display custom actions defined on data objects. I suspect that it could be because the existing data object is an abstract class and we have not defined any list or savable or lookup dpages for the data object. since we have no of REST sourced data pages with different types of inputs, some of the data pages even accept 10+ different inputs to return results, so making concrete classes/ lookup datapages for each integration causes maintenance challenge.
Could someone let us know if they tried implementing custom actions for an abstract class.
Yes, you are right on the point that your custom actions are not visible because of the single data pages are not configured that can return you the individual record detail.
You may want to have a look at the below post for reference,
Unless there is a strong architectural reason to do otherwise, I would recommend defining the REST-backed Data Object as a concrete class rather than an abstract class. This aligns better with Constellation’s Data Object model and helps ensure support for capabilities such as Data Object actions and list views. The integration logic can still be reused through common Data Pages and Connect-REST rules, minimizing maintenance overhead.