cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CAP Side Effects refresh of an association not working

DenisGaland
Participant
0 Likes
961

Hello,

I have a Fiori Element in OData V4 with CAP, my screen below shows an object page the Organisme entity (service.Organization) which is composed of 1:N accounts (service.Organization), I can link and unlink the accounts with custom actions.

Basically, unlink action from Comptes Financiers section empties the organization_id from the account entity, so the account linked to the action will disappear from the list of accounts of the organization.

The action is working fine but I don't find a way to refresh the list of accounts after the unlink action.

I tried several ways with Side Effects but I none of them are working, here is an example of an unsuccessful test

annotate service.compfinancier with @(
Common.SideEffects: { SourceProperties: [organization_ID], TargetEntities : [organization.compfinancier] })

I tried to paste the code with Insert Code but it's getting empty when I publish the post..

Do you have any idea on how to make it work?

Greetings,

Denis

Accepted Solutions (0)

Answers (0)