Hi Ronnie,
I've updated the documentation with command() method. Hope it helps new
users.

Lvc@


On 24 June 2014 22:58, Team Xcelerator Inc. <[email protected]>
wrote:

> That fixed it.  THANK YOU SO MUCH.
>
> This would be a great addition to the wiki  ;)
>
> Ronnie
>
>
> On Tuesday, June 24, 2014 4:35:04 PM UTC-4, MrFT wrote:
>>
>> Try
>>
>> var results = gdb.command( "sql", "select from Group where GroupId=?", [
>> 20 ] );
>>
>> and see if that works.
>>
>>
>>
>> Op dinsdag 24 juni 2014 21:40:19 UTC+2 schreef Team Xcelerator Inc.:
>>>
>>> I have been having a terrible time try to create a simple function in
>>> the studio for a graph database.  I have selected Javascript and try to run
>>> the following code:
>>>
>>>     var gdb = orient.getGraph();
>>>     var results = gdb.command("select from Group where GroupId=?", 20);
>>>
>>> I get the following error message:
>>> com.orientechnologies.orient.core.exception.OSecurityException:
>>> Language 'select from group where groupid=?' is not allowed to be executed
>>>
>>> I have tried to enable server side scripting just in case. The allowed
>>> languages was originally set to SQL.  I removed this param to hopefully
>>> enable Javascript, but that didn't help.  Can someone please tell me how I
>>> can create a function for use against a graph database using the Javascript
>>> option.
>>>
>>> Thanks,
>>> Ronnie
>>>
>>  --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OrientDB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to