Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Not able invoke java function from the java script
kmurthy7
I am new bie in this. I am trying to invoke a java function from the brit script. It is working fine if my java function has only one parameter. But its not working if the java function has more than one parameter. Can some one tell me what is the problem and how can i invoke the java function from script with more than one parameter.
the following is the sample code i am using.
package com;
public class Test {
public ArrayList history(String name) {
// process data and reurn array list object
}
public ArrayList abc(String name1,String name2) {
// process data and reurn array list object
}
}
---- BIRT scripting code
test = new Package.com.Test();
restult1 = test.history("abc"); //This is working
restult2 = test.abc("ag","adg");//this is not working. This is giving scripting error saying the the method abc not found.
Find more posts tagged with
Comments
mnutty
You probably don't have the most current code in place.
RKoppinen1
public ArrayList abc(String name1,String name2) {
// process data and reurn array list object
}
may be your code problem i.e abc method inside logic.
for test:
copy history meyhod logic code to abc method and test.