cancel
Showing results for 
Search instead for 
Did you mean: 

Create Menu Button/Action within a Section

andre_katz_88
Explorer
0 Kudos

Hello Gurus,

I have a RAP-based Fiori app (OData V2).
I want to create a menu button on my app's Object Page within the "myObjectFacet" section.
To do this I used the approach described in the standard documentation (here).
So, I expect to see three buttons (Action1, Action2, Action3) inside one (Actions), but I see them as separate button.
The "menu" property doesn't seem to have any effect at all.
I would be grateful for any useful hint, link or advice from your side.

Thank You!

My implementation (manifest.json)

 

"sap.ui.controllerExtensions": {
	"sap.suite.ui.generic.template.ObjectPage.view.Details": {
		"controllerName": "...ObjPageExt",
		"sap.ui.generic.app": {
			"ZC_MyObjPg": {
				"EntitySet": "ZC_MyObjPg",
				"Sections": {
					"myObjectsFacet": {
						"id": "myObjectsFacet",
						"Actions": {
							"ActionOne": {
								"id": "ActionOne",
								"text": "{@i18n>actOne}",
								"press": "onExecAction",
								"visible": true,
								"enabled": true
							},
							"ActionTwo": {
								"id": "ActionTwo",
								"text": "{@i18n>actTwo}",
								"press": "onExecAction",
								"visible": true,
								"enabled": true
							},
							"ActionThree": {
								"id": "ActionThree",
								"text": "{@i18n>actThree}",
								"press": "onExecAction",
								"visible": true,
								"enabled": true
							},
							"MenuActions": {
								"text": "{@i18n>act}",
								"visible": true,
								"menu": [
									"ActionOne",
									"ActionTwo",
									"ActionThree"
								]
							}
						}
					}
				}
			}
		}
	}
}

 

Result

andre_katz_88_0-1709824769236.png

Accepted Solutions (0)

Answers (0)