on ‎2023 Jun 05 4:21 AM
Greetings Community Experts!
I need to make several fields in the header of an Object Page update automatically, after an action of a facet in the body of the Object Page is executed.
More details about it:
My application is based on SAP CAP and SAP Fiori Elements, with SAP HANA Database, on top of SAP BTP. The Object Page view looks like the following screenshot shows.

In the image I have hidden some sensitive data fields.
The yellow line indicates the three sections (facets) of my object page.
The field indicated by a red oval in the header is one that I would like to update automatically, when any of the facets' actions are executed (such as those indicated in the red box).
The data shown comes from views (complex to a greater or lesser degree) projected. This in contrast to directly projected tables.
The main view (whose data is displayed in the header of the page) of the object page is defined as follows:
@cds.redirection.target
@readonly entity PBaseRoles as
select from FIT.BaseRolesFitting as B
inner join ORG.Systems as S on (S.id = B.system.id)
inner join ORG.Organizations as O on (O.id = S.org.id)
mixin {
authObjects : Composition of many ...
txns : Composition of many ...
activeUsers : Composition of many ...
}
into { ...
}where B.useBase.code is not null
actions { ... };
The fields of the mixim clause define the associations (rather compositions) with the three views that are shown in the facets of the Object Page (Authorizations, Transactions and Users).
Using Side Effects I managed to get the controls of each facet to update accordingly, when an action is executed. However, I have not been able to get the page header to update. I don't know if this can be achieved using Side Effects annotations, or if it is necessary to resort to extensions.
Thank you very much in advance for any help and/or suggestion.
Request clarification before answering.
This should already be possible with side-effects.In the target property, you should mention the fields from the parent that need to be refreshed (For this you might need the navigation defined for the parent entity. You can see an example in page - search for "The path can also point to a field in the parent entity set")
Best Regards,
Sandeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 12 | |
| 9 | |
| 7 | |
| 5 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.