Skip to Content
author's profile photo Former Member
Former Member

sap.ui.table.Table not letting me select a row when on a mobile device.

Hey all,

we hav ethe follogin code:

//Table

var statusReportTable = new sap.ui.table.Table("statusReportTable", {

title: 'RESULTS',

editable: false,

allowColumnReordering: false,

selectionMode: sap.ui.table.SelectionMode.Single,

selectionBehavior: sap.ui.table.SelectionBehavior.RowOnly,

rowHeight: 9,

width: '99%'});

statusReportTable.attachRowSelectionChange(rowSelected);

statusReportTable.attachColumnResize(attachDoubleClickToTable);

This code sets up a table, which we feed records into later.

This works fine on desktop computers, but does not allow users to select any records when viewing on a mobile device.

Does anyone know why the clicked event is not being propagated down to the table on mobile devices?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jul 25, 2014 at 07:26 AM

    Hi Jordan,

    I am not sure whether this reply is correct or not, but i guess sap.ui is mainly for Desktop right? with a Mouse?

    To handle touch we need to use some extra stuff or property, i guess.

    selectionMode : sap.ui.table.SelectionMode.Single  

    Here you can control the selection mode such as None (disable selection), Single (maximum one row can be selected at any time) and Multi (one or more rows can be selected) . Default is Multi

       selectionBehavior: sap.ui.table.SelectionBehavior.Row  

    Here you can control how the row can be selected such as RowOnly (mouse click on the row only), Row (mouse click on the row and row selector) and RowSelector (mouse click on the row selector only). Default is RowSelector.

    Regards,

    Madhumahesh.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.