[
{FLAVOR_ID: "9C9FD354F303452BE100000089CDA76F", FLAVOR_NAME: "temp", OWNER: "MASAD", APP_ID: "IW26", STATUS: "IGNORED", …},
{FLAVOR_ID: "9894FC5286F14271E100000089CDA76F", FLAVOR_NAME: "Department Heads", OWNER: "MASAD", APP_ID: "SE38", STATUS: "PROCESS", …},
{FLAVOR_ID: "2D070F53DF372B33E100000089CDA76F", FLAVOR_NAME: "SAP Release", OWNER: "MASAD", APP_ID: "ME23N", STATUS: "PROCESS", …},
{FLAVOR_ID: "7ED8845427A5AC64E100000089CDA770", FLAVOR_NAME: "asug demo", OWNER: "MASAD", APP_ID: "KS03", STATUS: "PROCESS", …},
{FLAVOR_ID: "F1ADB9542D034F23E100000089CDA76F", FLAVOR_NAME: "temp", OWNER: "MASAD", APP_ID: "SM50", STATUS: "PROCESS", …},
....
]
var tableHTML = '<html> <head<\
<script src="/ui5/1/resources/sap-ui-core.js" \
id="sap-ui-bootstrap" \
data-sap-ui-libs="sap.ui.core,sap.ui.commons,sap.ui.table" \
data-sap-ui-theme="sap_goldreflection"> </script> \
<script>';
tableHTML += '\
var oTable2 = new sap.ui.table.Table({ \
title: "Personas 2 migration status", \
visibleRowCount: 15, \
columnHeaderHeight: 30, \
selectionMode: sap.ui.table.SelectionMode.Single, \
}); \
\
oTable2.addColumn(new sap.ui.table.Column({ \
label: new sap.ui.commons.Label({text: "Flavor ID"}), \
template: new sap.ui.commons.TextView().bindProperty("text", "FLAVOR_ID"), \
sortProperty: "FLAVOR_ID", \
filterProperty: "FLAVOR_ID", \
width: "200px" \
})); \
oTable2.addColumn(new sap.ui.table.Column({ \
label: new sap.ui.commons.Label({text: "Flavor Name"}), \
template: new sap.ui.commons.TextField().bindProperty("value", "FLAVOR_NAME"), \
sortProperty: "FLAVOR_NAME", \
filterProperty: "FLAVOR_NAME", \
width: "200px" \
})); \
oTable2.addColumn(new sap.ui.table.Column({ \
label: new sap.ui.commons.Label({text: "Owner"}), \
template: new sap.ui.commons.TextField().bindProperty("value", "OWNER"), \
sortProperty: "OWNER", \
filterProperty: "OWNER", \
width: "200px" \
})); \
oTable2.addColumn(new sap.ui.table.Column({ \
label: new sap.ui.commons.Label({text: "Transaction"}), \
template: new sap.ui.commons.TextField().bindProperty("value", "APP_ID"), \
sortProperty: "APP_ID", \
filterProperty: "APP_ID", \
width: "200px" \
})); \
oTable2.addColumn(new sap.ui.table.Column({ \
label: new sap.ui.commons.Label({text: "Status"}), \
template: new sap.ui.commons.TextField().bindProperty("value", "STATUS"), \
sortProperty: "STATUS", \
filterProperty: "STATUS", \
width: "200px" \
})); \
';
//Create a model and bind the table rows to this model
tableHTML += 'var oModel2 = new sap.ui.model.json.JSONModel(); \
oModel2.setData({modelData: ' + JSON.stringify(contents) + '}); \
oTable2.setModel(oModel2); \
oTable2.bindRows("/modelData"); \
';
tableHTML += 'oTable2.placeAt("content");';
tableHTML += '</script>';
tableHTML += '</head>';
tableHTML += '<body class="sapUiBody" supportedthemes="sap_corbu" role="application">';
tableHTML += '<div id="content"> </div>'
tableHTML += '</body></html>';
session.findById("wnd[0]/usr/htmlViewerPersonas_1447866610072").content = tableHTML;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
10 | |
10 | |
9 | |
8 | |
8 | |
6 | |
6 | |
5 | |
5 |