cancel
Showing results for 
Search instead for 
Did you mean: 

sap mdk action bar style navigating from object list view

sk_ramkumar
Participant

Hi Experts,

I am trying to set color for the action bar item , it is working fine in all other places but not in detail view, navigated from list to detail. 

Screenshot 2024-05-10 at 2.10.37 PM.png

How to change the color of the left side action bar item? the text is coming by default. Even If i set Style to Add New button it is not working. 

Page metadata,

 

{
	"Controls": [
		{
			"FilterFeedbackBar": {
				"ShowAllFilters": false,
				"_Type": "Control.Type.FilterFeedbackBar"
			},
			"_Type": "Control.Type.SectionedTable",
			"_Name": "SectionedTable0",
			"Sections": [
				{
					"Separators": {
						"TopSectionSeparator": false,
						"BottomSectionSeparator": true,
						"HeaderSeparator": true,
						"FooterSeparator": true,
						"ControlSeparator": true
					},
					"_Type": "Section.Type.ObjectTable",
					"Target": {
						"Service": "/MDK/Services/StceApi.service",
						"EntitySet": "PayCodes",
						"QueryOptions": "$filter=payCodeType eq 'H' and favourite eq true"
					},
					"_Name": "SectionObjectTable0",
					"Visible": true,
					"EmptySection": {
						"FooterVisible": false
					},
					"ObjectCell": {
						"ContextMenu": {
							"Items": [],
							"PerformFirstActionWithFullSwipe": true,
							"LeadingItems": [],
							"TrailingItems": []
						},
						"Title": "{payCodeDesc}",
						"AccessoryType": "None",
						"AccessoryButtonIcon": "sap-icon://delete",
						"Tags": [],
						"AvatarStack": {
							"ImageIsCircular": true,
							"ImageHasBorder": false
						},
						"AvatarGrid": {
							"ImageIsCircular": true
						},
						"Selected": false
					},
					"HighlightSelectedItem": false
				}
			]
		}
	],
	"_Type": "Page",
	"_Name": "FavouritePayCode",
	"Caption": "Favourite Paycodes",
	"PrefersLargeCaption": true,
	"ActionBar": {
		"Items": [
			{
				"_Name": "ActionBarItem0",
				"Caption": "Add New",
				"Position": "Right",
				"IsIconCircular": false,
				"Visible": true,
				"OnPress": "/MDK/Actions/Favourites/NavToPayCodeFavAddNewDialog.action"
			}
		],
		"_Name": "ActionBar1"
	}
}

 

 

Action of object cell on press item,

 

{
	"_Type": "Action.Type.Navigation",
	"ActionResult": {
		"_Name": "NavToFavPaycode"
	},
	"PageToOpen": "/MDK/Pages/Favourites/FavouritePayCode.page"
}

 

Thanks in advance.

@bill_froelich @Jitendra_Kansal 

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos
What client platform are you using?
sk_ramkumar
Participant
0 Kudos
@bill_froelich I dont have a onBackButtonPress rule in my detail view, I have one Action Bar Item only, still am facing the same issue. I tried removing all the action bar items, from my detail view, but still the back button doesnt apply the style.
View Entire Topic
bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

I am unable to reproduce this.  At this point I would recommend opening a support case and include your mdkproject / metadata and reproduction steps so it can be investigated further

sk_ramkumar
Participant
0 Kudos
Thank you @bill_froelich. Will create one support ticket.