Page 1 of 1

execute service call in javascript

Posted: Tue Jan 21, 2014 11:30 am
by jachno

HI,

I am trying to run the login service when the app starts for testing purposes I have the following code running off a button click:

Login.username = 'username';
Login.password = 'password';
Login.execute();

using the console I am able to get the following information

{"code":"DBUI002","description":"database id not specified"}

so how do I specify the database ID in order to execute the call? also once i have done this do i need separate success and failure calls or will it use the specified ones in the service?

Thanks


execute service call in javascript

Posted: Tue Jan 21, 2014 12:03 pm
by Maryna Brodina

Hello! You need to call service this way preLogin.execute({"data":{"username":"user","password":"pwd"}});/prewhere user and pwd - user name and password values.