Not documented function ?

Hello SERVOY users,

I find in ‘login_GO’ method , references to function not documented and that I can see nowhere in the main function tree from method editor ???

What’s are the exact function of them :

try {

}

What’s the goal of try structure ?

catch (error) {
** plugins.dialogs.showErrorDialog(“Login error”, “Your account is not fully setup”, “OK”)**
** return**
** }**

I suppose the catch function capture automatically the error code from last Database function ?

I hope someone can give me documentation about these functions and perhaps some others.

Thanks.

DomTom

Try…Catch is a Javascript function

The try…catch statement marks a block of statements to try, and specifies one or more responses should an exception be thrown. If an exception is thrown, the try…catch statement catches it.

Following links should get you started:

http://developer.mozilla.org/en/docs/Co … _Statement
http://www.w3schools.com/js/js_try_catch.asp
http://www.devguru.com/technologies/ecm … catch.html

Graham Greensall
Worxinfo Ltd