How can call a AB function in JS?


Amin Mousavi
Hi David, I have a function in AB, now i need to use that in JS, how can call a AB function in JS? Thanks

decsoft

Hello Amin,

Please, take a look at the External Javascript help tutorial (included also in AB) and, please, go head if you have any further question.



Amin Mousavi
but If the function has arguments, how to give it an argument? Tanks

decsoft

Hello Amin,

Like any other JS function, if we AB function expect arguments, we can send to it in the usual way:

In the above sample we call to an AB "MyFunc" function and sent to it two arguments, "Hello" (a string) and "123" (a number).


Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.

This website uses some useful cookies to store your preferences.

I agree. Hide this note. Give me more information.