cancel
Showing results for 
Search instead for 
Did you mean: 

Andorid Client Crash MDK

c_chowdary
Participant
0 Kudos
466

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
}

Accepted Solutions (1)

Accepted Solutions (1)

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

Answers (2)

Answers (2)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

I setup a test app and was able to see a crash just loading your page with MDK 6.3.0. Using an internal build for 6.3.1 everything appears to be working as expected. Based on that I am hopeful the patch will also address the issue for your specific app as well.

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

We are aware of some issues with the Object Card collection that we are addressing in the upcoming MDK 6.3.1 patch. How are you triggering the redraw? I want to see if your scenario will be addressed with the upcoming patch fixes or if this is a new scenario we need to investigate.

c_chowdary
Participant
0 Kudos

Thanks for the quick response.

I am just redrawing the sectioned table of the page in a rule (onPulldown) by evaluating target path.