Page 1 of 1

Executing query service manually using java script

Posted: Tue Aug 13, 2013 12:56 pm
by Asif

Hi
I need to run query service manually because I need to run it only when certain condition becomes true
ex:
if (var1==1)
{
querySrc.execute({data:{where:{userName:"asif"}}});
}
something like this


Executing query service manually using java script

Posted: Tue Aug 13, 2013 1:29 pm
by Maryna Brodina

Hello! Value of "where" parameter should be a string. Use codeif (var1==1)
{
querySrc.execute({data:{where:'{userName:"asif"}'}});
}/code