Skip to Content
0

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

Apr 29, 2017 at 10:56 AM

753

avatar image
Former Member

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..

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Sharath M G Apr 30, 2017 at 10:35 PM
0

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thanks for your reply Sharath M G,

But I don't want hide the column. See the below link, how it will disable rows in sap.m.Table control

JS Bin - Collaborative JavaScript Debugging.

I want exact functionality using sap.ui.table control.

0

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

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

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Nov 23, 2017 at 09:38 AM
0

Hi, do the request be resolve??

Share
10 |10000 characters needed characters left characters exceeded