Dear Experts,
I am doing a Full Screen Fiori Application having master view in which i am having a table , the item press of the table
would navigate to the Details Page where i am having an Item table which is being binded based on my item selected from the first screen.
Now the requirement is that based on my item table number of rows i have to insert some blank rows.
For example if there is no records in my item table , then 3 input blank rows should be shown to the user , if one item is there then two input rows to be visible and if two items are there then one input empty rows to be visible. The calculation of item table length has to be happen in runtime upon clicking on the master view item press event.
I am writing the code in on RouteHandler matched method of the details page .Please find my code.
this._oNavigationTable = this.byId("itemsTable");
this._oItemTemplate = this.byId("idList").clone();
getTableLength: function(){
// var itemTable1 = this.getView().byId("itemsTable");
var tableLength = this._oNavigationTable.getItems().length;
console.log(tableLength);
},
Kindly give your suggestions and let me know if any clarification is required.
Regards,
Vikash