Skip to content
Snippets Groups Projects
Commit ca8c9d1e authored by BenniHome's avatar BenniHome
Browse files

changed something in order to make scrolls work

parent 7f9b2118
No related branches found
No related tags found
No related merge requests found
...@@ -169,6 +169,7 @@ public OnLineFact(int i, int pid, int lid) ...@@ -169,6 +169,7 @@ public OnLineFact(int i, int pid, int lid)
AddFactResponse res = AddFactResponse.sendAdd("localhost:8081/fact/add/onLine", body); AddFactResponse res = AddFactResponse.sendAdd("localhost:8081/fact/add/onLine", body);
this.backendURI = res.factUri; this.backendURI = res.factUri;
this.backendValueURI = res.factValUri; this.backendValueURI = res.factValUri;
Debug.Log("created onLine" + this.backendURI + " " + this.backendValueURI);
} }
......
...@@ -88,11 +88,11 @@ private string sendView() { ...@@ -88,11 +88,11 @@ private string sendView() {
Fact fact_i = ParameterDisplays[i].GetComponentInChildren<DropHandling>().currentFact; Fact fact_i = ParameterDisplays[i].GetComponentInChildren<DropHandling>().currentFact;
var drophandler = ParameterDisplays[i].GetComponentInChildren<DropHandling>(); var drophandler = ParameterDisplays[i].GetComponentInChildren<DropHandling>();
Declaration decl_i = scroll.declarations[i]; Declaration decl_i = scroll.declarations[i];
jsonRequest = jsonRequest + @" """ + decl_i.identifier + @""":""" + fact_i.backendURI + @""",";
if (decl_i.value != null && fact_i.backendValueURI != null) if (decl_i.value != null && fact_i.backendValueURI != null)
{ {
jsonRequest = jsonRequest + @" """ + decl_i.value + @""":""" + fact_i.backendValueURI + @""","; jsonRequest = jsonRequest + @" """ + decl_i.value + @""":""" + fact_i.backendValueURI + @""",";
} }
jsonRequest = jsonRequest + @" """ + decl_i.identifier + @""":""" + fact_i.backendURI + @""",";
} }
//removing the last ',' //removing the last ','
jsonRequest = jsonRequest.Substring(0, jsonRequest.Length - 1); jsonRequest = jsonRequest.Substring(0, jsonRequest.Length - 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment