cancel
Showing results for 
Search instead for 
Did you mean: 

Reading data from Editable table in UI5

Former Member
0 Kudos

posting on behalf of my UI5 colleague

Hi Experts,

 

I would like to read the data from the cells in SAPUI5
table. I have defined a table in JS view as:

   

var oTable = new sap.ui.table.Table("table", {

                             
firstVisibleRow: 5

              
});

I had added columns like below.


I had written var day1=sap.ui.getCore().byId("day1").getValue(); to read the entered values for day1.

But I am getting empty string in this approach . Can someone help in reading the entries from the editable table?

Thanks,

Srinivas.


   
 
 
 
 
 
 
 
 
 
 
 





Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

table.getRows()[0].getCells()[0].getValue()

/**

* Getter for aggregation <code>rows</code>.<br/>

* Rows of the Table

*

* @return {sap.ui.table.Row[]}

* @public

* @name sap.ui.table.Table#getRows

* @function

*/

/**

* Getter for aggregation <code>cells</code>.<br/>

* The controls for the cells.

*

* @return {sap.ui.core.Control[]}

* @public

* @name sap.ui.table.Row#getCells

* @function

*/