cancel
Showing results for 
Search instead for 
Did you mean: 

CDS CAP Fiori Elements App with SideEffects on Parent Entity not triggered after action execution

ckuczera
Participant
0 Kudos
360

Dear Community,

we have created a Fiori Elements application handling approvals on Workzone Admin privileques on Workspace Level. The application works fine as off now, but we are facing an issue while executing an actions on a sub entity (navigation) to update the parent entity:

ckuczera_0-1725357113201.png

After execution of the actions the first side effect to update the Approvals is triggered correctly:

ckuczera_1-1725357223530.png

Requests in batch call:

ckuczera_2-1725357294521.png

But indeed we need to update the navigation entities of the other navigations as well. But no side effect is beeing triggered.

I already found very helpfull posts, but nothing helped:

I already tried follwing side effect in main "Workspaces" entity:

  • Try updating entities on property change
    ckuczera_5-1725357874986.png
  • Update all Navigation on change in any other Navigation
    ckuczera_4-1725357643514.png
  • Update OpenTasks Property after updating one of the depending navigations
    ckuczera_3-1725357457267.png
  • Tried also to address parent entity in action SideEffect, but this seems not to work

All changed had no effect on the batch calls / updates on the entity level. Maybe I am doing something wrong

Any hint is welcome

Thanks

View Entire Topic
ckuczera
Participant

I solved the issue by myself following the extension guide here:

https://github.com/NL4B/Workshop-Fiori-Elements/blob/master/141.%20-%20UI5%20controller%20-%20Use%20...

I simply added an action handler performing an update of all bound elements:

ckuczera_0-1725365758587.png

Not the best solution i ever saw, but it is a solution 😉

Any hints ore recommendations how to solve that using SideEffects are still welcome