Custom Add action for Data type in Constellation

I have requirements to be able add new record to data type from Customer Portal, where should be added some extra information but not by Customer. I could see when you activate editing options in the table CRUD actions are allowed. But if you want to add some extra information behind the view there are not any possibility. For example, for edit you can create Custom action, that offers you Flow Action, where you can do some business logic, but I can’t find any similar behavior for Add new record. Any suggestion?

Basically, I need to associate a flow action with the add button.

Hi @HalynaK2

Please look at the below post which has similar discussion that might help you.

Let us know if you have any further questions

Regards

JC

1 Like

Thank you so much, this solution is perfect for my needs.

However, I have another problem with the Delete action.

I’m using the default Delete action and I’ve also implemented a custom one, but both only remove the data from the application; the ID key and all the properties of the Pega, such as pxCreateDateTime, are not deleted. Therefore, the record exists in the table with the primary key, and the rest of the properties are empty. However, when I delete it directly from the table, it is completely removed.

I would appreciate any help.

Can you try removing ootb columns which you are not showing in the landing page from the data type and check if record is getting deleted?

I don’t have any “ootb” columns added to the table; there are only application columns. I marked them all as primary fields and displayed them in the table (just for testing), but the record isn’t deleted; only the application properties data is cleared. :roll_eyes:

For eg- PxcreateDate is ootb column. This is added as a column in your data type but are you displaying this in your landing page?

no, i just displaying 4 app properties to show in the table on the landing page

But you have pxcreateDatetime in data type right? So you have pxcreateDatetime in data type in data type columns but not in landing page. Try removing such ootb columns.

In data type on the tab Records I have only app columns. On the data model tab, there are system fields, one of them is pxCreateDateTime. When I add new record, these system properties are fulfil automatically. When I Delete the record from the landing page, I can see that only app properties are cleared, but system properties contains the value and primary key. I can check it by running data page (list of all records)

Can you remove these columns from datatableeditor report definition and check again? Then you won’t see these columns when you run dpage.

I’ve deleted all system properties from the report, but it still doesn’t work. Now I can only see ID and pxObjClass when call Data Page List.