on 09-18-2014 7:53 PM
Hi All,
I have the case that bar diagram is not printed.
View part of the diagramm:
<viz:VizFrame id="idVizFrameBar" uiConfig="{applicationSet: 'fiori'}"
vizType="info/bar">
</viz:VizFrame>
Controller part of the diagram:
var oVizFrame = this.getView().byId("idVizFrameBar");
sap.ui.getCore().setModel(oModel);
var oDataset = new sap.viz.ui5.data.FlattenedDataset({
dimensions : [ {
name : "Bezeichnung",
value : "{BEZEICHNUNG}"
} ],
measures : [ {
name : "Anzahl",
value : "{ANZAHL}"
} ],
data : "{/OBJECTSet}"
});
oVizFrame.setDataset(oDataset);
the oModel is created earlier in code and is working because binding in other components is working.
In the sap gui no data is printed...
Thanks for information.
Best regards,
Christoph
Hi,
have you found a solution? We connect a line graph to an OData service, with the model bound to the view, not to the VizFrame, because we also think that this should be enough, because in the network tab I can see the request to fetch the data, but the graph is showing the error message:
"Anlegen des Diagramms fehlgeschlagen:[50053] - Unvollständige Dimensionsbindung".
I would like to know though, if that means my graph definition is wrong or if the data coming from the OData service is not suitable. It's even worse, because we have a date for the x-axis to print integer values to the y axis. Is that supported, is it not - we don't know because of the lacking documentation.
Kind regards,
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Christoph, where do you read data? you need do something like that to retrieve data:
sap.ui.getCore().getModel().read("/function", { ...} )
In your code, you are not calling de function to retrieve data, so the model is empty.
You can see more information about that in: SAPUI5 SDK - Demo Kit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
is it possible to check some trace of the diagramm..
Still the screen is empty - no error message nothing...
Thanks for your help.
Best regards,
Christoph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have added the following statement but the same result.
Empty page 😞
// diagramm initialisieren
var oVizFrame = this.getView().byId("idVizFrameBar");
sap.ui.getCore().setModel(oModel);
var oDataset = new sap.viz.ui5.data.FlattenedDataset({
dimensions : [ {
name : "Bezeichnungen",
value : "{BEZEICHNUNG}"
} ],
measures : [ {
name : "Anzahl",
value : "{ANZAHL}"
} ],
data : "{/OBJECTSet}"
});
oVizFrame.setModel(oModel);
oVizFrame.setDataset(oDataset);
In the view I have added simple this statement.
<viz:VizFrame id="idVizFrameBar" uiConfig="{applicationSet:'fiori'}" vizType="info/bar" width="900px" height="700px"></viz:VizFrame>
Best regards,
Christoph
User | Count |
---|---|
83 | |
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.