Hi Smith,
Thanks for the reply. It helped. But now I am facing 2 problems:
1. I created a new script object and called it
b myFunctions
. Inside the script, I added the following function:
b function fncHelloWorld()
b {
b xfa.host.messageBox("Hello World!");
b }
I am calling the function from a button click using the script below but nothing is happenning.
b myFunctions.fncHelloWorld();
Even the method name
b fncHelloWorld
is not appearing in the (intellisence) list of methods/properties after I type "
b test.
". Any clue?
2. I created another new script object and called it
b sayHi
. Inside that script, I placed the Java script:
b xfa.host.messageBox("Hi");
I am calling it from a button click using the following script:
b xfa.host.messageBox("Before calling method...");
b sayHi();
b xfa.host.messageBox("After calling method...");
The first message box "Before calling method", and the message box "Hi" are shown, which means the function is being called. However, the last message "After calling method..." is not shown. In fact, anyother script after calling the function is not working. Moreover, I need to create functions like in the first scenario because I need functions that takes parameters.
Your help is highly appreciated.