Skip to Content
0
Oct 20, 2022 at 11:15 AM

How can I change the Icon stack Ion dynamically using rules

368 Views Last edit Dec 06, 2022 at 05:54 AM 3 rev

I am implementing Object table like below, I want to change the icon statck icon dynamically baed on the service data, How can I do that ?

{
	"_Type": "Section.Type.ObjectTable",
	"Target": {
		"Service": "/SampleMDKApp/Services/com_test_mdk_app_service.service",
		"EntitySet": "Customers",
		"QueryOptions": "$filter=City eq '{{#Page:-Previous/#Control:CDCLocationPicker/#SelectedValue}}'"
	},
	"_Name": "SectionObjectTable0",
	"Visible": true,
	"EmptySection": {
		"FooterVisible": false
	},
	"ObjectCell": {
		"Title": "{FirstName}",
		"Footnote": "{LastName}",
		"DisplayDescriptionInMobile": true,
		"DetailImageIsCircular": false,
		"PreserveIconStackSpacing": false,
		"AccessoryType": "none",
		"Tags": [],
		"Icons": ["sap-icon://accept", "sap-icon://decline"],
		"AvatarStack": {
			"Avatars": [],
			"ImageIsCircular": true,
			"ImageHasBorder": false
		},
		"AvatarGrid": {
			"Avatars": [],
			"ImageIsCircular": true
		},
		"Selected": false,
		"ContextMenu": {
			"Items": [],
			"PerformFirstActionWithFullSwipe": true
		}
	},
	"DataPaging": {
		"ShowLoadingIndicator": false,
		"PageSize": 50
	},
	"HighlightSelectedItem": false,
	"Selection": {
		"ExitOnLastDeselect": true,
		"LongPressToEnable": "None",
		"Mode": "None"
	}
}