cancel
Showing results for 
Search instead for 
Did you mean: 

Editable input field in multiselect table

Former Member
0 Kudos

Hi Experts,

I have a sap.m.table, which has 4 columns. In ColumnListItem->cells, I have created first 2 fields as Text fields, and binding the data to it from json model. Later 2 fields are kept as input fields.

The requirement is, on selection a particular row, the input fields present in that row, should get set to editable mode, so that user can input the data in it.

Later, on click of a button (outside the table), data from the selected rows, should get mapped to another service posting data to backend.

I am looking for the help around setting the input fields of selected row to editable state and later reading the data from input fields on click of a button.

I read through multiple discussions, and tried various things, however couldn’t really achieve this. Need your valuable inputs to help me achieve the required result.

Thanks and regards,

Ruchi Agarwal

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member227918
Active Contributor

Hello Ruchi,

Are you looking something like this ?

In the above example I have implemented with json model, similarly can be done using oDataModel (twoway binding mode) as well.

Regards,

Akhilesh

former_member296785
Participant
0 Kudos
former_member182862
Active Contributor
0 Kudos

hi Ruchi

Maybe this helps. http://jsbin.com/zomizoc/edit?html,js,output

Thanks

-D