Calling a function in OAF page
Hi Frnds,
Iam trying to call a function in oaf page but somehow its not working , can u please identify mistake in my code .
the below is CO code:
public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
super.processRequest(oapagecontext, oawebbean);
OAApplicationModule am=oapagecontext.getApplicationModule(oawebbean);
OAViewObject vo = (OAViewObject)am.findViewObject("CandidateApplicantDetailsVO");
String Nationality =null;
CandidateApplicantDetailsVORowImpl row =null;
int i=0;
if(vo!=null)
int cnt= vo.getRowCount();
oapagecontext.writeDiagnostics(this, "row count is:"+cnt,1);
if (cnt > 0)
RowSetIterator rs=vo.createRowSetIterator("rs");
if(rs!=null)
while(rs.hasNext())
row=(CandidateApplicantDetailsVORowImpl)rs.next();
if(row!=null)
Nationality = row.getNationality();
oapagecontext.writeDiagnostics(this, "Nationality is :"+Nationality,1);
String outputVal;
try
OADBTransaction txn = am.getOADBTransaction();
CallableStatement cs = txn.createCallableStatement("BEGIN :1:= hr_general.decode_lookup(:2,:3);END;",2);
oapagecontext.writeDiagnostics(this, "Inside the try block",1);
System.out.println("3");
cs.setString(2,Nationality);
cs.setString(3,"NATIONALITY");
cs.registerOutParameter(1,Types.VARCHAR);
System.out.println("4");
cs.execute();
System.out.println("executed");
outputVal=cs.getString(1);
oapagecontext.writeDiagnostics(this,"The Nationality Value is:"+outputVal,2);
cs.close();
//txn.commit();
catch(Exception e)
//cs.close();
System.out.println("6");
throw new OAException(e.getMessage());
} // row loop
} // while
} //rowset loop
}// count loop
}//viewobj loop
} // End of PR
public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
super.processFormRequest(oapagecontext, oawebbean);
when i run this page , the controller was going inside the try block but the Output was not getting. can somebody figure out where iam missing.
Thanks to all in advance
have a good day :)
GK.
Hi Frnds,
I got the problem,
Iam trying to send a Default value NATIONALITY in setString
cs.setString(2,Nationality);
cs.setString(3,"NATIONALITY");
I have changed the lines to
String lookup_type="NATIONALITY"
cs.setString(2,Nationality);
cs.setString(3,"Lookup_type);
now i got the o/p, hope this may help others
Similar Messages
-
UTIL-PARAM STRING ERROR when calling a form from OAF Page
Dear Experts,
Can you please suggest, as we are getting the below error when we are calling a form from OAF page.
"UTIL-PARAM STRING ERROR"
We have created a button to call the same and the syntax used is as below.
form:PA:OLNG_MOC_PROJECTS_ENGINEER:STANDARD:PA_PAXCARVW:PROJECT_NUMBER={@ProjectNumber}
Thanks in advance,
SatishHi all,
I have a Personalized Button, my button call a customized form (with a parameter named TAINV_PARAM). Function of customized Form is TAINV_FORM
In OAF page, I have a text, it's values is 'TAINV', it's ID is VALUES_ATTRIBUTE (you can show source code in browser).
In Destination URL of Personalized Button, fill code to call Customized Form:
*javascript: var v_get_value=document.GetElementById(VALUES_ATTRIBUTE).innerHTML;openWindow(top, 'OA.jsp?OAFunc=TAINV_FORM&TAINV_PARAM'+v_get_value,null, {width:750, height:550},false, 'dialog', null);void(0);*
Regards,
TAINV -
Getting the error while calling the report from oaf page
Dear all
when i am calling the report from oaf page
if (pageContext.getParameter("PrintPDF") != null)
DataObject sessionDictionary =
(DataObject)pageContext.getNamedDataObject("_SessionParameters");
HttpServletResponse response =
(HttpServletResponse)sessionDictionary.selectValue("HttpServletResponse");
try
ServletOutputStream os = response.getOutputStream();
// Set the Output Report File Name and Content Type
String contentDisposition = "attachment;filename=EmpReport.pdf";
response.setHeader("Content-Disposition", contentDisposition);
response.setContentType("application/pdf");
// Get the Data XML File as the XMLNode
XMLNode xmlNode = (XMLNode)am.invokeMethod("getEmpDataXML");
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
xmlNode.print(outputStream);
ByteArrayInputStream inputStream =
new ByteArrayInputStream(outputStream.toByteArray());
ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
//Generate the PDF Report.
TemplateHelper.processTemplate(((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
"XXCRM", "XXCRM_EMP",
((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
inputStream,
TemplateHelper.OUTPUT_TYPE_PDF, null,
pdfFile);
// Write the PDF Report to the HttpServletResponse object and flush.
byte[] b = pdfFile.toByteArray();
response.setContentLength(b.length);
os.write(b, 0, b.length);
os.flush();
os.close();
} catch (Exception e)
response.setContentType("text/html");
throw new OAException(e.getMessage(), OAException.ERROR);
pageContext.setDocumentRendered(false);
i am getting the error java.classcastexception at this line
DataObject sessionDictionary =
(DataObject)pageContext.getNamedDataObject("_SessionParameters");
regards
Sreekanthcheck if you have import oracle.cabo.ui.data.DataObject; in your import statement.
--Prasanna -
Out put file is not genrated when calling xml reports from OAF page
Dear all
i am calling xml reports from OAF page
the out put file is not generated
i am writing this code
public int tradingrequest(String quoid, String costoder,int orgid)
try
OADBTransaction tx = (OADBTransaction)getOADBTransaction();
java.sql.Connection pConncection = tx.getJdbcConnection();
ConcurrentRequest cr = new ConcurrentRequest(pConncection);
String applnName =
"XXCRM"; //Application that contains the concurrent program
String cpName = "XXCRM_COSTSHEET"; //Concurrent program short name
String cpDesc =
"Trading Costsheet Report XXCRM"; // concurrent Program description
Number orgid1=new Number(orgid);
// Pass the Arguments using vector
Vector cpArgs = new Vector();
cpArgs.addElement(quoid);
cpArgs.addElement(costoder);
cpArgs.addElement(orgid1.toString());
// Calling the Concurrent Program
int requestId =
cr.submitRequest(applnName, cpName, cpDesc, null, false, cpArgs);
tx.commit();
System.out.println("Request ID is " + requestId);
return requestId;
} catch (RequestSubmissionException e)
OAException oe = new OAException(e.getMessage());
oe.setApplicationModule(this);
throw oe;
in controller i am writing this code
OAMessageStyledTextBean y =
(OAMessageStyledTextBean)webBean.findChildRecursive("quotationid");
OAFormValueBean z =
(OAFormValueBean)webBean.findChildRecursive("costorder");
String quoid = y.getValue(pageContext).toString();
String costorder = z.getValue(pageContext).toString();
System.out.println("The quotation id and costing order are....." + quoid +
" " + costorder);
/*if click on run report button to run the report*/
if ("Viewreport".equals(pageContext.getParameter(EVENT_PARAM)))
if (tsflag.equals("Y"))
int requestid = am.servicerequest(quoid, costorder, orgid);
String url =
"OA.jsp?akRegionCode=FNDCPREQUESTVIEWPAGE&akRegionApplicationId=0&retainAM=Y&addBreadCrumb=Y&REQUESTID=" +
requestid;
pageContext.setForwardURL(url, null,
OAWebBeanConstants.KEEP_MENU_CONTEXT, null,
null, true,
OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
OAWebBeanConstants.IGNORE_MESSAGES);
when i call the report from oaf page the request id is coming
when i click on view output i am getting this message
Error
The concurrent request 7335031 did not create an output file.
WHEN I GOTO FIND REQUESTS PAGE QUERY THIS REQUEST ID I AM GETTING THE OUTPUT IN XM FILE
Regards
Sreekanthjava.io.FileNotFoundException: \..\..\..\xdoAqdFFZfuuJ051010_0628487460.fo (The system cannot find the path specified)
MY CO code
if("GenerateReport".equals(event))
// Get the HttpServletResponse object from the PageContext. The report output is written to HttpServletResponse.
DataObject sessionDictionary = (DataObject)pageContext.getNamedDataObject("_SessionParameters");
HttpServletResponse response = (HttpServletResponse)sessionDictionary.selectValue(null,"HttpServletResponse");
try {
// Hashtable hashtable = new Hashtable(1);
// hashtable.put("TruckBookingRefNum",trucknum);
// System.out.println("test"+trucknum);
ServletOutputStream os = response.getOutputStream();
// Set the Output Report File Name and Content Type
String contentDisposition = "attachment;filename=LF Cargo Summary Report.htm";
response.setHeader("Content-Disposition",contentDisposition);
response.setContentType("application/HTML");
// Get the Data XML File as the XMLNode
XMLNode xmlNode = (XMLNode) am.invokeMethod("getTestDataXML");
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
xmlNode.print(outputStream);
ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
System.out.println(" ByteArrayInputStream.ByteArrayOutputStream"+pdfFile+inputStream);
//Generate the PDF Report.
TemplateHelper.processTemplate(
((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
"LFCUST",
"XXLFCARSUM_TARGET",
"English",//((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
"US",//((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
inputStream,
TemplateHelper.OUTPUT_TYPE_HTML,
null,
pdfFile);
// hashtable);
System.out.println(" TemplateHelper");
// Write the PDF Report to the HttpServletResponse object and flush.
byte[] b = pdfFile.toByteArray();
System.out.println(" byte"+b);
response.setContentLength(b.length);
os.write(b, 0, b.length);
os.flush();
os.close();
pdfFile.flush();
pdfFile.close();
catch(Exception e)
System.out.println(" inside catch");
response.setContentType("text/html");
throw new OAException(e.getMessage(), OAException.ERROR);
pageContext.setDocumentRendered(true);
Edited by: user9367919 on May 13, 2010 10:31 AM -
One of my client is currently trying the following based on the instructions on page 331 of the "Oracle Application Framework Developer’s Guide Release 11.5.10 RUP4 July 2006".
To open a D2K form from an OA Framework page ->
Trying to pass a parameter to the form. When they use a hardcode value like:
form:CSS:CUST_SUPPORT_US1_USER_ERGO:STANDARD:XX_XXTRFRMA:P_INCIDENT_ID=162498
The form opens correctly and there are no errors. But when the client passes a value from a field on the OAF page like:
form:CSS:CUST_SUPPORT_US1_USER_ERGO:STANDARD:XX_XXTRFRMA:P_INCIDENT_ID={@IncidentId}
They get the UTIL-PARAM STRING ERROR
Forms currently being used is 6.0.8.28.0 with PATCH 8888184Hi all,
I have a Personalized Button, my button call a customized form (with a parameter named TAINV_PARAM). Function of customized Form is TAINV_FORM
In OAF page, I have a text, it's values is 'TAINV', it's ID is VALUES_ATTRIBUTE (you can show source code in browser).
In Destination URL of Personalized Button, fill code to call Customized Form:
*javascript: var v_get_value=document.GetElementById(VALUES_ATTRIBUTE).innerHTML;openWindow(top, 'OA.jsp?OAFunc=TAINV_FORM&TAINV_PARAM'+v_get_value,null, {width:750, height:550},false, 'dialog', null);void(0);*
Regards,
TAINV -
Error while calling xml report from oaf page
hi all
i am calling xml(pdf) report from oaf page the back end jdeveloper console this error message is coming
when i am caling report empty out put is coming
any one help me regarding this issue
123109_073025194][][EXCEPTION] [DEBUG] ------- Preferences defined PreferenceStore -------
[123109_073025194][][EXCEPTION] [DEBUG] ------- Environment variables stored in EnvironmentStore -------
[123109_073025194][][EXCEPTION] [DEBUG] [ICX_COOKIE_NAME]:[DEV]
[123109_073025194][][EXCEPTION] [DEBUG] [JDBC:processEscapes]:[true]
[123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.LOW]:[-1]
[123109_073025194][][EXCEPTION] [DEBUG] [APPL_SERVER_ID]:[07910A4CBEF04DE395C782218C44D60710897045366671209174079915214149]
[123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_STMT_CACHE_SIZE]:[100]
[123109_073025194][][EXCEPTION] [DEBUG] [NLS_DATE_LANGUAGE]:[AMERICAN]
[123109_073025194][][EXCEPTION] [DEBUG] [ICX_SESSION_COOKIE_VALUE]:[iDQBc8141owULp9woYLCe7wm:S]
[123109_073025194][][EXCEPTION] [DEBUG] [ICX_TRANSACTION_ID]:[-1]
[123109_073025194][][EXCEPTION] [DEBUG] [NLS_DATE_FORMAT]:[DD-MON-RRRR]
[123109_073025194][][EXCEPTION] [DEBUG] [RESP_APPL_ID]:[20023]
[123109_073025194][][EXCEPTION] [DEBUG] [LOGIN_ID]:[113493]
[123109_073025194][][EXCEPTION] [DEBUG] [DB_PORT]:[1521]
[123109_073025194][][EXCEPTION] [DEBUG] [USER_ID]:[1251]
[123109_073025194][][EXCEPTION] [DEBUG] [DISPLAY_LANGUAGE]:[US]
[123109_073025194][][EXCEPTION] [DEBUG] [APPLICATION_ID]:[crm.oracle.apps.xxcrm.crmmgmt.quotationmgmt.server.xxcrmquotationmgmtAM]
[123109_073025194][][EXCEPTION] [DEBUG] [NLS_NUMERIC_CHARACTERS]:[.,]
[123109_073025194][][EXCEPTION] [DEBUG] [NLS_LANGUAGE]:[AMERICAN]
[123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]:[1]
[123109_073025194][][EXCEPTION] [DEBUG] [GUEST_USER_PWD]:[GUEST/ORACLE]
[123109_073025194][][EXCEPTION] [DEBUG] [RESP_ID]:[50722]
[123109_073025194][][EXCEPTION] [DEBUG] [NLS_SORT]:[BINARY]
[123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_PLSQL_RESET]:[false]
[123109_073025194][][EXCEPTION] [DEBUG] [FND_PROFILE_VALIDATION_ENABLED]:[null]
[123109_073025194][][EXCEPTION] [DEBUG] [FUNCTION_ID]:[-1]
[123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_SIZE]:[5]
[123109_073025194][][EXCEPTION] [DEBUG] [ICX_PV_SESSION_MODE]:[115P]
[123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_CONTEXT_CHECK]:[true]
[123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_USABLE_CHECK]:[false]
[123109_073025194][][EXCEPTION] [DEBUG] [NLS_LANG]:[null]
[123109_073025194][][EXCEPTION] [DEBUG] [APPS_JDBC_URL]:[jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=data02.utsco.com)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=DEV)))]
[123109_073025194][][EXCEPTION] [DEBUG] [FNDNAM]:[APPS]
[123109_073025194][][EXCEPTION] [DEBUG] [FND_PROXY_USER]:[null]
[123109_073025194][][EXCEPTION] [DEBUG] [TWO_TASK]:[DEV]
[123109_073025194][][EXCEPTION] [DEBUG] [APPS_JDBC_DRIVER_TYPE]:[THIN]
[123109_073025194][][EXCEPTION] [DEBUG] [DB_HOST]:[data02.utsco.com]
[123109_073025194][][EXCEPTION] [DEBUG] [DBC_FILE_PATH]:[C:\OAF\jdevhome\jdev\dbc_files\secure\DEV.dbc]
[123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.HIGH]:[-1]
[123109_073025194][][EXCEPTION] [DEBUG] [SECURITY_GROUP_ID]:[0]
[123109_073025194][][EXCEPTION] [DEBUG] [LANG_CODE]:[US]
[123109_073025194][][EXCEPTION] [DEBUG] [FND_MAX_JDBC_CONNECTIONS]:[500]
[123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_INTERVAL]:[300]
[123109_073025194][][EXCEPTION] [DEBUG] [USER_NAME]:[CRMUSER]
[123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]:[5]
[123109_073025194][][EXCEPTION] [DEBUG] [DB_NAME]:[DEV]
[123109_073025194][][EXCEPTION] [DEBUG] [NLS_CHARACTERSET]:[AL32UTF8]
[123109_073025194][][EXCEPTION] [DEBUG] [ORG_ID]:[82]
[123109_073025194][][EXCEPTION] [DEBUG] [DB_ID]:[DEV]
[123109_073025194][][EXCEPTION] [DEBUG] [GWYUID]:[APPLSYSPUB/PUB]
[123109_073025194][][EXCEPTION] [DEBUG] [NLS_TERRITORY]:[UNITED ARAB EMIRATES]
[123109_073025194][][EXCEPTION] [DEBUG] [ICX_SESSION_ID]:[848565270]
[123109_073025194][][EXCEPTION] [DEBUG] [JDBC:oracle.jdbc.maxCachedBufferSize]:[358400]
[123109_073025194][][EXCEPTION] [DEBUG] ------- Properties stored in Java System Properties -------
[123109_073025194][][EXCEPTION] [DEBUG] [java.vendor]:[Sun Microsystems Inc.]
[123109_073025194][][EXCEPTION] [DEBUG] [ajp.connection.listener.state]:[down]
[123109_073025194][][EXCEPTION] [DEBUG] [sun.management.compiler]:[HotSpot Client Compiler]
[123109_073025194][][EXCEPTION] [DEBUG] [oracle.j2ee.container.version]:[10.1.3.3.0]
[123109_073025194][][EXCEPTION] [DEBUG] [os.name]:[Windows XP]
[123109_073025194][][EXCEPTION] [DEBUG] [sun.boot.class.path]:[C:\OAF\jdevbin\jdk\jre\lib\rt.jar;C:\OAF\jdevbin\jdk\jre\lib\i18n.jar;C:\OAF\jdevbin\jdk\jre\lib\sunrsasign.jar;C:\OAF\jdevbin\jdk\jre\lib\jsse.jar;C:\OAF\jdevbin\jdk\jre\lib\jce.jar;C:\OAF\jdevbin\jdk\jre\lib\charsets.jar;C:\OAF\jdevbin\jdk\jre\classes]
[123109_073025194][][EXCEPTION] [DEBUG] [sun.desktop]:[windows]
[123109_073025194][][EXCEPTION] [DEBUG] [java.vm.specification.vendor]:[Sun Microsystems Inc.]
[123109_073025194][][EXCEPTION] [DEBUG] [java.runtime.version]:[1.5.0_05-b05]
[123109_073025194][][EXCEPTION] [DEBUG] [com.oracle.corba.ee.security.trusted.clients]:[*]
[123109_073025194][][EXCEPTION] [DEBUG] [oracle.security.jazn.config]:[C:\OAF\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config\jazn.xml]
[123109_073025194][][EXCEPTION] [DEBUG] [user.name]:[utsguest]
[123109_073025194][][EXCEPTION] [DEBUG] [user.language]:[en]
[123109_073025194][][EXCEPTION] [DEBUG] [java.naming.factory.initial]:[com.evermind.server.ApplicationInitialContextFactory]
[123109_073025194][][EXCEPTION] [DEBUG] [sun.boot.library.path]:[C:\OAF\jdevbin\jdk\jre\bin]
[123109_073025194][][EXCEPTION] [DEBUG] [oc4j.jms.usePersistenceLockFiles]:[false]
[123109_073025194][][EXCEPTION] [DEBUG] [java.version]:[1.5.0_05]
[123109_073025194][][EXCEPTION] [DEBUG] [java.util.logging.manager]:[oracle.classloader.util.ApplicationLogManager]
[123109_073025194][][EXCEPTION] [DEBUG] [user.timezone]:[GMT+04:00]
[123109_073025194][][EXCEPTION] [DEBUG] [java.net.preferIPv4Stack]:[true]
[123109_073025194][][EXCEPTION] [DEBUG] [sun.arch.data.model]:[32]
[123109_073025194][][EXCEPTION] [DEBUG] [javax.rmi.CORBA.UtilClass]:[com.sun.corba.ee.impl.javax.rmi.CORBA.Util]
[123109_073025194][][EXCEPTION] [DEBUG] [java.endorsed.dirs]:[C:\OAF\jdevbin\jdk\jre\lib\endorsed]
[123109_073025194][][EXCEPTION] [DEBUG] [sun.cpu.isalist]:[pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86]
[123109_073025194][][EXCEPTION] [DEBUG] [sun.jnu.encoding]:[Cp1252]
[123109_073025194][][EXCEPTION] [DEBUG] [file.encoding.pkg]:[sun.io]
[123109_073025194][][EXCEPTION] [DEBUG] [DBCFILE]:[C:\OAF\jdevhome\jdev\dbc_files\secure\DEV.dbc]
[123109_073025194][][EXCEPTION] [DEBUG] [file.separator]:[\]
[123109_073025194][][EXCEPTION] [DEBUG] [java.specification.name]:[Java Platform API Specification]
[123109_073025194][][EXCEPTION] [DEBUG] [java.class.version]:[49.0]
[123109_073025194][][EXCEPTION] [DEBUG] [user.country]:[US]
[123109_073025194][][EXCEPTION] [DEBUG] [java.home]:[C:\OAF\jdevbin\jdk\jre]
[123109_073025194][][EXCEPTION] [DEBUG] [java.vm.info]:[mixed mode]
[123109_073025194][][EXCEPTION] [DEBUG] [os.version]:[5.1]
[123109_073025194][][EXCEPTION] [DEBUG] [org.omg.CORBA.ORBSingletonClass]:[com.sun.corba.ee.impl.orb.ORBImpl]
[123109_073025194][][EXCEPTION] [DEBUG] [path.separator]:[;]
[123109_073025194][][EXCEPTION] [DEBUG] [java.vm.version]:[1.5.0_05-b05]
[123109_073025194][][EXCEPTION] [DEBUG] [user.variant]:[]
[123109_073025194][][EXCEPTION] [DEBUG] [java.protocol.handler.pkgs]:[oracle.apps.xdo.common.net.protocol|com.evermind.protocol]
[123109_073025194][][EXCEPTION] [DEBUG] [checkForUpdates]:[adminClientOnly]
[123109_073025194][][EXCEPTION] [DEBUG] [java.awt.printerjob]:[sun.awt.windows.WPrinterJob]
[123109_073025194][][EXCEPTION] [DEBUG] [RUN_FROM_JDEV]:[true]
[123109_073025194][][EXCEPTION] [DEBUG] [sun.io.unicode.encoding]:[UnicodeLittle]
[123109_073025194][][EXCEPTION] [DEBUG] [com.sun.jts.pi.INTEROP_MODE]:[false]
[123109_073025194][][EXCEPTION] [DEBUG] [awt.toolkit]:[sun.awt.windows.WToolkit]
[123109_073025194][][EXCEPTION] [DEBUG] [MetaObjectContext]:[oracle.adf.mds.jbo.JBODefManager]
[123109_073025194][][EXCEPTION] [DEBUG] [FND_TOP]:[C:\OAF\jdevhome\jdev\dbc_files\]
[123109_073025194][][EXCEPTION] [DEBUG] [oracle.j2ee.http.socket.timeout]:[500]
[123109_073025194][][EXCEPTION] [DEBUG] [com.oracle.corba.ee.security.ssl.port]:[5656]
[123109_073025194][][EXCEPTION] [DEBUG] [JRAD_ELEMENT_LIST_PATH]:[C:\OAF\jdevhome\jdev\myhtml\OA_HTML\jrad\]
[123109_073025194][][EXCEPTION] [DEBUG] [JTFDBCFILE]:[C:\OAF\jdevhome\jdev\dbc_files\secure\DEV.dbc]
[123109_073025194][][EXCEPTION] [DEBUG] [com.sun.CORBA.POA.ORBServerId]:[1000000]
[123109_073025194][][EXCEPTION] [DEBUG] [java.naming.factory.url.pkgs]:[oracle.oc4j.naming.url]
[123109_073025194][][EXCEPTION] [DEBUG] [user.home]:[C:\Documents and Settings\utsguest]
[123109_073025194][][EXCEPTION] [DEBUG] [java.specification.vendor]:[Sun Microsystems Inc.]
[123109_073025194][][EXCEPTION] [DEBUG] [oracle.home]:[C:\OAF\jdevbin]
[123109_073025194][][EXCEPTION] [DEBUG] [oracle.dms.sensors]:[5]
[123109_073025194][][EXCEPTION] [DEBUG] [java.library.path]:[C:\OAF\jdevbin\jdk\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\DevSuiteHome_1\jdk\jre\bin\classic;C:\DevSuiteHome_1\jdk\jre\bin;C:\DevSuiteHome_1\jdk\jre\bin\client;C:\DevSuiteHome_1\jlib;C:\DevSuiteHome_1\bin;C:\DevSuiteHome_1\jre\1.4.2\bin\client;C:\DevSuiteHome_1\jre\1.4.2\bin;C:\apps\product\11.1.0\client_1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\WINDOWS\system32\WindowsPowerShell\v1.0]
[123109_073025194][][EXCEPTION] [DEBUG] [java.vendor.url]:[http://java.sun.com/]
[123109_073025194][][EXCEPTION] [DEBUG] [XDO_TOP]:[E:\oracle\apps\apps_st\appl\xdo\12.0.0]
[123109_073025194][][EXCEPTION] [DEBUG] [javax.rmi.CORBA.StubClass]:[com.sun.corba.ee.impl.javax.rmi.CORBA.StubDelegateImpl]
[123109_073025194][][EXCEPTION] [DEBUG] [oracle.j2ee.dont.use.memory.archive]:[true]
[123109_073025194][][EXCEPTION] [DEBUG] [java.vm.vendor]:[Sun Microsystems Inc.]
[123109_073025194][][EXCEPTION] [DEBUG] [java.runtime.name]:[Java(TM) 2 Runtime Environment, Standard Edition]
[123109_073025194][][EXCEPTION] [DEBUG] [java.class.path]:[C:\OAF\jdevbin\jdk\jre\lib\rt.jar;C:\OAF\jdevbin\jdk\jre\lib\jsse.jar;C:\OAF\jdevbin\jdk\jre\lib\jce.jar;C:\OAF\jdevbin\jdk\jre\lib\charsets.jar;C:\OAF\jdevbin\jdk\jre\lib\ext\dnsns.jar;C:\OAF\jdevbin\jdk\jre\lib\ext\localedata.jar;C:\OAF\jdevbin\jdk\jre\lib\ext\sunjce_provider.jar;C:\OAF\jdevbin\jdk\jre\lib\ext\sunpkcs11.jar;C:\OAF\jdevbin\j2ee\home\oc4j-api.jar;C:\OAF\jdevbin\j2ee\home\lib\oc4j-unsupported-api.jar;C:\OAF\jdevbin\j2ee\home\lib\activation.jar;C:\OAF\jdevbin\j2ee\home\lib\mail.jar;C:\OAF\jdevbin\j2ee\home\lib\persistence.jar;C:\OAF\jdevbin\j2ee\home\lib\ejb30.jar;C:\OAF\jdevbin\j2ee\home\lib\ejb.jar;C:\OAF\jdevbin\j2ee\home\lib\javax77.jar;C:\OAF\jdevbin\j2ee\home\lib\javax88.jar;C:\OAF\jdevbin\j2ee\home\lib\servlet.jar;C:\OAF\jdevbin\j2ee\home\lib\jms.jar;C:\OAF\jdevbin\j2ee\home\lib\jta.jar;C:\OAF\jdevbin\j2ee\home\lib\jacc-api.jar;C:\OAF\jdevbin\j2ee\home\lib\connector.jar;C:\OAF\jdevbin\j2ee\home\lib\jmx_remote_api.jar;C:\OAF\jdevbin\j2ee\home\lib\jax-qname-namespace.jar;C:\OAF\jdevbin\webservices\lib\jaxr-api.jar;C:\OAF\jdevbin\webservices\lib\jaxrpc-api.jar;C:\OAF\jdevbin\webservices\lib\saaj-api.jar;C:\OAF\jdevbin\webservices\lib\jws-api.jar;C:\OAF\jdevbin\j2ee\home\lib\oc4j-internal.jar;C:\OAF\jdevbin\j2ee\home\lib\oems-jms-oc4j.jar;C:\OAF\jdevbin\j2ee\home\lib\oems-jms-client.jar;C:\OAF\jdevbin\j2ee\home\lib\oems-jms-server.jar;C:\OAF\jdevbin\j2ee\home\lib\oc4j-schemas.jar;C:\OAF\jdevbin\j2ee\home\lib\ojsp.jar;C:\OAF\jdevbin\j2ee\home\lib\oc4j_orb.jar;C:\OAF\jdevbin\j2ee\home\lib\iiop_support.jar;C:\OAF\jdevbin\j2ee\home\lib\orbbase.jar;C:\OAF\jdevbin\j2ee\home\iiop_gen_bin.jar;C:\OAF\jdevbin\j2ee\home\lib\jmxcluster.jar;C:\OAF\jdevbin\j2ee\home\jaccprovider.jar;C:\OAF\jdevbin\javavm\lib\jasper.zip;C:\OAF\jdevbin\j2ee\home\lib\adminclient.jar;C:\OAF\jdevbin\opmn\lib\optic.jar;C:\OAF\jdevbin\j2ee\home\jacc-spi.jar;C:\OAF\jdevbin\j2ee\home\jazncore.jar;C:\OAF\jdevbin\j2ee\home\jazn.jar;C:\OAF\jdevbin\jlib\ospnego.jar;C:\OAF\jdevbin\jlib\ldapjclnt10.jar;C:\OAF\jdevbin\webservices\lib\wsserver.jar;C:\OAF\jdevbin\webservices\lib\wsif.jar;C:\OAF\jdevbin\webservices\lib\orawsmetadata.jar;C:\OAF\jdevbin\webservices\lib\orajaxr.jar;C:\OAF\jdevbin\jlib\jssl-1_1.jar;C:\OAF\jdevbin\jlib\ojmisc.jar;C:\OAF\jdevbin\toplink\jlib\toplink-oc4j.jar;C:\OAF\jdevbin\diagnostics\lib\ojdl2.jar;C:\OAF\jdevbin\xqs\lib\xqs-api.jar;C:\OAF\jdevbin\xqs\lib\xds.jar;C:\OAF\jdevbin\jdev\lib\jdev-oc4j-embedded.jar;C:\OAF\jdevbin\j2ee\home\lib\pcl.jar;C:\OAF\jdevbin\j2ee\home\lib\ext;C:\OAF\jdevbin\lib\dmsapp.jar;C:\OAF\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\applications\admin_ejb.jar;C:\OAF\jdevbin\BC4J\lib\bc4jdomorcl.jar;C:\OAF\jdevbin\jlib\jsp-el-api.jar;C:\OAF\jdevbin\jlib\commons-el.jar;C:\OAF\jdevbin\jlib\oracle-el.jar;C:\OAF\jdevbin\jlib\jewt4.jar;C:\OAF\jdevbin\jdev\appslibrt\regexp.jar;C:\OAF\jdevbin\jdev\appslibrt\share.jar;C:\OAF\jdevbin\jdev\appslibrt\uix2.jar;C:\OAF\jdevbin\oaext\mds\lib\mdsrt.jar;C:\OAF\jdevbin\oaext\lib\mdsdt.jar;C:\OAF\jdevbin\oaext\lib\oamdsdt.jar;C:\OAF\jdevbin\javacache\lib\cache.jar;C:\OAF\jdevbin\lib\xschema.jar;C:\OAF\jdevbin\BC4J\lib;C:\OAF\jdevbin\BC4J\lib\adfbinding.jar;C:\OAF\jdevbin\BC4J\lib\adfcm.jar;C:\OAF\jdevbin\BC4J\lib\adfm.jar;C:\OAF\jdevbin\BC4J\lib\adfmweb.jar;C:\OAF\jdevbin\BC4J\lib\adfs-jazn.jar;C:\OAF\jdevbin\BC4J\lib\adfs.jar;C:\OAF\jdevbin\BC4J\lib\adfshare.jar;C:\OAF\jdevbin\BC4J\lib\bc4jct.jar;C:\OAF\jdevbin\BC4J\lib\bc4jctejb.jar;C:\OAF\jdevbin\BC4J\lib\bc4jimdomains.jar;C:\OAF\jdevbin\BC4J\lib\bc4jmt.jar;C:\OAF\jdevbin\BC4J\lib\bc4jmtejb.jar;C:\OAF\jdevbin\BC4J\lib\bc4jsyscat.jar;C:\OAF\jdevbin\BC4J\lib\collections.jar;C:\OAF\jdevbin\jdev\appslibrt\fwkjbo.zip;C:\OAF\jdevbin\jdev\appslibrt\fwk.zip;C:\OAF\jdevbin\jdev\appslibrt\atg.zip;C:\OAF\jdevbin\jdev\appslibrt\collections.zip;C:\OAF\jdevbin\jdev\appslibrt\iasjoc.zip;C:\OAF\jdevbin\jdev\appslibrt\rosettaRt.zip;C:\OAF\jdevbin\jdev\appslibrt\portalFlexComps.jar;C:\OAF\jdevbin\jdev\appslibrt\svc.zip;C:\OAF\jdevbin\jdev\appslibrt\pat.zip;C:\OAF\jdevbin\jdev\appslibrt\concurrent.zip;C:\OAF\jdevbin\jdev\appslibrt\oamMaintMode.zip;C:\OAF\jdevbin\jdev\appslibrt\fwkCabo.zip;C:\OAF\jdevbin\jdev\appslibrt\wsrp-container.jar;C:\OAF\jdevbin\jdev\appslibrt\pdkjava.jar;C:\OAF\jdevbin\jdev\appslibrt\ptlshare.jar;C:\OAF\jdevbin\jdev\appslibrt\xml.jar;C:\OAF\jdevbin\jdev\appslibrt\wsrp-container-types.jar;C:\OAF\jdevbin\jdev\appslibrt\jaxb-impl.jar;C:\OAF\jdevbin\jdev\appslibrt\jaxb-libs.jar;C:\OAF\jdevbin\jdev\appslibrt\jazn.jar;C:\OAF\jdevbin\jdev\appslibrt\jazncore.jar;C:\OAF\jdevbin\bibeans\lib\biamlocal.jar;C:\OAF\jdevbin\bibeans\lib\bipres.jar;C:\OAF\jdevbin\bibeans\lib\bicmn.jar;C:\OAF\jdevbin\bibeans\lib\bidatasvr.jar;C:\OAF\jdevbin\bibeans\lib\bidataclt.jar;C:\OAF\jdevbin\bibeans\lib\bidatacmn.jar;C:\OAF\jdevbin\bibeans\lib\biext.jar;C:\OAF\jdevbin\bibeans\lib\bicmn-nls.zip;C:\OAF\jdevbin\bibeans\lib\bipres-nls.zip;C:\OAF\jdevbin\bibeans\lib\bidata-nls.zip;C:\OAF\jdevbin\oaext\config\oac\oacfilter.jar;C:\OAF\jdevbin\j2ee\home\lib\scheduler.jar;C:\OAF\jdevbin\jdev\lib\jdev-rt.jar;C:\OAF\jdevbin\jdev\lib\ojc.jar;C:\OAF\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\connectors\datasources\datasources\datasources.jar;C:\OAF\jdevbin\diagnostics\lib\ojdl.jar;C:\OAF\jdevbin\lib\dms.jar;C:\OAF\jdevbin\jdbc\lib\ojdbc14dms.jar;C:\OAF\jdevbin\opmn\lib\ons.jar;C:\OAF\jdevbin\jdbc\lib\ocrs12.jar;C:\OAF\jdevbin\rdbms\jlib\aqapi.jar;C:\OAF\jdevbin\j2ee\home\lib\ojms-provider.jar;C:\OAF\jdevbin\jdbc\lib\orai18n.jar;C:\OAF\jdevbin\lib\xmlparserv2.jar;C:\OAF\jdevbin\lib\xml.jar;C:\OAF\jdevbin\lib\xmlmesg.jar;C:\OAF\jdevbin\lib\xsu12.jar;C:\OAF\jdevbin\lib\xquery.jar;C:\OAF\jdevbin\jlib\osdt_core.jar;C:\OAF\jdevbin\jlib\osdt_cert.jar;C:\OAF\jdevbin\jlib\osdt_xmlsec.jar;C:\OAF\jdevbin\jlib\osdt_wss.jar;C:\OAF\jdevbin\jlib\osdt_saml.jar;C:\OAF\jdevbin\jlib\ojpse.jar;C:\OAF\jdevbin\jlib\oraclepki.jar;C:\OAF\jdevbin\toplink\jlib\toplink.jar;C:\OAF\jdevbin\toplink\jlib\antlr.jar;C:\OAF\jdevbin\toplink\jlib\toplink-essentials.jar;C:\OAF\jdevbin\webservices\lib\wsclient.jar;C:\OAF\jdevbin\webservices\lib\orasaaj.jar;C:\OAF\jdevbin\webservices\lib\xsdlib.jar;C:\OAF\jdevbin\webservices\lib\mdds.jar;C:\OAF\jdevbin\webservices\lib\relaxngDatatype.jar;C:\OAF\jdevbin\webservices\lib\soap.jar;C:\OAF\jdevbin\sqlj\lib\runtime12.jar;C:\OAF\jdevbin\sqlj\lib\translator.jar;C:\OAF\jdevbin\webservices\lib\orawsdl.jar;C:\OAF\jdevbin\j2ee\home\applib;C:\OAF\jdevbin\j2ee\home\jsp\lib\taglib;C:\OAF\jdevbin\j2ee\home\jsp\lib\taglib\ojsputil.jar;C:\OAF\jdevbin\lib\dsv2.jar;C:\OAF\jdevbin\j2ee\home\lib\http_client.jar;C:\OAF\jdevbin\j2ee\home\lib\jgroups-core.jar;C:\OAF\jdevhome\jdev\myhtml\OA_HTML;C:\OAF\jdevhome\jdev\myclasses;C:\OAF\jdevbin\jlib\jdev-cm.jar;C:\OAF\jdevbin\BC4J\jlib\bc4jhtml.jar;C:\OAF\jdevbin\BC4J\jlib\datatags.jar;C:\OAF\jdevbin\BC4J\jlib\bc4juixtags.jar;C:\OAF\jdevbin\BC4J\jlib\graphtags.jar;C:\OAF\jdevbin\jdev\appslibrt\wsp.zip;C:\OAF\jdevbin\jdev\appslibrt\diagnostics.jar;C:\OAF\jdevbin\jdev\appslibrt\svctester.jar]
[123109_073025194][][EXCEPTION] [DEBUG] [oracle.j2ee.home]:[C:\OAF\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j]
[123109_073025194][][EXCEPTION] [DEBUG] [oracle.application.environment]:[development]
[123109_073025194][][EXCEPTION] [DEBUG] [java.vm.specification.name]:[Java Virtual Machine Specification]
[123109_073025194][][EXCEPTION] [DEBUG] [JRAD_XML_PATH]:[C:\OAF\jdevhome\jdev\myclasses\JRADXML;C:\OAF\jdevhome\jdev\myprojects;C:\OAF\jdevbin\jdev\oamdsxml\fwk]
[123109_073025194][][EXCEPTION] [DEBUG] [javax.rmi.CORBA.PortableRemoteObjectClass]:[com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject]
[123109_073025194][][EXCEPTION] [DEBUG] [org.omg.PortableInterceptor.ORBInitializerClass.oracle.oc4j.corba.iiop.server.IIOPInitializer]:[NO_VALUE]
[123109_073025194][][EXCEPTION] [DEBUG] [java.vm.specification.version]:[1.0]
[123109_073025194][][EXCEPTION] [DEBUG] [sun.cpu.endian]:[little]
[123109_073025194][][EXCEPTION] [DEBUG] [oracle.j2ee.container.name]:[Oracle Containers for J2EE 10g (10.1.3.3.0) ]
[123109_073025194][][EXCEPTION] [DEBUG] [sun.os.patch.level]:[Service Pack 3]
[123109_073025194][][EXCEPTION] [DEBUG] [java.io.tmpdir]:[C:\DOCUME~1\utsguest\LOCALS~1\Temp\]
[123109_073025194][][EXCEPTION] [DEBUG] [com.sun.jts.pi.CLIENT_POLICY_CHECKING]:[false]
[123109_073025194][][EXCEPTION] [DEBUG] [java.vendor.url.bug]:[http://java.sun.com/cgi-bin/bugreport.cgi]
[123109_073025194][][EXCEPTION] [DEBUG] [com.oracle.corba.ee.security.ssl.mutual.auth.port]:[5657]
[123109_073025194][][EXCEPTION] [DEBUG] [FND_JDBC_STMT_CACHE_SIZE]:[200]
[123109_073025194][][EXCEPTION] [DEBUG] [os.arch]:[x86]
[123109_073025194][][EXCEPTION] [DEBUG] [java.awt.graphicsenv]:[sun.awt.Win32GraphicsEnvironment]
[123109_073025194][][EXCEPTION] [DEBUG] [java.ext.dirs]:[C:\OAF\jdevbin\jdk\jre\lib\ext]
[123109_073025194][][EXCEPTION] [DEBUG] [user.dir]:[C:\OAF\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config]
[123109_073025194][][EXCEPTION] [DEBUG] [CACHENODBINIT]:[true]
[123109_073025194][][EXCEPTION] [DEBUG] [line.separator]:[
[123109_073025194][][EXCEPTION] [DEBUG] [java.vm.name]:[Java HotSpot(TM) Client VM]
[123109_073025194][][EXCEPTION] [DEBUG] [com.sun.CORBA.connection.ORBSocketFactoryClass]:[oracle.oc4j.corba.iiop.IIOPSSLSocketFactory]
[123109_073025194][][EXCEPTION] [DEBUG] [javax.management.builder.initial]:[oracle.oc4j.admin.jmx.server.Oc4jMBeanServerBuilder]
[123109_073025194][][EXCEPTION] [DEBUG] [com.oracle.corba.ee.security.use.ssl]:[false]
[123109_073025194][][EXCEPTION] [DEBUG] [org.omg.CORBA.ORBClass]:[com.sun.corba.ee.impl.orb.ORBImpl]
[123109_073025194][][EXCEPTION] [DEBUG] [file.encoding]:[Cp1252]
[123109_073025194][][EXCEPTION] [DEBUG] [oracle.oc4j.http.socket.sendbuffersize]:[16384]
[123109_073025194][][EXCEPTION] [DEBUG] [java.specification.version]:[1.5]
regard
sreekanthHi Sreekanth;
Change your output type from PDF to HTML. Then it will give you clear error message in HTML page after fixing it if you able to see/run report fine in HTML then change your output type back to PDF.
GsrC -
Calling a function from HTML page
I am using a mixture of jQuery Mobile and Edge Animate to build a mobile app.
When I load the Edge file I need to also call a function in edge at the same time.
How can I call a function that is inside the Edge Animate file from the container HTML file (jQuery button)?Here it is:
sym.displayBAC = function() {
// Set BAC once at begining so we can run the timer less often
sym.currentToday=new Date();
sym.currentHour=sym.currentToday.getHours();
sym.currentMinute=sym.currentToday.getMinutes();
sym.currentTime = sym.currentHour + (sym.currentMinute/60);
if ( sym.currentTime < sym.startTime) {
sym.currentTime = sym.currentTime + 24;
else {
sym.currentTime = sym.currentTime;
sym.drinkingTime = sym.currentTime - sym.startTime;
if (sym.drinkingTime > 24) {
sym.reset();
// convert mls to fluid ounces and multiply by alcohol percenatge
sym.beerOunces = (sym.beerVolume * 0.033814) * sym.beerPercent;
sym.wineOunces = (sym.wineVolume * 0.033814) * sym.winePercent;
sym.spiritOunces = (sym.spiritVolume * 0.033814) * sym.spiritPercent;
sym.champagneOunces = (sym.champagneVolume * 0.033814) * sym.champagnePercent;
sym.premixOunces = (sym.premixVolume * 0.033814) * sym.premixPercent;
sym.shotOunces = (sym.shotVolume * 0.033814) * sym.shotPercent;
sym.cocktailOunces = (sym.cocktailVolume * 0.033814) * sym.cocktailPercent;
sym.ciderOunces = (sym.ciderVolume * 0.033814) * sym.ciderPercent;
// Total the alcohol in liquid ounces
sym.totalOunces = sym.beerOunces + sym.wineOunces + sym.spiritOunces + sym.champagneOunces + sym.premixOunces + sym.shotOunces + sym.cocktailOunces + sym.ciderOunces;
// Formula %BAC = (A x 5.14/W x r) - .015 x H
sym.BAC = Math.round((((sym.totalOunces * 5.14) / (sym.weight * sym.ratio)) - .015 * sym.drinkingTime)*100)/100;
//$.cookie("drinkingTime", sym.drinkingTime, { expires: 365, path: "/" }); -
A swf in an iFrame calling javascript function on Parent page
I have a .swf that has to load in a iFrame and needs to call a browser cookie javascript function that lives on the parent page that loads the iFrame.
I'm using this:
ExternalInterface.call("javascriptFunction");
but of course this call is not making it to the Parent page javascript function. Is this possible to do?
Thanks!The parent page has the javascript function, and has a iFrame that loads the swf. The swf needs to call the javascript function that lives in the parent page.
Thanks! -
Exception in calling web service from OAF page.
Hi,
I am trying to invoke a web service from OAF.
But my code error out at particular statement where I am sending the message i.e. at
SOAPMessage reply = connection.call(message, destination);
The error message is
java.security.privilegedactionexception: javax.xml.soap.SOAPException: Message send failed: For Input string "".
I am using the wsdl link in destination variable-
String destination = "http://soad.xxxxxxxxxx.org:80/soa-infra/services/default/xxxxxx/xxxxxxx?WSDL";
Please help me with the solution.Have you tried submitting your help request on the SmartBear soapUI forum?
http://www.eviware.com/forum/viewforum.php?f=5
Or if a soapUI Pro user:
http://www.eviware.com/forum/viewforum.php?f=2
Best,
Alex -
How to call pl/sql function from oaf
Dear Friends,
I am trying to call a function from oaf page .but iam getting error like
java.sql.SQLException: ORA-01861: literal does not match format string
ORA-06512: at line 1
THis is my function ,,callable statement
FUNCTION CAR_LOAN_VALIDATION(P_PERSON_ID IN NUMBER
,P_DEDUCTION_START_DATE IN DATE
,P_DEDUCTION_END_DATE IN DATE
,P_LOAN_VALUE IN NUMBER
RETURN VARCHAR2
IS
l_message VARCHAR2(100);
l_contract_type VARCHAR2(50);
l_loan_eligible_date DATE;
l_grade VARCHAR2(15);
l_old_loan_end_date DATE;
l_max_loan_end_date DATE;
l_remaining_amount NUMBER;
l_eligible_amt NUMBER;
BEGIN
BEGIN
SELECT --papf.person_id,
(SELECT meaning
FROM hr_lookups
WHERE lookup_type = 'ADTC_CONTRACT_TYPE'
AND lookup_code = attribute3) contract_type,
ADD_MONTHS (papf.original_date_of_hire, 11) loan_eligible_date,
DECODE (paaf.ass_attribute2,
'Chairman', 'Chairman',
SUBSTR (ass_attribute2, INSTR (ass_attribute2, '.', 1, 1) + 1,
3)
) grade,
(SELECT nvl(MAX (deduction_end_date),null)
FROM xxadtc_car_loan_request
WHERE person_id = p_person_id) old_loan_end_date,
to_date(ADD_MONTHS (p_deduction_start_date, 47)) max_loan_end_date
--to_date(ADD_MONTHS (sysdate, 47)) max_loan_end_date
INTO l_contract_type
,l_loan_eligible_date
,l_grade
,l_old_loan_end_date
,l_max_loan_end_date
FROM per_all_people_f papf, per_all_assignments_f paaf
WHERE SYSDATE BETWEEN papf.effective_start_date AND papf.effective_end_date
AND papf.business_group_id = 81
AND papf.person_id = paaf.person_id
AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date
AND papf.person_id =P_PERSON_ID;
EXCEPTION
WHEN others THEN
DBMS_OUTPUT.PUT_LINE('Error ');
END;
-- get Previous Car loan amount --
BEGIN
SELECT to_number(prrv.result_value)
INTO l_remaining_amount
FROM per_all_people_f papf,
per_all_assignments_f paaf,
pay_assignment_actions pac,
pay_run_results prr,
pay_run_result_values prrv,
pay_element_types_f petf,
pay_input_values_f pivf,
pay_element_classifications pec,
pay_payroll_actions ppa,
per_time_periods ptp
WHERE SYSDATE BETWEEN papf.effective_start_date AND papf.effective_end_date
AND papf.person_id = paaf.person_id
AND papf.business_group_id = 81
AND SYSDATE BETWEEN paaf.effective_start_date AND paaf.effective_end_date
AND paaf.assignment_id = pac.assignment_id
AND pac.assignment_action_id = prr.assignment_action_id
AND prr.run_result_id = prrv.run_result_id
AND prr.element_type_id = petf.element_type_id
AND SYSDATE BETWEEN petf.effective_start_date AND petf.effective_end_date
AND prrv.input_value_id = pivf.input_value_id
AND SYSDATE BETWEEN pivf.effective_start_date AND pivf.effective_end_date
AND pivf.NAME = 'Remaining Amount'
AND petf.classification_id = pec.classification_id
AND pac.payroll_action_id = ppa.payroll_action_id
AND ppa.time_period_id = ptp.time_period_id
AND TO_CHAR (ptp.pay_advice_date, 'Mon-YYYY') =
TO_CHAR (SYSDATE, 'Mon-YYYY')
AND petf.element_name = 'Motar Ahlami Loan'
--and employee_number='10185'
AND papf.person_id = p_person_id;
EXCEPTION
WHEN no_data_found THEN
--DBMS_OUTPUT.PUT_LINE('ERROR: No data!');
l_remaining_amount:=0;
WHEN others THEN
DBMS_OUTPUT.PUT_LINE('Error ');
END;
select GET_CAR_LOAN_ELIGI_AMT(P_PERSON_ID)
into l_eligible_amt
from dual;
IF l_contract_type NOT IN ('Permanent') THEN
l_message := 'Contract Type Is not valid';
END IF;
IF l_loan_eligible_date < SYSDATE THEN
l_message:= 'Date of Join is less then one year';
END IF;
IF l_grade IN ('US','00','AUS','EM') THEN
l_message:= 'Your are not Eligible Grade';
END IF;
IF l_old_loan_end_date < SYSDATE THEN
l_message:= 'Previous Loan Duration is not completed';
END IF;
IF l_max_loan_end_date > P_DEDUCTION_END_DATE THEN
l_message:= 'Maxinum number of monthly payment of 48 month';
END IF;
IF l_remaining_amount >0 THEN
l_message:= 'Previous Car Loan amount is pending till';
END IF;
IF l_eligible_amt < p_loan_value THEN
l_message:= 'Please check Eligible Amount ';
END IF;
RETURN nvl(l_message,'S');
EXCEPTION
WHEN NO_DATA_FOUND
THEN
RETURN 'Error';
END CAR_LOAN_VALIDATION;
END XX_CAR_LOAN_REQUEST_PKG;
CALLABLE STATEMENT CODE ---CO CODE
if(pageContext.getParameter("Submit")!=null) {
OAViewObject vo2 = (OAViewObject)am.findViewObject("XxadtcCarLoanRequestEOVO1");
if(vo1!=null){
vo1.getCurrentRow().setAttribute("LoanStatus","Pending Approval");
int xxpersonId = pageContext.getEmployeeId();
String xxDeductionStartDate = vo2.getCurrentRow().getAttribute("DeductionStartDate").toString();//pageContext.getParameter("DeductionStartDate").toString();
// SimpleDateFormat dateFormat1 = new SimpleDateFormat("yyyy/mm/dd");
// Date convertedDate1 = dateFormat1.parse("xxDeductionStartDate");
String xxDeductionEndDate = vo2.getCurrentRow().getAttribute("DeductionEndDate").toString();//pageContext.getParameter("DeductionEndDate").toString();
// SimpleDateFormat dateFormat2 = new SimpleDateFormat("yyyy/mm/dd");
// Date convertedDate2 = dateFormat2.parse("xxDeductionEndDate");
String xxLoanValue = vo2.getCurrentRow().getAttribute("LoanValue").toString();//pageContext.getParameter("LoanValue").toString();
int iLoanValue = Integer.parseInt(xxLoanValue);
System.out.println("Entered into submit loop");
System.out.println("xxpersonId id is:"+xxpersonId);
System.out.println("xxDeductionStartDate id is:"+xxDeductionStartDate);
System.out.println("xxDeductionEndDate id is:"+xxDeductionEndDate);
System.out.println("xxLoanValue id is:"+xxLoanValue);
OADBTransaction txn = am.getOADBTransaction();
String sql ="BEGIN :1 :=XXADTC_CAR_LOAN_REQUEST_PKG.CAR_LOAN_VALIDATION(:2,:3,:4,:5); END;";
CallableStatement cs = txn.createCallableStatement(sql,1);
String outputval = null;// int outputval = 0;
try {
System.out.println("Entered in try loop of callable funtion validation");
cs.setInt(2,xxpersonId);
System.out.println("cs setInt(2,xxpersonId);is executed");
cs.setString(3,xxDeductionStartDate);
System.out.println("cs.setString(3,xxDeductionStartDate is executed);");
cs.setString(4,xxDeductionEndDate);
System.out.println("cs.setString(4,xxDeductionEndDate is executed);");
// cs.setDate(3,xxDeductionStartDate);
// cs.setDate(4,xxDeductionEndDate);
cs.setInt(5,iLoanValue);
cs.registerOutParameter(1,Types.VARCHAR);// cs.registerOutParameter(1,Types.NUMERIC);
cs.execute();
outputval = cs.getString(1);// txn.commit();
System.out.println(outputval);
txn.commit();
if(outputval.equals("S"))
am.invokeMethod("apply");
else
throw new OAException("Organization name is:"+outputval,OAException.INFORMATION);
txn.commit();
catch(Exception sqle){
try {
cs.close();
catch (Exception e)
throw OAException.wrapperException(e);
throw OAException.wrapperException(sqle);
Please help .where is the error is.
please help
let me know for any clarification.
Thanks
Aravinda.Hi Arvinda,
Refer Below code.
// In Controller
java.sql.Date DeductionSDate; //declare variable
//In PFR
String xxDeductionStartDate = vo2.getCurrentRow().getAttribute("DeductionStartDate");
OADBTransaction txn = am.getOADBTransaction();
if(xxDeductionStartDate!=null)
java.sql.Date startDate= txn.getOANLSServices().stringToDate(xxDeductionStartDate);
DeductionSDate = startDate;
Set this to cs.setDate(3,DeductionSDate);
Thanks,
Dilip -
How to call OAF page from plsql
Hi OAF Guru's,
I have a requirement to call a OAF page from a plsql procedure/function, I know how to call procedure/function from OAF pages, but I don't have any idea about how to call a OAF page from plsql.
Any help is appreciated.
Thanks in Advance.
Raja.Hi,
What is your exact requirement. Why do you want to call a OA page from PL/SQL. Please share your requirement clearly.
HTH,
Syed. -
Calling Concurrent Program From OAF in R12
Hi All,
I have called concurrent request from OAf page..When i click the submit button the page forwarded to Request page..
In that i have three buttons only Submit Request,search,Refresh but i need, What are all the options present in Requests > Submit window (not from OAF)"Hold Request,Cancel Request,Diagnostics,View Log"..
Also in my OAF Page if i click Submit Request-->Radio Button "New Request"--> if i clock LOV it doesn't shows any values...
Kindly help me to resolve this issue..
Thanks in advance for your valuable suggestion..
Regards,
RKOHi Hussein,
Here I've shown the details of log file
Purchasing: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
XXCON module: XXCON
Current system time is 29-DEC-2010 11:37:23
+-----------------------------*
*| Starting concurrent program execution...*
+-----------------------------*
APPLLCSP Environment Variable set to :
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
American_America.AL32UTF8
Enter Password:
Report Builder: Release 10.1.2.3.0 - Production on Wed Dec 29 11:37:29 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Executing request completion options...
------------- 1) PRINT -------------*
Printing output file.
Request ID : 5865903
Number of copies : 0
Printer : noprint
Finished executing request completion options.
Concurrent request completed successfully
Current system time is 29-DEC-2010 11:37:33
Regards,
Saro -
How to call sshr page in custom oaf page
hey everyone,
i would like to access the leave of absence page by creating a link on the custom oaf page. So that whenever i click on this link it will open the below page.
Below is the function details for the jsp page that i want the link to open it when clicked:
Function Name : HR_LOA_SS
WEB HTML Call : OA.jsp?page=/oracle/apps/per/selfservice/absence/webui/AbsenceHomePagePG&akRegionApplicationId=800
please guide me
Brgds,
JennyHi Jenny,
Try creating an item of type LINK and set the desitnation URI property to point to this URL.
I am not sure, but you might need to append some important parameter like Person_ID etc to this URL so that the appropriate Employee Absence Home Page Opens up.
Try decompiling the CO of AbsenceHomePG and check out the Parameters it needs in ProcessRequest.
Hope this provide you some pointers.
Regards,
Saurabh Agrawal -
Calling custom OAF page from JSP page in Oracle apps
Hi,
I am working on a requirement to call a Custom OAF page from a JSP page in Oracle apps 11.5.10.
I have registered the OAF page and defined a function for it. When we call this OAF page from JSP (without parameter), the page opens up
URL: http://APPSURL:8020/OA_HTML/RF.jsp?function_id=27221&resp_id=50312&resp_appl_id=515&security_group_id=0&lang_code=US
but as soon as I am trying to pass a parameter sr_id in the URL:
http://APPSURL:8020/OA_HTML/RF.jsp?function_id=27221&resp_id=50312&resp_appl_id=515&security_group_id=0&lang_code=US&sr_id=106
we are getting following error:
You are trying to access a page that is no longer active.
- The referring page may have come from a previous session. Please select Home to proceed.
Please let me know if someone has faced the same problem...
Thanks!!!Hi,
Before calling a OAF page..from external JSP page...u need to set certain mandatory parameter like transaction Id and context.
Regards,
Gyan -
Calling oAf page from Other non OAf pages
Hi the requirement is to call a specific OAF page from email notification.But when the page is accessed from application few paramters are appended to the page url like &ti,&mi,&oas etc and the value of these parameters keep on changing as and when a new session is opened.
ThanksHi Sumit ,
I have requirement where i need to send a notifications to an user with link with parameter like task num and other params when user click on this link it need to open an Custom page based on this parameters. we are generating url link from one database function for the page function such that it generates url for that and user clicks on that it opens the corresponding page but this uis happening when we r not using parameters but we want with parameters.
Plz reply ASAP.
Thanks.
Maybe you are looking for
-
Why can't I use the Basic brush tool?
I'm learning the ropes of drawing in Illustrator and I've fallen at the first hurdle. Why can't I use the Basic brush tool? Whenever I select the brush tool and use the 'Basic' brush type, the cursor turns into a hashed circle indicating I can't draw
-
Publish to my own FTP? (with no.mac account)
Is it possible to use iWeb and publish to my own FTP and domain?
-
TS3804 iTunes hanging when I select the Preferences menu.
iTunes hangs when I select the Preferences menu. Any ideas why and how to keep it from doing it again? This happens on my 3G phone and the ipod.
-
Hi there, Iam new to this forum. Hope I can help others in the future. Recently I got Shake 4.1. I been editing with FCP for several years. The problem I encounter is the following: I can export from FCP to Shake my clip, then I can process filters a
-
New Freeware Delay AU: PolyFractus
From the web page: Modulation Delay "Model" is an OSX AU MOdulation DELay plugin. From classic echoes to strange modulations and musical patterns, you can Model your sound with unlimited random modulation patterns, filters and ring modulator. Feature