on 2021 Sep 28 2:52 PM
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:
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
}
}
Request clarification before answering.
shubhmis
Update - In
Android, the accessory button icon will be hidden when multi-selection
is enabled. No changes in iOS because the behaviour is already correct.
You can test it in MDK 6.0.6 and also in MDK 6.1.0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
nivaskarthi
Accessory button not visible if selection mode is set to "Multiple" is the expected behavior.
If user want to see the detail page of ObjectCell, they can navigate to detail page (via OnPress/OnAccessoryButtonPress event) when the object list is in single mode selection.
It all depends what is the app flow and use case but i would think of -
when the page loads, Object List can be in single mode by default (Selection Mode - None). This way user can navigate to detail page if needed.
Toggle the list to Multi-mode using setSelectionMode ClientAPI for example, by clicking on a button in ActionBar OR LongPressToEnable metadata property. When user is in multi-mode, they should be able to select record and do necessary action. When done, they will switch back to single mode.
| User | Count |
|---|---|
| 18 | |
| 7 | |
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.