Page 1 of 1

Invoke a service manually

Posted: Thu Apr 25, 2013 11:54 am
by w

How can I invoke a service manually? Because my service is invoked on page show event not. But I want it to reload only on specific circumstances, not on each page show, how can i do this?

And will my service "success" event that I have defined now, still be triggered if I execute a service manually, or do I have to manually add the success event also in javascript code?


Invoke a service manually

Posted: Thu Apr 25, 2013 11:57 am
by w

I see that this is the syntax:

service_name.execute({
success: function( e ) {
//Success handler here
},
error: function( e ) {
//Error handler here
},
complete: function( e ) {
//Complete handler here
},
});

But can I leave the success/error/complete part out of it, and just execute the service? And instead define this success/error/complete events with the UI of Appery in the event window?


Invoke a service manually

Posted: Thu Apr 25, 2013 12:05 pm
by Maryna Brodina

Hello! This post should help https://getsatisfaction.com/apperyio/...

Let us know if you still have questions.


Invoke a service manually

Posted: Thu Apr 25, 2013 12:56 pm
by w

Thank you, but in that post they refer to links that are no longer working due to the namechange from tiggzi to appery. For example: http://help.tiggzi.com/documentation/...


Invoke a service manually

Posted: Thu Apr 25, 2013 2:17 pm
by Maryna Brodina

Use codeservice_name.execute({});/code to call service manually. If you want to call service on success event add this code on success event in builder.


Invoke a service manually

Posted: Wed Aug 21, 2013 2:26 pm
by Manuel Menéndez Román

Hello,
And what about if I need to send some parameters to the service?

Thanks


Invoke a service manually

Posted: Wed Aug 21, 2013 2:49 pm
by Maryna Brodina

Invoke a service manually

Posted: Tue Aug 27, 2013 11:52 am
by Manuel Menéndez Román

Great, thanks