How to create SAP UI5 Grid table with OData model

This post contains the actual XML View code and the controller javascript code to construct an Grid table of type sap.ui.table.Table and connent it to OData Service XML Code below with Grid Table of type sap.ui.table.Table used OData model is set on the view as shown below