How do I do that
java.lang.String(javascriptstring) casts to a String.
You always add the complete classpath, like you do with Java.
I still thing though that you are better off creating a Servoy aware bean!
Ok, but how complex is that, how much time will that take.
No more time than finding out how to use the thing within Servoy.
Either using this in Servoy or creating a wrapper for it (because that is what you actually do), in both cases you need to know/learn about Java.
Of course we could do it for you as well
I tried to access the property you said with
elements.bean_298.linkSetName = "someString";
And it seemed to work. I did not see any changes when executing it, but I did not see any errors…
Could you please give me some code samples and information to understand the two scenarios you talked about (what is the problem with the first and show me your code for the second)?
I do not understand what you wanted to say with “In runtime i see there is a property LinkSetName but Servoy does not seem to understand it is a string.”
Ok, the jGantt1.setLinkSetName(“links”); works (typo on my side
What I still don’t seem to get to work correct is:
java syntax:
links.addEntityAttribute(“pre”, String.class, “Source node”);
javascript/servoy syntax:
links.addEntityAttribute(“pre”, ??? , “Source node”);
rvdb:
javascript/servoy syntax:
links.addEntityAttribute(“pre”, ??? , “Source node”);
What is links? Where do you get this links variable from?
Is it related to JGantt bean properties “linkSetName”, “linkSourceNodeBy”, “linkTargetNodeBy”?
var links = jGantt.appData.createEntitySet(“links”);
Try
links.addEntityAttribute("pre", java.lang.String, "Source node");
It runs in my tests. But I want to know if it generates the expected result.