cancel
Showing results for 
Search instead for 
Did you mean: 

Side effect after executing an unbound action - How to trigger update of result list?

gregorw
Active Contributor
2,400

Hello SAP Fiori Elements Community,

with the help of 20eed143c19f4b82bc4cf049916102cb my question Side effect after executing a bound action: How to trigger sorting of result list? was solved. But now I face a similar issue an unbound action. In my sample project bookshop-demo I've added the following annotation:

  @(Common.SideEffects.TargetEntities: ['/AdminService.EntityContainer/Books'])
  action   resetCountOfAllRoles();

to srv/admin-service.cds#L123. When I click resetCountOfAllRoles in the following screen:

The list should refresh to show 0 in the count column. But this happens not automatically. Only when I execute the search again I see the correct result:

Hope that such a behaviour is possible without implementing an extension.

Looking forward for your input.

Best Regards
Gregor

Accepted Solutions (0)

Answers (2)

Answers (2)

gwendal_moreau
Product and Topic Expert
Product and Topic Expert

Hi,

This feature is provided with SAPUI5 1.122. You can find the related documentation here, in the ODATA V4 section.

nlaenger
Explorer
0 Kudos
thanks for the feedback time for a version switch 🙂
gwendal_moreau
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Gregor,

We are working on the support of side-effects for Unbound action in coming versions and will come back to you when this feature is available.

Kind regards.

Gwendal.

gregorw
Active Contributor
0 Kudos

Thank you for the update Gwendal.

Caisi
Explorer
0 Kudos

Hello,

any updates on this feature? Is it already available?

Thanks.

nlaenger
Explorer
0 Kudos

Hi @gwendal_moreau,

any update on this topic?

regards

Norbert