on 09-28-2015 8:45 AM
Hi Experts,
I have used sap.m.table in my application. Depending on the value in status column, I have to make the row in the table either editable or non-editable. How can I achieve this?
Also in the same table, the data is bound using the model. Now the combo box in the last column shows the value present in the data model. However the requirement is that the combo box should have items coming from a different model and if there exists a value in the data model, that appropriate item from the combo box has to be selected.
My table looks as follows.
Thanks
Maruthi
Hi Maruthi,
I guess you're using a column list item, for column list item there is no editable property. So, from your screenshot I can see you're using a dropdown and a MultiSelect for the table.
I would suggest apply this property on both the controls. And also editable: false will remove your dropdown, I would recommend you to use enabled property instead.
Check this working sample: Table Edit
Check the code here: JS Bin - Collaborative JavaScript Debugging
If the status is 'NotAssigned' then the controls will be disabled.
Regards,
Sai Vellanki.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sai,
The solution selectively disables the rows. But the removes the select all check box itself from the table. Also after making the select all check box visible, even the disabled ones get selected. This I think is logically incorrect. Therefore I think it requires some change to the code.
Working on it...
Thanks
Maruthi
User | Count |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.