cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Issues with Object table accessory icon in SAP MDK

Shubham_M
Participant
0 Kudos
1,226

Hi,

I am using a Object table to show a list of actions in my application. The object table is multiselect mode.

I want to achieve a navigation either using press of object cell or using accessory icon. Here are the issues I am facing:

  1. Item press is not getting triggered as when I click on the item it is selecting/unselecting the item.
  2. When provided accessory icon, it is getting displayed in android but not in iOS. In android it is coming but the "SubstatusText" is getting hidden.

Is this a standard behavior or I am missing something?

Here is the code for my Object table

{
                    "Header": {
                        "_Name": "SectionHeader0",
                        "UseTopPadding": true,
                        "Caption": "/MeterReturns/Rules/MainPage/GetSubmitSummaryText.js"
                    },
                    "_Type": "Section.Type.ObjectTable",
                    "Target": "{#Page:Main/#ClientData/AppData/MetersToSubmit}",
                    "_Name": "SectionObjectTable0",
                    "Visible": true,
                    "EmptySection": {
                        "FooterVisible": false
                    },
                    "ObjectCell": {
                        "ContextMenu": {
                            "Items": [
                            ],
                            "PerformFirstActionWithFullSwipe": true
                        },
                        "Title": "$(L,'Serial') {serialNumber}",
                        "Subhead": "$(L,'Material') {materialNo}",
                        "Footnote": "{actionName} - {comments}",
                        "StatusText": "Bin#: {bin}",
                        "SubstatusText": "SLOC#: {SLOC}",
                        "DetailImageIsCircular": false,
                        "PreserveIconStackSpacing": false,
                        "AccessoryButtonIcon": "sap-icon://edit",
                        "OnAccessoryButtonPress": "/MeterReturns/Rules/SubmitPage/onShowMeterDetails.js",
                        "Selected": true
                    },
                    "DataPaging": {
                        "ShowLoadingIndicator": false,
                        "PageSize": 50
                    },
                    "HighlightSelectedItem": true,
                    "Selection": {
                        "Mode": "Multiple",
                        "LongPressToEnable": "None",
                        "ExitOnLastDeselect": false
                    }
                }

View Entire Topic
Jitendra_Kansal78
Product and Topic Expert
Product and Topic Expert
0 Kudos

shubhmis

Once the multiple selection mode is enabled, you should just be able to select/unselect a record.

The OnPress and OnAccessoryButtonPress events won't work in case of multiple selection mode.

When provided accessory icon, it is getting displayed in android but not in iOS. In android it is coming but the "SubstatusText" is getting 
hidden.

This seems a bug in Android, will find out details.

Shubham_M
Participant
0 Kudos

Hi Jitendra,

Thanks for the response. Is accessory icon property not supported in iOS?

Thanks,

Shubham

Jitendra_Kansal78
Product and Topic Expert
Product and Topic Expert
0 Kudos

In case of multiple selection mode, OnAccessoryButtonPress event (and OnPress) will be disabled.

in iOS - AccessoryIcon is not displayed in multi selection table - this is the right behavior.

I am checking with team why it is showing in Android though.