cancel
Showing results for 
Search instead for 
Did you mean: 

Value Help in Launchpad have no cells and filter

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos
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);
Former Member
0 Kudos

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;
junwu
Active Contributor
0 Kudos

debug your code, is your code executed?

Former Member
0 Kudos

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!

junwu
Active Contributor
0 Kudos

where is your ui/view code?

"There are no visible columns in the table right now" this is driven by annotation.

this should have nothing to do with your json data.

junwu
Active Contributor
0 Kudos

when you debug what is the value for sPath ?

you may have to adjust "model/columnsModelAnla.json", it depends on your folder structure.