navya kodali
Posts: 0
Joined: Wed Jan 22, 2014 6:47 am

How to call services Through javascript?

Hi ,

I want to call two services based on list service data length. if datalength is equals to zero we have to call create service. otherwise have to callupdateservice..
when i check data length it displays length. but how to write javascript to call services.
How to write if condition in list service success event?
My service names are createservice,updateservice.

pritu patel
Posts: 0
Joined: Tue Jan 21, 2014 6:24 am

How to call services Through javascript?

hi Navya,

i think you have to try this code...

service_name.execute({});

for more detail try this link https://getsatisfaction.com/apperyio/...

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

How to call services Through javascript?

Hi Navya,

You can also check this link: https://getsatisfaction.com/apperyio/...

Return to “Issues”