Now select a system from destinations you already added in the HANA cockpit from the drop down and also select corresponding service name as shown below.


<mvc:View controllerName="manifest.controller.View1" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m" xmlns:core="sap.ui.core">
<core:Fragment fragmentName="manifest.view.HelloDailog" type="XML" />
</mvc:View><core:FragmentDefinition xmlns="sap.m" xmlns:core="sap.ui.core">
<Table id="producttable" items="{/user_detailsSet}">
<columns>
<Column
width="12em">
<Text text="Name" />
</Column>
<Column
minScreenWidth="Tablet"
demandPopin="true">
<Text text="City" />
</Column>
</columns>
<items>
<ColumnListItem>
<cells>
<Text text="{Name}"/>
<Text text="{City}"/>
</cells>
</ColumnListItem>
</items>
</Table>
</core:FragmentDefinition> onInit: function() {
var oView = this.getView();
// create dialog via fragment factory
var oDialog = sap.ui.xmlfragment( "manifest.view.HelloDailog");
//Accessing the table from the fragment by it's Id
var oTable = this.byId("producttable");
//column list item creation
var oTemplate = new sap.m.ColumnListItem({
cells: [new sap.m.Text({
text: "{Name}"
}), new sap.m.Text({
text: "{City}"
})]
});
var sServiceUrl = "/sap/opu/odata/sap/ZUSER_DETAILS_88_SRV";
//Adding service to the odata model
var oModel = new sap.ui.model.odata.ODataModel(sServiceUrl, false);
//Setting model to the table
oTable.setModel(oModel);
oTable.bindAggregation("items", {
path: "/user_detailsSet",
template: oTemplate
});
}

You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 3143 | |
| 1916 | |
| 1916 | |
| 1213 | |
| 1079 | |
| 757 | |
| 755 | |
| 742 |