<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: SAPUI5: NetworkGraph missing displayed content while using LayeredLayout in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sapui5-networkgraph-missing-displayed-content-while-using-layeredlayout/qaa-p/664391#M172725</link>
    <description>&lt;P&gt;I test it in the WebIDE with SAPUI5 version 1.52.8&lt;/P&gt;</description>
    <pubDate>Mon, 09 Apr 2018 10:54:04 GMT</pubDate>
    <dc:creator>timkudla</dc:creator>
    <dc:date>2018-04-09T10:54:04Z</dc:date>
    <item>
      <title>SAPUI5: NetworkGraph missing displayed content while using LayeredLayout</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-networkgraph-missing-displayed-content-while-using-layeredlayout/qaq-p/664389</link>
      <description>&lt;P&gt;Hey community,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I am interested to display data with the NetworkGraph and want to test it. Therefore I just download the example code (from &lt;A href="https://sapui5.hana.ondemand.com/#/sample/sap.suite.ui.commons.sample.NetworkGraphCarFactory/preview"&gt;here&lt;/A&gt;) and modifying the code a little bit. The result is the following:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;NetworkGraph.view.xml&lt;/EM&gt;&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;mvc:ViewcontrollerName="sap.suite.ui.commons.sample.NetworkGraphCarFactory.   NetworkGraph" xmlns="sap.suite.ui.commons.networkgraph"
   xmlns:mvc="sap.ui.core.mvc" height="100%"   xmlns:layout="sap.suite.ui.commons.networkgraph.layout"&amp;gt;
  &amp;lt;Graph id="graph" orientation="TopBottom"&amp;gt;
    &amp;lt;layoutAlgorithm&amp;gt;
      &amp;lt;layout:LayeredLayout nodePlacement="Simple" nodeSpacing="40"/&amp;gt;
    &amp;lt;/layoutAlgorithm&amp;gt;
    &amp;lt;nodes&amp;gt;
      &amp;lt;Node key="Node1" title="Node1" shape="Box" group="group_one"/&amp;gt;
      &amp;lt;Node key="Node2" title="Node2" shape="Box" group="group_one"/&amp;gt;
      &amp;lt;Node key="Node3" title="Node3" shape="Box" group="group_one"/&amp;gt;
      &amp;lt;Node key="Node4" title="Node4" shape="Box" group="group_one"/&amp;gt;
      &amp;lt;Node key="Node5" title="Node1" shape="Box" group="group_two"/&amp;gt;
      &amp;lt;Node key="Node6" title="Node2" shape="Box" group="group_two"/&amp;gt;
      &amp;lt;Node key="Node7" title="Node3" shape="Box" group="group_two"/&amp;gt;
      &amp;lt;Node key="Node8" title="Node4" shape="Box" group="group_two"/&amp;gt;
    &amp;lt;/nodes&amp;gt;
    &amp;lt;lines&amp;gt;
      &amp;lt;Line from="Node1" to="Node2"/&amp;gt;
      &amp;lt;Line from="Node1" to="Node3"/&amp;gt;
      &amp;lt;Line from="Node1" to="Node4"/&amp;gt;
      &amp;lt;Line from="Node5" to="Node6"/&amp;gt;
      &amp;lt;Line from="Node5" to="Node7"/&amp;gt;
      &amp;lt;Line from="Node5" to="Node8"/&amp;gt;
    &amp;lt;/lines&amp;gt;
    &amp;lt;groups&amp;gt;
      &amp;lt;Group key="group_one" title="Main"/&amp;gt;
      &amp;lt;Group key="group_two" title="Main"/&amp;gt;
    &amp;lt;/groups&amp;gt;
  &amp;lt;/Graph&amp;gt;
&amp;lt;/mvc:View&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;EM&gt;NetworkGraph.controller.js&lt;/EM&gt;&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;sap.ui.define([
  "sap/ui/core/mvc/Controller"
], function(Controller) {
  var oPageController = Controller.extend("sap.suite.ui.commons.sample.&amp;lt;br&amp;gt;      NetworkGraphCarFactory.NetworkGraph", {
  });  return oPageController;
});

&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;The problem is when I test the application the standard toolbar for the graph is displayed, but not the content. In whose place is an endless loading animation. If I change the LayoutAlgorithm to "ForceBasedLayout" the nodes and lines where displayed. But then the groups are still missing and the positioning is changing at every refresh.&lt;BR /&gt;&lt;BR /&gt;The only error message when using the "Layered Layout" in the browsers console is the following:&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/128660-test.png" /&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Does someone can tell me what I miss to define or do wrong?&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Thanks for your help in advance!&lt;BR /&gt;&lt;BR /&gt;Tim&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;P.S. I know using a json.model is better, but first I want to exclude errors based on an incorrect implementation&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;UL&gt;&lt;/UL&gt;</description>
      <pubDate>Sun, 08 Apr 2018 11:49:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-networkgraph-missing-displayed-content-while-using-layeredlayout/qaq-p/664389</guid>
      <dc:creator>timkudla</dc:creator>
      <dc:date>2018-04-08T11:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5: NetworkGraph missing displayed content while using LayeredLayout</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-networkgraph-missing-displayed-content-while-using-layeredlayout/qaa-p/664390#M172724</link>
      <description>&lt;P&gt;Hi Tim,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;It would be useful to know which SAPUI5 version and patch level you are using, in order to discard any possible bug of the library.&lt;/P&gt;
  &lt;P&gt;Best regards,&lt;/P&gt;
  &lt;P&gt;Désirée&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 08:16:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-networkgraph-missing-displayed-content-while-using-layeredlayout/qaa-p/664390#M172724</guid>
      <dc:creator>desiree_matas</dc:creator>
      <dc:date>2018-04-09T08:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5: NetworkGraph missing displayed content while using LayeredLayout</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-networkgraph-missing-displayed-content-while-using-layeredlayout/qaa-p/664391#M172725</link>
      <description>&lt;P&gt;I test it in the WebIDE with SAPUI5 version 1.52.8&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2018 10:54:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-networkgraph-missing-displayed-content-while-using-layeredlayout/qaa-p/664391#M172725</guid>
      <dc:creator>timkudla</dc:creator>
      <dc:date>2018-04-09T10:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5: NetworkGraph missing displayed content while using LayeredLayout</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-networkgraph-missing-displayed-content-while-using-layeredlayout/qaa-p/664392#M172726</link>
      <description>&lt;P&gt;After some research I found some statement in a discussion that the library of the NetworkGraph currently can not be loaded from CDN.&lt;/P&gt;
  &lt;P&gt;Therefore I download all necessary libraries, attach them to my project:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/132429-lib.png" /&gt; &lt;/P&gt;
  &lt;P&gt;and invoke the local files while bootstrap:&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;&amp;lt;script id="sap-ui-bootstrap"
	src="libs/sap-ui-core.js"
	data-sap-ui-libs="sap.m"
	data-sap-ui-theme="sap_belize"
	data-sap-ui-compatVersion="edge"
	data-sap-ui-resourceroots='{"NetworkGraphTest": ""}'&amp;gt;
&amp;lt;/script&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Now the app is running &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 13:26:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-networkgraph-missing-displayed-content-while-using-layeredlayout/qaa-p/664392#M172726</guid>
      <dc:creator>timkudla</dc:creator>
      <dc:date>2018-04-26T13:26:29Z</dc:date>
    </item>
  </channel>
</rss>

