on 02-01-2021 12:34 PM
Hello togehter,
I built an app in the WebIDE and there the value help from an input works. But in the launchpad it doesn't work.
There are no cells.
Launchpad:
The text in the table on english: "There are no visible columns in the table right now. Please select the columns you need in the table settings"
What could be the reason for this? This is a own SAPUI5 App and by implement the value help, I used this sample as a guide. For the columns I used a json-File too. Could it have something to do with that? Does the path in the launchpad need to be different?
this.oColModelA = new sap.ui.model.json.JSONModel("model/columnsModelAnla.json");
regards
Tim
check the console to see if you were able to load the json file.
if not, try this.
var sPath=sap.ui.require.toUrl("model/columnsModelAnla.json")
var oModel =new JSONModel(sPath);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Jun,
thank for comment. According to the network, it doesn't even load.
And your tip doesn't work.
This is my code now:
this.sPath = sap.ui.require.toUrl("model/columnsModelAnla.json");
this.oColModelA = new sap.ui.model.json.JSONModel(this.sPath);
var aColsB = this.oColModelA.getData().cols;
Yes my code is execute but the oColModelA is empty.
Instead of using the json-file I did it that way:
var cols = [{
label: "Anlagennummer",
template: "ANLN1"
}, {
label: "Unternummer",
template: "ANLN2"
}, {
label: "Buchungskreis",
template: "BUKRS"
}, {
label: "Bezeichnung",
template: "TXT50"
}, {
label: "Bezeichnung",
template: "TXA50"
}];
this.oColModelA = new sap.ui.model.json.JSONModel();
this.oColModelA.setData({
cols: cols
});
var oColsB = this.oColModelA.getData().cols;
And this is working!
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.