Skip to Content
avatar image
Former Member

SAPUI5 Table Disable Row selection based on Status(Not Sap.m.Table)

Hi,

I have developed a custom Fiori application, this application uses sap.ui.Table control to show data and the selection mode is multi select,

I want to disable row selection for selected rows based on status field... any idea how we can achieve...?

Note: It's not a sap.m.Table control ,Its sap.ui.Table Control..

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Apr 30, 2017 at 10:35 PM

    use property or expression binding.

    Bind the value of status to the tables visibility.

    Check the link : https://help.sap.com/saphelp_nw74/helpdata/en/da/f6852a04b44d118963968a1239d2c0/content.htm

    Regards,

    Sharath

    Add comment
    10|10000 characters needed characters exceeded

    • set the property, enabled with the same boolean property.

      As you see in the sample code, the model which is bound to the table, is controlled by setting the enabled property based on status value.

      Use either the same or directly bind the expression to the property, editable of the row to status with the value "Disconnected".

      Regards,

      Sharath

  • avatar image
    Former Member
    May 02, 2017 at 03:26 PM

    Hi Murali,

    Please check this http://jsbin.com/tehupo/edit?html,js,output.

    If it is all rows -sap.ui.table.SelectionMode.NoneNo rows can be selected - Did you try this.

    Also , using formatter , we can control the selection of the rows.

    Regards

    Madhu

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 23, 2017 at 09:38 AM

    Hi, do the request be resolve??

    Add comment
    10|10000 characters needed characters exceeded