Hi there SAP experts,
I am currently working on a SAP FIORI app in which data is displayed by means of NetwrokGraph (https://sapui5.hana.ondemand.com/1.52.18/#/api/sap.suite.ui.commons.networkgraph.Graph). All binding looks good but a requirement of displaying a little bit of details of the root node of a graph in the legend has been asked by the app's users. The current version of SAPUI5 being used is 1.52.18
The current syntax of the binding of the graph is as follows (the view is in XML by the way):
<Graph orientation="TopBottom" id="graph" enableWheelZoom="true" lines="{/ArestaHierarquiaSet}" nodes="{/HierarquiaBCASet}" graphReady="onGraphReady">
which works like a charm. The point is that I now need to retrieve properties regarding the first account (as available from a SAP gateway entity set service) and i wonder if there is a way to aggregate the content to the legend from a OData model directly in the XML view (something like legend = {/SomethingSet}.
As specified by ManagedObject's documentation (https://sapui5.hana.ondemand.com/1.52.18/#/api/sap.ui.base.ManagedObject/overview), it says only that aggregations of cardinality 0..n can be bound to an entity set in the model (in the case of NetworkGraph, aggregations <lines> and <nodes>).
Currently, the aggregation <legend> holds a control and has cardinality 0..1. The code in my app is as follows:
<m:VBox> <m:Title text="Nº Parceiro:"></m:Title> <m:Text text="{A}"></m:Text> <m:Title text="Razão Social"></m:Title> <m:Text text="{B}"></m:Text> <m:Title text="CNPJ"></m:Title> <m:Text text="{C}"></m:Text> </m:VBox>
Where the legend is a sap.m.VBox with other items and A B and C fields of a get method from a service already provided (and working) in SAP gateway.
How can i acheive the desired scenario?
Thanks in advance,
Erick
Request clarification before answering.
I managed to achieve the desired scenario by using the HTML control available in https://sapui5.hana.ondemand.com/#/api/sap.ui.core.HTML
Although not as i wanted, i pushed the custom info i wanted to display in the legend into invisible controls and then i was able to put them into the custom legend via the view's controller.
Regards,
Erick.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.