Hi there!
I need to call a custom script in Designer from one of my web projects. This script would take some parameters that I'll load from a collection.
Anyone could provide an example?
Thanks!
Hi there!
I need to call a custom script in Designer from one of my web projects. This script would take some parameters that I'll load from a collection.
Anyone could provide an example?
Thanks!
Hi,
If you need to evaluate the result of a script in WebSQL, just call it by name like a function.
You can also write C# code using the object layer API to invoke a script, like this:
var runner = new ScriptRunner(_Connection.Scripts["scripts"], _Database); runner.Eval("NameOfYourScript", new object[]{ someParameter });
Hope this helps,
Hanno
I'm pretty sure that is going to do it.
Thanks Hanno!
One question, ScriptRunner is the correct class or is it available in v8.0.1? I get a compilation error
You may need to import the class namespace:
import VI.DB.Scripting;