jachno
Posts: 0
Joined: Tue Jan 21, 2014 11:30 am

execute service call in javascript

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

execute service call in javascript

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

Return to “Issues”