cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

In table input fields values getting erased automatically

irfan_gokak
Contributor
0 Likes
649

Hi Experts,

     I have created table on click of some button. In table rows i have input fields as well as date picker. after entering values when focus is left values getting erased automatically. Please help me how to fix it.

Thanks in Advance,

View Entire Topic
Former Member
0 Likes

HI Irfan

Can you share anything special that you did when creating the table and rows?

-D

irfan_gokak
Contributor
0 Likes

var tbl = this.getView().byId("RembTable");

rembTemplete =  new sap.m.ColumnListItem({

  cells : [ ]});

myColumn = new sap.m.Column({

  demandPopin: true,

  hAlign:"Center"

});

myElelbl = new sap.m.Label({

  text : <some text>,

});

myEleFld = new sap.m.Input({

  id : <some>,

  enabled: true,

});

myColumn.setHeader(myElelbl);

tbl.addColumn(myColumn);

rembTemplete.addCell(myEleFld);

tbl.addItem(rembTemplete);

Former Member
0 Likes

look ok for me

Example

can you cross check?

Thanks

-D

irfan_gokak
Contributor
0 Likes

its working, but values from the input field getting erased after focus left.

Former Member
0 Likes

My example works (input value stays) so what are the differences between yours and mine code?

-D

kai2015
Contributor
0 Likes

Next step is to share your code with your issue like Dennis did.

Read this:

irfan_gokak
Contributor
0 Likes

i have got solution thank you!!

Qualiture
SAP Mentor
SAP Mentor
0 Likes

Can you please share your solution? That will benefit others who might encounter the same issue

kai2015
Contributor
0 Likes

yes please