Académique Documents
Professionnel Documents
Culture Documents
com
1. First you must get QR-Code in <file>.jar, I use QR Code demo from http://www.idautomation.com/barcode-
fonts/2d/qr-code/download.html. Klik Demo Now, to download it.
2. After Download it (IDAQRCode.jar ), you must register it to registry editor (regedit) if you want to test this
qrcode in local output Report Builder. In Registry Editor , Edit -> Find -> 'REPORTS_CLASSPATH'
Page 1 of 10
hengkywiriawan@gmail.com
3. Open Report Builder, file .rdf that you want to use QR-Code. Go to Tab Program -> Import Java Classes. Find
idautomation-qrcode. And import QRCode and QRCodeBarcodeEncoder -> Import .
Page 2 of 10
hengkywiriawan@gmail.com
Page 3 of 10
hengkywiriawan@gmail.com
4. You can see the import java classes in program units. And then we've to create Column Formula example
CF_QR_CODE that using file format as Image.
Page 4 of 10
hengkywiriawan@gmail.com
Page 5 of 10
hengkywiriawan@gmail.com
Function
ImageFile VarChar2(250);
QRcodeObject ORA_JAVA.JOBJECT;
QRcodeEncoderObject ORA_JAVA.JOBJECT;
begin
/*On Solaris Unix, use the following code to create the temp file:
ImageFile:= srw.create_temporary_filename() || '.jpg'; */
imageFile := srw.create_temporary_filename();
QRcodeObject := QRCode.new();
QRCode.setDataToEncode(QRcodeObject, to_char(:invoice_num));
QRCode.setAutoSize(QRcodeObject,true);
--QRCode.setImageSize(BarcodeObject,50,50);
Page 6 of 10
hengkywiriawan@gmail.com
/*If, for some reason, the barcode is not created, return null
otherwise, return the name of the barcode image jpeg that was
created */
if ORA_JAVA.IS_NULL(QRcodeEncoderObject) then
return(NULL);
else
return(ImageFile);
end if;
end;
Page 7 of 10
hengkywiriawan@gmail.com
Page 8 of 10
hengkywiriawan@gmail.com
Now we want to Register this Report with QRCode to server Oracle EBS. you must register file IDAQRCode.jar to
server.
Register the path in reports.sh. You can use command linux find . -name reports.sh to get the path directory
example : /u02/appluat/UAT/fs1/EBSapps/10.1.2/bin
INSERT mode : press key 'i' esc to exit from insert mode
https://www.cs.colostate.edu/helpdocs/vi.html
Page 9 of 10
hengkywiriawan@gmail.com
REPORTS_CLASSPATH=$ORACLE_HOME/reports/jlib/rwbuilder.jar:$ORACLE_HOME/reports/jlib/rwrun.jar:$ORACL
E_HOME/jlib/zrclient.jar:$ORACLE_HOME/j2ee/home/oc4j.jar:$ORACLE_HOME/j2ee/home/lib/ojsp.jar:$ORACLE_
HOME/reports/jlib/IDAQRCode.jar; export REPORTS_CLASSPATH
Good Luck
Page 10 of 10