Implement Java Class into Report Builder
Hi, I have problems implementing own java classes into the Report Builder. OK, let say I am running a simple report using STUDENT_ID and STUDENT_NAME. What I wanted to do is to concatenate a string "XXXX" to one of the records in STUDENT_NAME (e.g. STUDENT_NAME = 'Mary').
The Java class that I wrote has a static method:
public class MyAppend
public static String myMethod(String s)
s = s +"XXXX";
return s;
I also wrote a Formula Column in Report Builder called "TestFormula":
function TestFormula return varChar2 is
StuName varchar2(40);
myStr varchar2(40);
begin
select STUMST.STU_NAME
into StuName
from STUMST
where STUMST.STU_NAME= 'Mary';
->myStr := myappend.myMethod(myPackage.aobj, StuName);
return myStr;
end;
The error message I get when I compile this Formula Column PL/SQL is (with '->' pointing to the line):
Wrong number or types of arguments in call to 'MYMETHOD'
How do I correct this error?
Thank you.
Joey
Thanks Navneet. Actually I am new to PL/SQL programming. I have another problem here. I would like to list all the records of the STUDENT_NAME. How would I go about it using PL/SQL? This is the Formula Column I have written but it only shows me 1 record:
function TestFormula return varChar2 is
StuName varchar2(40);
cursor c1 is
select all stumst.stu_name
from stumst;
begin
LOOP
open c1;
fetch c1 into stuName;
stuName := myappend.myMethod(stuname);
return stuName;
EXIT WHEN c1%NOTFOUND;
end loop;
end;
By the way, can you please give me any useful sites for reference to the PL/SQL?
Thank you.
Joey
Similar Messages
-
Implement Java Classes to Report Builder
Hi, I have problems implementing own java classes into the Report Builder. OK, let say I am running a simple report using STUDENT_ID and STUDENT_NAME. What I wanted to do is to concatenate a string "XXXX" to one of the records in STUDENT_NAME (e.g. STUDENT_NAME = 'Mary').
The Java class that I wrote has a static method:
public class MyAppend
public static String myMethod(String s)
s = s +"XXXX";
return s;
I also wrote a Formula Column in Report Builder called "TestFormula":
function TestFormula return varChar2 is
StuName varchar2(40);
myStr varchar2(40);
begin
select STUMST.STU_NAME
into StuName
from STUMST
where STUMST.STU_NAME= 'Mary';
->myStr := myappend.myMethod(myPackage.aobj, StuName);
return myStr;
end;
The error message I get when I compile this Formula Column PL/SQL is (with '->' pointing to the line):
Wrong number or types of arguments in call to 'MYMETHOD'
How do I correct this error?
Thank you.
JoeyThanks Navneet. Actually I am new to PL/SQL programming. I have another problem here. I would like to list all the records of the STUDENT_NAME. How would I go about it using PL/SQL? This is the Formula Column I have written but it only shows me 1 record:
function TestFormula return varChar2 is
StuName varchar2(40);
cursor c1 is
select all stumst.stu_name
from stumst;
begin
LOOP
open c1;
fetch c1 into stuName;
stuName := myappend.myMethod(stuname);
return stuName;
EXIT WHEN c1%NOTFOUND;
end loop;
end;
By the way, can you please give me any useful sites for reference to the PL/SQL?
Thank you.
Joey -
How to import java Classes in report Builder 10g
How to import java Classes in report Builder 10g .....
ArshadHello,
To import the Java classes:
Add your jar in the REPORTS_CLASSPATH
Launch Reports Builder.
Note:
You must launch Reports Builder now so that the new REPORTS_CLASSPATH is used.
Choose Program > Import Java Classes to display the Import Java Classes dialog box.
Regards -
How to import java Classes in report Builder
Hi, I want to import classes from a jar file into Report Builder (10 g). I'm not able to find my JAR in -- Program --> Import Java Classes option.
I have set the classpath pointing to my JAR.Hello,
To import the Java classes:
Add your jar in the REPORTS_CLASSPATH
Launch Reports Builder.
Note:
You must launch Reports Builder now so that the new REPORTS_CLASSPATH is used.
Choose Program > Import Java Classes to display the Import Java Classes dialog box.
Regards -
To Unable to Import Customize Java classes in Report Builder 10g
Hi,
In Report Builder 10g , I am trying to load image from Remote server
URL:"http://imagecache5.art.com/p/LRG/15/1544/1ABDD00Z/muhammad-ali-vs-sonny-liston.jpg"
Steps did in Report Builder 10g
1.In Report Builder Created a Formula column with
Datatype : Character
Read from File: Yes
File Format: Image
In Formula columns trying to Unable to Import Customize Java classes.
To read methods from Java classes.
Please help on this.
RangaHello,
To import the Java classes:
Add your jar in the REPORTS_CLASSPATH
Launch Reports Builder.
Note:
You must launch Reports Builder now so that the new REPORTS_CLASSPATH is used.
Choose Program > Import Java Classes to display the Import Java Classes dialog box.
Regards -
hi i,m a beginnner
how can i run my own java class into a JSP file?
please help me!
thanksIf you understand the OO concepts and wrote the Java class right, then all you need to do is something like:YourJavaClass yourJavaClass = new YourJavaClass();
yourJavaClass.doSomething();After all I rather recommend to use servlets for business logic instead of JSP (read: scriptlets). -
Compiling java classes into dll
Hi,
Just trying to find out is there anyway I can compile the java classes into dll?
If I am to use JNI and C++, will the dll compiled be able to work well in a platform that does not have JVM?
Thank you.Hi,
Just trying to find out is there anyway I can
an compile the java classes into dll?
No, but you can start the jvm and run your main class from a dll using jni. And, if you do that, you'll of course need a JVM on the client that'll be running your code. -
Ignore some fields while saving a Java class into XML
Hi!
I've seen in this forum that there is an easy way of saving Java classes to XML files using Castor. I want to save some Java classes into XML, but not all the fields of the class. For example, I want to ignore all lists. Is there any easy way to do something like this:
class Java2XML{
public static void makeXML(Object object)
for all fields in object
if field extends List, ignore
else, include field in XML
}Thanks in advance!You can add a managed bean by:
- manually adding a definition in the faces config source tab.
- creating a bean in the overview tab of the faces-config editor.
So yes, you can edit the faces-config manually.
I hope this answer your question,
Regards,
Koen Verhulst -
Changing Java class into Java Bean
Can anybody tell me how to change a Java class into simple Java Bean.I dont need any visual interface of Java Bean.I simply want to turn my Java class into Java Bean.
You can use almost any class as a java bean.
To be a bean it must
1 - Have a constructor which takes no arguments (so it can be instantiated)
2 - For properties/attributes which you want to have readable/writable, provide get / set methods of the appropriate type.
Thats it. -
Load java class into the database 10g
Hi ,
We have a program which creates pdf files by using bi publisher.for this program we r using some java package to create a directory in unix whenever invoiceprint program runs.
Now i need to load this class into database,so how can i load this class into database.
I got some samples and docs from google but i was confused with those wether i should load from Oracle/applmgr user.
So Could any one please tell me how can i load java class into oracle database.
I am verymuch thankful for your kind help.Its an emergency issue for me.
Thanks,
YMRHi,
http://www.oracle-training.cc/teas_elite_util9.htm
SS -
Fetching Values From JAVA classes into ABAP report
Hi Experts,
I have a requirement, in which I need to fetch Java Roles/Groups from the portal to a ABAP report, for specific users. The roles inside of our project are not always in sync with the central system.
I could not find any link with talks about this. Could anybody guide me on how to proceed?
Regards,
TrishnaI have written a report which takes users and specific roles as the input. Eg, userID :12345 and role/profile :SAP_ALL, SAP_ADMIN..etc in a table. and gives back if the user 12345 has SAP_ALL or not.
Now I have used RFCs to fetch all the roles for the user from different SAP systems which i further compare .
What I am unable to do is fetch the portal roles .
PROBLEM : The portal roles also exist in the central system, but might not be always consistent since they get manually updated in the central system. Hence I want to directly fetch the data from the JAVA Portal.
WHAT I KNOW : I need to write a JAVA class in NW developer studio which will take the user as the input and give me all the roles/profiles for the same user as output.
How do I further pass the values to and from the Java class to my ABAP report?
I know that I need to use the UME in some way to have this work for me. But since i do not expertize in java I need guidance/steps as to how to proceed.
Regards
Trishna -
How to add a new font into Report Builder and Oracle Forms/Reports Server?
Hi,
I've searched the forum and can't find this being discussed.
My developers run Report Builder 10.1.2.0.2 on their XP laptops.
Their reports run (in production) on Oracle Forms/Reports Server 10.1.2.0.2.
This server runs on MS Windows 2003, SP2.
They've got a client who wants reports using the "Garamond Western" font.
So....how do I get this font onto the developer's Report Builder laptops, and onto the Oracle Forms/Reports Server?
I've moved various 'Garamond' fonts into C:\WINDOWS\FONTS on both the laptops and the server, but neither seem to recognize it.
Thanks for your help.Thanks.
This answers 1/2 of my question.
The developer can now use Report Builder on his laptop, with the new fonts.
But when he moves this new Report to the Oracle Application Server/Forms-Reports Server, it fails to use the new fonts.
The Oracle App Server/Forms-Report Server is Version 10.1.2.0.2. It runs on MS Windows 2003, SP2.
I have installed the exact same fonts on this server, into C:\WINDOWS\Fonts.
I have used REGEDIT to change REPORTS_PATH....and placed C:\WINDOWS\Fonts; as the first value in this field.
I have then stopped and restarted the Forms-Reports Server. -
Importing a Java class into a servlet...?
Hi guys..!
I have a java class that I would like to import or use in my servlet class....does any of you knows how to do that...?? and in which directory should I put the java class..??
Any help will be appreciated...
Thanks,Same way you would import any other class into any other class. With an "import" statement. There is nothing special about servlets in this case, and there is nothing special about the fact that the class was written by you. The only requirement is that imported classes must be in a package.
-
Error while importing java class into oracle forms 10g
Hi
I have generated a web service client using jdeveloper 10g. It consists of complex type methods. I am trying to import the class files using java importer in oracle form 10g. I am able import all of them successfully except one. That one is the main method. Please see the error and suggest me how to overcome this error.
Exception occurred: java.lang.NoClassDefFoundError: oracle/jdeveloper/webservices/runtime/WrappedDocLiteralStub
Thanks in advanceDo you see oracle/jdeveloper listed in "Import Java Classes" when you try to import?
If not, make sure you add C:\DevSuiteHome_1\jdev\lib\jdev.jar to FORMS_BUILDER_CLASSPATH in registry
Also excetion indicates: oracle/jdeveloper/webservices/runtime/WrappedDocLiteralStub
If you typing it - type: oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub -
Importing java classes into jsp page
I'm trying to import java classes inside my jsp page, while doing that i am getting compilation error "package uma.natarajan.javaclasses" not found. I don't know where to copy the java files. i'm keeping my jsp files under public_html folder
Hi uma,
create uma\natarajan\javaclasses under weblogic_home\myserver and copy java
classes(u want to import) to uma\natarajan\javaclasses and then u try.
Concept is the java classes u import should be present in a classpath. Hope
this may help u,
Arun,
[email protected]
"uma natarajan" <[email protected]> wrote in message
news:3a490bcb$[email protected]..
> I'm trying to import java classes inside my jsp page, while doing that i
am getting compilation error "package uma.natarajan.javaclasses" not found.
I don't know where to copy the java files. i'm keeping my jsp files under
public_html folder
Maybe you are looking for
-
I am trying to move my iTunes library from old XP PC to Windows 7 PC, using an external hard drive. Using tutorial and signed in as administrator. Trying to consolidate my library and receive error message " Copying files fail. The file name was in
-
Not able to see all the SAP tables from CR 2008
Hi All, 1)I am not able to see all the SAP database tables(DEV server) from Database expert menu in CR 2008. Only tables those start with alphabet letters upto A & B are visible. I checked the database connection>right click>options> found no filters
-
this feature works great = to select next layer down/up - option + [ or ] BUT can you do the below. 1 - is there a way to make this work when the layers are inside a layer folder? 2 - is there a way to make this work if I want to keep another layer
-
My regular mail won't work in IOS5
Yesterday I update my iPhone. No problems, but now. I can't get my regulaur mail on my phone. I don't need a @me or whatever. I just need my own e-mail on the phone. When I check the settings everything is still there. But when I open the mail app on
-
Stock Transfer from Plant to plant ..Same company code, No FI impact
Dear All, I wanted to transfer materail from one plant to other, without any financial impact. Please suggest me a method. I am assuming to use T code MB1B, and movement type 301. please let me know, is this right ? Thanks in advance regards venkat