cancel
Showing results for 
Search instead for 
Did you mean: 

Andorid Client Crash MDK

c_chowdary
Participant
0 Kudos

Hi,

I am currently developing an MDK App in 6.3 version using Object Card Collection control and build a custom client with MDK SDK 6.3.0.Unfortunately, Android app is getting crashed when I try to redraw the page with Object Card Control. Its working fine in IOS. I am using Android 9 and tested the same in Android 10.

How do I resolve this error?

I am using this page on click of button from main page.

Page Definition:

{
	"Controls": [
		{
			"_Type": "Control.Type.SectionedTable",
			"_Name": "SectionedTable0",
			"Sections": [
				{
					"_Type": "Section.Type.ObjectCardCollection",
					"Target": "/DemoProject/Rules/Rule1.js",
					"_Name": "SectionObjectCardCollection0",
					"Visible": true,
					"EmptySection": {
						"Caption": "No data",
						"FooterVisible": false
					},
					"DataPaging": {
						"ShowLoadingIndicator": false,
						"PageSize": 50
					},
					"Card": {
						"Visible": true,
						"Title": "{Name}",
						"Subhead": "{Email}",
						"Footnote": "{Gender}",
						"DetailImage": "{img}",
						"DetailImageIsCircular": false,
						"StatusText": Location: {location}",
						"OverflowButtons": [
							{
								"_Name": "SectionObjectCardCollection0OverflowButtons0",
								"Image": "sap-icon://edit",
								"Style": "Destructive",
								"Title": "Edit",
								"Visible": true
							}
						],
						"PrimaryAction": {
							"_Name": "Bt2",
							"Style": "",
							"Title": "",
							"Visible": false
						},
						"SecondaryAction": {
							"_Name": "Bt1",
							"Style": "",
							"Title": "",
							"Visible": false
						},
						"Styles": {
							"BackgroundColor": "ObjectCard"
						},
						"_Type": "Control.Type.ObjectCard"
					},
					"Layout": {
						"NumberOfColumns": 1,
						"LayoutType": "HorizontalScroll"
					}
				},
				{
					"_Type": "Section.Type.ObjectCardCollection",
					"Target": "/DemoProject/Rules/Rule2.js",
					"_Name": "SectionObjectCardCollection1",
					"Visible": true,
					"EmptySection": {
						"Caption": "No data!",
						"FooterVisible": false
					},
					"DataPaging": {
						"ShowLoadingIndicator": false,
						"PageSize": 50
					},
					"Card": {
						"Visible": true,
						"Title": "ID: {id}",
						"Subhead": "Issue Date: {issue_Date}",
						"Footnote": "Expiry Date: {expiry_Date}",
						"DetailImage": "/DemoProject/Images/img2.png",
						"DetailImageIsCircular": false,
						"OverflowButtons": [
							{
								"_Name": "SectionObjectCardCollection1OverflowButtons0",
								"Image": "sap-icon://edit",
								"Style": "Normal",
								"Title": "Edit",
								"Visible": true
							}
						],
						"PrimaryAction": {
							"_Name": "bt3",
							"Style": "",
							"Title": "Primary",
							"Visible": false
						},
						"SecondaryAction": {
							"_Name": "bt4",
							"Style": "",
							"Title": "{approved}",
							"Visible": true
						},
						"Styles": {
							"BackgroundColor": "ObjectCardBg2"
						},
						"_Type": "Control.Type.ObjectCard"
					},
					"Layout": {
						"NumberOfColumns": 1,
						"LayoutType": "Vertical"
					}
				}
			]
		}
	],
	"PullDown": {
		"OnPulledDown": "/DemoProject/Rules/onPulldown.js"
	},
	"_Type": "Page",
	"_Name": "List",
	"PrefersLargeCaption": true
}
Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

c_chowdary

Are you using Object Card collection control on the main page? Can you share page definition where you are using this crash?

View Entire Topic
bill_froelich
Product and Topic Expert
Product and Topic Expert

MDK 6.3.1 has been released. Please download from the SAP Marketplace and test to confirm it addresses this issue.

c_chowdary
Participant
0 Kudos

Yes, Crash issue is resolved but Object card collection doesn't show empty section caption when there is no data in Android.

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

I opened an internal bug for the empty section issue on Android