4 weeks ago
Hi Experts,
When I Click on CDS annotation based custom action "clean" defined in table header triggering automatic navigation to object page. Action implemented using bopf .
@ui.lineItem:[{ type: #FOR_ACTION, position: 1, dataAction: 'BOPF:CLEAN', label: 'Clean'}]
I have checked CDS annotation, there is no semanicaction and semanicobject annotation defined on this action and checked bopf class and manifest as well did not find any root cause of this automatic navigation issue.
This is custom app
SAP S/4HANA 2023
Hi,
Navigation is automatically triggered if the action is triggered against a single instance and the action returns a different instance (of the same entity) - see section "Navigation After Executing an Action" in page. This navigation can be disabled though using a manifest setting in Fiori elements OData V4 - see the V4 specific section in the same page that shows the usage of "navigateToInstance" manifest property.
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.
Hi @sandeep_rs,
Thanks.
Is it possible to disable the navigation in OData V2?
Is "navigateToInstance" in manifest configuration available for OData V2? if not what is the way to disable this navigation ?
Hi Shivaraj,
Navigation is triggered only if a single instance is returned by the action and if the returned instance is not the same as the instance used when the action was triggered. The navigation is only triggered if the action was executed successfully and if the manifest has navigation defined for the context that is returned.
You can avoid sending back different unique context to avoid navigation to OP . Does it works for your use case?
Currently there is no manifest setting in Fiori elements OData V2 to stop navigation.
User | Count |
---|---|
105 | |
8 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.