on 2024 Dec 09 7:24 PM
I have created a Fiori elements list report app. In this app, I have a table with single select radio button and also a custom action button at the toolbar. Now, this custom button will be enabled only when I select any of the row using radio button. (In Manifest.json I have used requireSelection: true). Till now everything works as expected. Now, I want to enable this custom button when user selected any row using radio button + particular column in that row contains a value 'X' (condition based).
How do I achieve that. Please share your suggestions.
Thanks,
Teja.
Request clarification before answering.
Hi, I tried using 'applicablePath' in button's property with in manifest.json. The value to this 'applicablePath' is entity type property from entityset with boolean type.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In manifest.json, you can specify a function to determine if the action should be enabled or disabled.
https://sapui5.hana.ondemand.com/#/topic/7619517a92414e27b71f02094bd08d06
"myCustomEnablement": {
"press": "SalesOrder.ext.CustomActions.navigateExternal",
"enabled": "SalesOrder.ext.CustomActions.enabledForCompletedOnly",
"text": "Enabled for Completed"
}enabledForCompletedOnly: function(oBindingContext, aSelectedContexts) {
if (aSelectedContexts && aSelectedContexts.length === 1) {
return true;
}
return false;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You probabily need Feature control (Instant Feature), please have a look to below blog post contains what you needed...
action (feature : instance) <your action name> result [1] $self;Also Implement the Get_instance_feature method to set button enable or disabled.
Hope this helps...
Thanks-
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 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.