Not passing parameters
I am using the application integrator. When previewing the iView or Workset or Role the parameters are passed to the other system. When I utilize an account that has the role assigned and navigate to the link the parms are NOT passed. Via both method's I do access the URL and present the information in the portal window - it's the parms that aren't being passed.
Browser submitted values to https://aswd-dev.web.xxxxx/Default.aspx
vs.
Browser submitted values to https://aswd-dev.web.xxxxx/Default.aspx?sap_client=100&sap_path=sap%2Fbc%2Fsrt%2Frfc%2Fsap%2F&sap_port=xxxx&sap_protocol=HTTP&sap_server=XX&environment=DEV&sapversion=ICT
Any thoughts on why all those parms are only passed when doing preview but are not passed when running "regular"?
Regards,
Diane
Edited by: Diane Fuller on Jul 11, 2011 1:06 PM
Edited by: Diane Fuller on Jul 11, 2011 1:07 PM
Hi,
In App Integrator iview, there are 2 Seperate iview property for Passing Parameter. One property is for Declaring the Parameter names sent by application, and the other one for sending the parameter received. The parameter name should match with both the iview property. Check those, it would help.
Similar Messages
-
HTTP POST method does not pass parameters to the server
Hi ,
I am using SSO using VSJ product and implemented using a filter.
I have problems as below
1. Every request to the web server will be intercepted by this vsj filter and if sso does not succeed it will send 403
2. my system will detect 403 in web.xml and redirect to login page
3. user key in username and password and log in
4. after successful login set the HttpSession and redirect to homepage
Problem is subsquent form submit / ajax call using "POST" method cannot pass any parameters to the servers ( parameters sent using POST will be null in the servers ) ? GET is okay
If i comment out the vsj filter altogether , everything works as per normal.
My Question is
1. Is there anyway to overcome come ?
2. Is there any method to clear off whatever this sso vsj has set ( clear cookies / start new browser instance / etc ) in order to forget the state
Any idea?
ThanksYes.
here to illustrate
public MyFilter extends VSJAuthFilter
*public void doFilter(){*
*if(session.getAttribute("loginSucces") != true){*
super.doFilter(); //call VSJ Auth filter to perform SSO in order to get User Principal populated.
*}else{*
chain.doFilter(); // normal filter
My Filter only intercepts *.jsp and *.do
Basically here is the pattern that i observe
1. If i hit default url (homepage.do) for the first time it will trigger the super.doFilter() , it will then throw 403 and redirect to login.html , after success and go to homepage , subsequent POST parameter is missing
2. if i hit the external login page directly just to simulate ( eg : login.html ) it wont trigger this filter , after success and go to homepage , subsequenet POST parameter is okay
3. GET is always ok
I am using weblogic server 10.x btw
Thanks -
Invoking http post from BPEL is not passing parameters
Hi,
I have a simple BPEL process where I am trying to send an xml string in a request
parameter to a servlet. Servlet is pretty simple. It just prints the request parameters and returns. But problem is that I am not getting any request
parameters when I am using http post but everything works fine when using
http get.
Enclosed is the wsdl that I am using.
Any information will be of great help
Thanks
Rajesh
<?xml version="1.0" encoding="utf-8"?>
<definitions
targetNamespace="http://xmlns.oracle.com/OISService"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
xmlns:client="http://xmlns.oracle.com/OISService"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>
<types>
<xsd:schema elementFormDefault="qualified"
targetNamespace="http://xmlns.oracle.com/OISService"
xmlns="http://www.w3.org/2001/XMLSchema">
<xsd:element name="header">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="status" type="xsd:string"/>
<xsd:element name="description" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="responsedata" type="xsd:string"/>
</xsd:schema>
</types>
<message name="SendDataToOISRequestMessage">
<part name="xmldata" element="client:responsedata"/>
</message>
<message name="SendDataToOISResponseMessage">
<part name="payload" element="client:header"/>
</message>
<portType name="SendDataToOIS">
<operation name="process">
<input message="client:SendDataToOISRequestMessage"/>
<output message="client:SendDataToOISResponseMessage"/>
</operation>
</portType>
<binding name="SendDataToOIS" type="client:SendDataToOIS">
<http:binding verb="POST"/>
<operation name="process">
<http:operation location="/Class1"/>
<input>
<mime:mimeXml part="xmldata"/>
<mime:content type="text/xml"/>
</input>
<output>
<mime:mimeXml part="payload"/>
<mime:content type="text/xml"/>
</output>
</operation>
</binding>
<service name="SendDataTOOISService">
<port name="SendDataToOIS" binding="client:SendDataToOIS">
<http:address location="http://localhost:8888/j2ee/servlet"/>
</port>
</service>
<plnk:partnerLinkType name="SendDataToOIS">
<plnk:role name="SendDataToOISProvider">
<plnk:portType name="client:SendDataToOIS"/>
</plnk:role>
</plnk:partnerLinkType>
</definitions>In the bpel you can make a http-binding instead of the default soap-binding.
Maybe this can help you making the call to the servlet/jsp. -
Passing Parameters to Crystal Report
Dear all,
I wonder if anybody has tried out the crystal report bundled with workshop
in SP2.
I got some problems when I try to pass a parameter from a jsp in workshop to
crystal report according to part 4 of tutorial in the Crystal Reports for
BEA Weblogic workshop Developer's guide.
This message show in the web browser:
com.crystaldecisions.report.web.viewer.CrystalReportViewer
Some parameters are missing values
However, the report viewer works fine in workshop if I am not passing
parameters.
If anyone has successfully setup a report which involves parameter passing
in workshop, I would appreciate you can share the tricks how to make it
work.
Thanks!
Orion YiuHi Orion,
I have the same issue like the one you sent to bea helpdesk . Please, if you got any positive response on that issue. Need help. Thanks you for you time.
Abdellah -
SSRS,MDX- Passed parameters are not hitting the main query in Dataset
I have created a SSRS report which has to accept two parameters i.e., store name, Date(to show sales on particular date) in report. which are working fine for me. but, those passed parameters are not hitting the main query in main Dataset. what ever i
pass in parameters, it is displaying all the rows(every city values). i think i am not correct in creating the statement in Main dataset query, to receive those 2 parameters into the main query. can anybody please help me how to create the statement
in main date set to display the results for the exact parameter i am passing(which has to be in MDX).
ramHi ramprasad74,
According to your description, you want to use parameter in the report, then after parameter values are selected, corresponding data will be displayed in the report. But the parameters do not work and all the rows are displayed.
To pass parameter to main report dataset, we need to define parameter for MDX query and assign parameter name same as SSRS report parameter. For detail information, please refer to the following steps:
Create a Dataset to retrieve data for Store name parameter.
Create Store name parameter, type name and prompt, set Date type to Text, check Allow multiple values check box, then select get values from the dataset.
Create a Dataset for Date parameter.
Create Date parameter, type name and prompt, set Date type to Date/Time, then select get values from the dataset.
Create a new dataset used to retrieve data for the report, add statement like below to the mdx query: {STRTOMEMBER(@Date)} * {STRTOSET (@Store_name)}.
In Query Designer pane, click Query Parameters and assign parameter name same as SSRS report parameter.
For more information about SSRS Report with Single and Multi Selection Parameter using MDX Query, please refer to the following blog:
http://www.codeproject.com/Articles/799265/SSRS-Report-with-Single-and-Multi-Selection-Parame
If you have any more questions, please feel free to ask.
Thanks,
Wendy Fu
If you have any feedback on our support, please click
here. -
Parameters are not Passed in a Struts(JPDK) Portlet
Dear All,
I am getting below problem in Oracle Portal Environment(10.1.2)
I am passing news_id parameter along with title from one page to another page like below code
In CompanyNewsShowPage.jsp
<tr>
<td class="desc">
<%
page_url ="/showpageNews.do?news_id="+com_events[0];
// System.out.println("value of page url : "+ page_url);
%>
<input type="hidden" value="<%=page_url%>" id="hdnpageurl"/>
<pdk-html:link page="<%=page_url%>" styleClass="desc">
<%
String obj_title= com_events[1];
if((obj_title.length())>30)
out.println(obj_title= obj_title.substring(0,15)+ "...");
else
out.println(com_events[1]);
%>
</pdk-html:link>
</td>
TO passing
shownews.jsp
The code for accepting parameter is below
<%
System.out.println("value of newsid :"+ newsid);
String news_id=request.getParameter("news_id");
if(news_id !=null)
newsid= Integer.parseInt(news_id);
System.out.println("value of newsid :"+ newsid);
%>
Kindly any one help me how to pass the parameter from one page to another page above problem, because our go live date is very close.
But same code it is works in IE browser, but not working after deployed in Oracle Portal Environment.
However, the
parameters are not passed from the form to the Struts action. When retrieving the parameters, then
a null value is retrieved, even when the parameter was specified in the form.
Regards,
Chandrashekhara
Message was edited by:
user487286
Message was edited by:
user487286Hi Anton,
I make some tests and it appeared that it's only the output parameter which is not passed through the step (why ?).
I get this output parameter by a post-running action which parse the joblog and retrieve the sequence number at the line with the pattern "vendor" (hereunder) :
100601 20091008 00 516 Job started 0
100601 20091008 00 550 Step 001 started (program ZCO_MANAGE_FILE, variant ECLO2, user ID ABAPUSER) 0 001 ZCO_MANAGE_FILE ECLO2 ABAPUSER
100601 20091008 00 001 No vendor specified 0 00233
100602 20091008 00 517 Job finished 0
Here is the postrunning action script wich was working before we upgrade :
JobFile log = jcsJob.getJobFileByName("log");
if (log != null)
com.redwood.scheduler.api.search.SearchResultSet myResultSet = log.search("No vendor specified");
com.redwood.scheduler.api.search.SearchResult myResult = null;
while (myResultSet.next())
myResult = myResultSet.getSearchResult();
String [] line = myResult.getLineText().split(" ");
JobParameter jp = jcsJob.getJobParameterByName("VendorCode");
if (jp != null)
jp.setOutValueString(line[line.length-1]); -
SAP fails to find uninstaller or uninstaller parameters are not passed
We have a custom add-on , and we intend to deploy the add-on with professional quality. However I have a issue with the uninstaller area.
Scenario 1;
Installer name = AddOnInstaller.exe
Uninstaller name = AddOnUnInstaller.exe
I have created a proper uninstaller and have created the ARD file with the uninstaller listed there. The proper parameters were given, However when registering the add-on ( with SAP) , SAP throws a message saying that uninstaller could not be found. However the uninstaller is present in the given path. I have checked the path in the ard file too. SAP however installs the add-on properly.
Also During the install SAP copies the Installer.exe to the local profile temp folder, and runs from there. Does this have something to do with SAP not finding the uninstaller?
Scenario2:
This time I tried creating the Install and Uninstall function within the same program. So I have one exe now called AddOnInstaller.exe
I have set the installer in the ard file to the AddOnInstaller.exe and given the proper parameters. And I have set the Uninstaller in the ard file to another parameter such as /u|uninstall;.
When registering the add-on within SAP, SAP now dose NOT give an error ( could not find uninstaller ). And also the add-on installs properly.
Within my AddOnInstaller.exe, I check the command line to see if the command line is for an Install, or an Uninstall.
However when the add-on is removed and deregistered, when I log back in to SAP, and when SAP runs the uninstaller, it passes Install parameters to the AddOnInstaller.exe. I have checked this with message boxes. Should it not pass Uninstall parameters as given in the ard file?
I need a fix for this or a workaround please. all help is appreciated.
regards,
Indika.
Message was edited by: changed the header title
Indika Dekumpitiyayes the fixing the parameter helped, now SAP passes the correct parameter. I pass /u ( no | hwoever ).
vCommand = Split(Trim(Command), "|")
mInstallPath = Trim(vCommand(0))
If UBound(vCommand) > 0 Then '---means Install paramaters
mInstallerPath = Trim(vCommand(1))
Else
bUninstall = True
End If
If bUninstall Then
Call UninstallAddOn
Else
Call Install
End If
this code above worked, thanks. -
So what I mean:
I have stored procedure like this:
CREATE PROCEDURE sp_Example
@param1 NVARCHAR(20) = '',
@param2 DATE = ''
AS
BEGIN
IF (SELECT COUNT(*) FROM Table1 WHERE (Name = @param1 OR @param1 = '') AND (StartDate = @param2 OR @param2 = '')) > 2
BEGIN
SELECT Name, Date, Price, Etc
FROM Table2
WHERE (Name = @param1 OR @param1 = '') AND (StartDate = @param2 OR @param2 = '')
END
IF (SELECT COUNT(*) FROM Table1 WHERE (Name = @param1 OR @param1 = '') AND (StartDate = @param2 OR @param2 = '')) < 2
BEGIN
SELECT Name, Date, Price, Etc
FROM Table3
WHERE (Name = @param1 OR @param1 = '') AND (StartDate = @param2 OR @param2 = '')
END
END
So in stored procedure are some input parameters and they are passed into IF statement.
If I use this stored procedure as report's dataset (Microsoft Visual Studio 2013) in following:
Add
Dataset > Query
Type: Stored Procedure > sp_Example It
do NOT get any fields, but get parameters
If I use this stored procedure in following:
Add
Dataset > Query
Type: Text > EXECUTE
sp_Example It get all required fields, but do NOT get parameters
Of course If I add manually parameters or fields It not working.
If I change IF statement
in stored procedure something like:
IF (1 < 3)
BEGIN
SELECT Name, Date, Price, Etc
FROM Table3
WHERE (Name = @param1 OR @param1 = '') AND (StartDate = @param2 OR @param2 = '')
END
It normally working in report (getting all fields and parameters). So problem is that I pass parameters to IF statement.
Have you any ideas how to pass parameters to IF statement
and get It correctly working on report?Hi Stanisolvas,
Per my understanding that you are experending some issue when using the stored procedure to create the dataset, you can't get the fields to display under the dataset, right?
I have tested on my local environment with the same script as your and can't reproduce the issue, Please try to check and provide more details information according to below points:
What do you mean of not get any fields, Is that mean no table header along with the value will display? If you got any error message, please provide it.
Did you use any temp table in the stored procedure, if so, the issue can be caused by the temp table you are using, please don't use temp table in it which will cause no fields display.
If you use the second method to execute the procedure, please check to make sure you have added the script like below to make the parameters display in the report:
exec sp_Example @Param1=@Param1,@Param2=@Param2
Please execute the stored procedure in the SQL Server Management Studio like below to see if the stored procedure will works fine:
exec sp_Example @Param1='Test1',@Param2='2014-10-15'
If this work fine in the management studio, please try to create an new report to re-add this procedure.
If you still have any problem, please feel free to ask.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support -
Passing parameters to Update page
Hi,
I created the search/create/update page going by the instructions in the tutorial exercise. My primary key is a combination of employee number AND sequence number.
When I query the employee in the search page and if the employee has more than one record it displays all the records for that employee.
When I click on the "update" button on one of the record, It is not displaying me the record on which I clicked the "update" button. Instead it is displaying me the other record for the same employee. I believe I need to pass the sequence value as the parameter, but do not know how to pass it. Can anyone one help me accomplish this?
Thanks in advance,
Al
Below is the CO code for SEARCH page:
/*===========================================================================+
| Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA |
| All rights reserved. |
+===========================================================================+
| HISTORY |
+===========================================================================*/
package lac.oracle.apps.lac.jobperf.server.webui;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.webui.OAControllerImpl;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
import oracle.apps.fnd.framework.webui.TransactionUnitHelper;
import oracle.apps.fnd.framework.OAApplicationModule;
import java.io.Serializable;
import java.sql.Connection;
import java.text.SimpleDateFormat;
import java.text.ParseException;
import oracle.apps.fnd.common.MessageToken;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.OAException;
import oracle.apps.fnd.framework.server.OADBTransaction;
import oracle.apps.fnd.framework.webui.OAControllerImpl;
import oracle.apps.fnd.framework.webui.OADialogPage;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
import oracle.apps.fnd.framework.webui.TransactionUnitHelper;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean;
import oracle.apps.fnd.framework.webui.beans.layout.OAQueryBean;
import oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean;
import oracle.apps.fnd.framework.webui.beans.message.OAMessageDateFieldBean;
//import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
import oracle.apps.fnd.framework.webui.beans.table.OATableBean;
import com.sun.java.util.collections.HashMap;
import oracle.bali.share.util.IntegerUtils;
* Controller for ...
public class jobperfCO extends OAControllerImpl
public static final String RCS_ID="$Header$";
public static final boolean RCS_ID_RECORDED =
VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
* Layout and page setup logic for a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
// The following checks to see if the user navigated back to this page
// without taking an action that cleared an "in transaction" indicator.
// If so, we want to rollback any changes that she abondoned to ensure
// they aren't left lingering in the BC4J cache to cause problems with
// subsequent transactions. For example, if the user navigates to the
//Create Review page where you start a "Create" transactio unit, then
//navigastes back to this page using the browser Back button and selects
// the Create Review button again, teh OA Framework detects this
// Back button navigation and steps through processRequest() so this
// code is executed before you try to Create another new Review.
if (TransactionUnitHelper.isTransactionUnitInProgress(pageContext,"jobperfCreateTxn", false))
am.invokeMethod("rollbackReview");
TransactionUnitHelper.endTransactionUnit(pageContext,"jobperfCreateTxn");
else if(TransactionUnitHelper.isTransactionUnitInProgress(pageContext,"jobperfUpdateTxn",false))
am.invokeMethod("rollbackReview");
TransactionUnitHelper.endTransactionUnit(pageContext,"jobperfUpdateTxn");
* Procedure to handle form submissions for form elements in
* a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
OAApplicationModule am;
OADBTransaction oadbxn;
am = pageContext.getRootApplicationModule();
oadbxn = am.getOADBTransaction();
if (pageContext.getParameter("Create") != null)
//Navigate to teh "Create Review" page while retaining the AM.
//Note the use of KEEP_MENU_CONTEXT as opposed to GUESS_MENU_CONTEXT
//since we know the current tab should remain highlighted.
pageContext.setForwardURL("OA.jsp?page=/lac/oracle/apps/lac/jobperf/webui/ReviewPG",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
null,
true, //Retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
OAWebBeanConstants.IGNORE_MESSAGES);
else if ("update".equals(pageContext.getParameter(EVENT_PARAM)))
String EmployeeNumber = pageContext.getParameter("EmployeeNumber");
String Seq = pageContext.getParameter("Seq");
//String EmployeeName = pageContext.getParameter("FullName");
System.out.println("Update Selected");
System.out.println(EmployeeNumber);
//System.out.println(EmployeeName);
System.out.println(Seq);
oadbxn.putValue("EmployeeNumber",EmployeeNumber);
oadbxn.putValue( "Seq",Seq);
//oadbxn.putValue("EmployeeName",EmployeeName);
HashMap params = new HashMap(2);
// Replace the current employeeNumber request parameter value with "X"
params.put("EmployeeNumber", EmployeeNumber);
//params.put("EmployeeName", "EmployeeName");
params.put("Seq", Seq);
// IntegerUtils is a handy utility
//params.put("EmployeeName", EmployeeName);
//params.put("EmployeeNumber",IntegerUtils.getInteger(1));
//params.put("EmployeeName",IntegerUtils.getInteger(2));
//params.put("Seq",IntegerUtils.getInteger(2));
// The user has clicked an "Update" icon so we want to navigate
// to the first step of the multistep "Update Employee" flow.
pageContext.setForwardURL("OA.jsp?page=/lac/oracle/apps/lac/jobperf/webui/UpdateReviewPG",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
params, //mir null,
true, // Retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_YES, // Do not display breadcrumbs
OAWebBeanConstants.IGNORE_MESSAGES);
Below is the CO code for UPDATE page:
/*===========================================================================+
| Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA |
| All rights reserved. |
+===========================================================================+
| HISTORY |
+===========================================================================*/
package lac.oracle.apps.lac.jobperf.server.webui;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.webui.OAControllerImpl;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.webui.OADialogPage;
import oracle.apps.fnd.framework.webui.TransactionUnitHelper;
import oracle.jbo.domain.Number;
import oracle.apps.fnd.common.MessageToken;
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.OAException;
import oracle.apps.fnd.framework.OAViewObject;
import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
import java.io.Serializable;
* Controller for ...
public class ReviewUpdateCO extends OAControllerImpl
public static final String RCS_ID="$Header$";
public static final boolean RCS_ID_RECORDED =
VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
* Layout and page setup logic for a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
// Always call this first
super.processRequest(pageContext, webBean);
// Put a transaction value indicating that the update transaction
// is now in progress.
TransactionUnitHelper.startTransactionUnit(pageContext,"jobperfUpdateTxn");
String EmployeeNumber = pageContext.getParameter("EmployeeNumber"); //small e
String Seq = pageContext.getParameter("Seq");
System.out.println("Into ReviewUpdateCOUpdate IN Process Request values from Page Context");
System.out.println(EmployeeNumber);
//System.out.println(EmployeeName);
System.out.println(Seq);
// We'll use this at the end of the flow for a confirmation message.
String EmployeeName = pageContext.getParameter("FullName");
pageContext.putTransactionValue("FullName",EmployeeName);
Serializable[] params = { EmployeeNumber,Seq}; //small e
OAApplicationModule am = pageContext.getApplicationModule(webBean);
// For the update, since we are using the same VO as teg "Details" page, we
// can use the same initialization logic.
System.out.println("Into ReviewUpdateCOUpdate IN Process Request");
System.out.println(EmployeeNumber); //small e
//System.out.println(EmployeeName);
System.out.println(Seq);
am.invokeMethod("initDetails", params);
//am.invokeMethod("jobperfAMImpl.createReview");
System.out.println("Into ReviewUpdateCOUpdate IN Process Request AFTER INITDETAILS");
System.out.println(EmployeeNumber); //small e
//System.out.println(EmployeeName);
System.out.println(Seq);
} // end processRequest()
* Procedure to handle form submissions for form elements in
* a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
{ //super.processFormRequest(pageContext, webBean);
// Always call this first.
super.processFormRequest(pageContext, webBean);
System.out.println("Into ReviewUpdateCOUpdate INTO Process FORM before apply Request");
OAApplicationModule am = pageContext.getApplicationModule(webBean);
// Pressing the "Apply" button means the transaction should be validated
// and committed.
if (pageContext.getParameter("Apply") != null)
// Generally in the tutorial application and the labs, we've illustrated
// all BC4J interaction on the server (except for the AMs, of course). Here,
// we're dealing with the VO directly so the comments about the reasons
// why we're obtaining values from the VO and not the request make sense
// in context.
OAViewObject vo = (OAViewObject)am.findViewObject("jobperfVO1");
// Note that we have to get this value from the VO because the EO will
// assemble it during its validation cycle.
// For performance reasons, we should generally be calling getEmployeeName()
// on the EmployeeFullVORowImpl object, but we don't want to do this
// on the client so we're illustrating the interface-appropriate call. If
// we implemented this code in the AM where it belongs, we would use the
// other approach.
String EmployeeName = (String)vo.getCurrentRow().getAttribute("FullName");
// We need to get a String so we can pass it to the MessageToken array below. Note
// that we are getting this value from the VO (we could also get it from.
// the Bean as shown in the Drilldwon to Details lab) because the item style is messageStyledText,
// so the value isn't put on the request like a messaqeTextInput value is.
String EmployeeNumber = (String)vo.getCurrentRow().getAttribute("EmployeeNumber");
String Seq = (String)vo.getCurrentRow().getAttribute("Seq");
//ma String employeeNum = String.valueOf(employeeNumber.intValue());
//ma Number employeeNumber = (Number)vo.getCurrentRow().getAttribute("EmployeeNumber");
//ma String employeeNum = String.valueOf(employeeNumber.intValue());
// Simply telling the transaction to commit will cause all the Entity Object validation
// to fire.
// Note: there's no reason for a developer to perform a rollback. This is handled by
// the framework if errors are encountered.
System.out.println("Into ReviewUpdateCOUpdate IN Process Form Request");
System.out.println(EmployeeNumber);
//System.out.println(EmployeeName);
System.out.println(Seq);
am.invokeMethod("apply");
// Indicate that the Create transaction is complete.
TransactionUnitHelper.endTransactionUnit(pageContext, "jobperfUpdateTxn");
// Assuming the "commit" succeeds, navigate back to the "Search" page with
// the user's search criteria intact and display a "Confirmation" message
// at the top of the page.
MessageToken[] tokens = { new MessageToken("EMP_NAME", EmployeeName),
new MessageToken("EMP_NUMBER", EmployeeNumber) };
OAException confirmMessage = new OAException("PER", "LAC_FWK_TBX_T_EMP_CREATE_CONF", tokens,
OAException.CONFIRMATION, null);
// Per the UI guidelines, we want to add the confirmation message at the
// top of the search/results page and we want the old search criteria and
// results to display.
pageContext.putDialogMessage(confirmMessage);
pageContext.forwardImmediately(
"OA.jsp?page=/lac/oracle/apps/lac/jobperf/webui/jobperfPG",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
null,
true, // retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
else if (pageContext.getParameter("Cancel") != null)
am.invokeMethod("rollbackReview");
// Indicate that the Create transaction is complete.
TransactionUnitHelper.endTransactionUnit(pageContext, "jobperfUpdateTxn");
pageContext.forwardImmediately("OA.jsp?page=/lac/oracle/apps/lac/jobperf/webui/jobperfPG",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
null,
true, // retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
} // end processFormRequest()
Message was edited by:
user617353Hi,
I created a new method(initQueryUpdate) in the VOImpl(here I am also setting the where clause).
Also created a method(initDetailsUpdate) in the AMImpl and I am calling the vo.initQueryUpdate in AM code.
I am also passing the parameters to method via a call in the ReviewupdateCO(am.invokeMethod("initDetailsUpdate", params);).
It is compiling the entire jpr without any errors.
When I Search an employee and clisk on the update button then I am geting the following error.
I tried to pass parameters by putting them on the update button property with the action type of "fireAction.
I also tried by making the actiontype "none" and putting the forwarding apge with parameters in the "Destination URL" property and still I get the error message when I run it. Any one has any clues.
Thanks in Advance,
Ali
Exception Details.
oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT
jobperfEO.EMPLOYEE_NUMBER,
jobperfEO.FULL_NAME,
jobperfEO.PERSON_ID,
jobperfEO.ASSIGNMENT_ID,
jobperfEO.PERIOD_START_DATE,
jobperfEO.PERIOD_END_DATE,
jobperfEO.REVIEW_DATE,
jobperfEO.REVIEW_TYPE,
jobperfEO.REVIEW_STATUS,
jobperfEO.JOB_CLASSIFICATION,
jobperfEO.DISTRICT,
jobperfEO.SUPERVISOR_ID,
jobperfEO.SUPERVISOR_EMPLOYEE_NUMBER,
jobperfEO.SUPERVISOR_NAME,
jobperfEO.QUALITY_OF_WORK,
jobperfEO.QUANTITY_OF_WORK,
jobperfEO.JOB_KNOWLEDGE,
jobperfEO.EFFICIENCY,
jobperfEO.RELATING_TO_OTHERS,
jobperfEO.INITIATIVE,
jobperfEO.RELIABILITY,
jobperfEO.HOUSEKEEPING_SAFETY,
jobperfEO.OVERALL_PERFORMANCE,
jobperfEO.SUGGESTED_IMPROVEMENT_AREAS,
jobperfEO.EMPLOYEE_COMMENTS,
jobperfEO.CREATED_BY,
jobperfEO.CREATION_DATE,
jobperfEO.LAST_UPDATED_BY,
jobperfEO.LAST_UPDATE_DATE,
jobperfEO.SEQ,
jobperfEO.SECOND_SUPRV_EMPNO,
jobperfEO.SECOND_SUPRV_FULLNAME
FROM apps.LAC_CM_PERF_REVIEW jobperfEO) QRSLT WHERE (SEQ = :1 AND ( UPPER(EMPLOYEE_NUMBER) like :3 AND (EMPLOYEE_NUMBER like :4 OR EMPLOYEE_NUMBER like :5 OR EMPLOYEE_NUMBER like :6 OR EMPLOYEE_NUMBER like :7))) ORDER BY EMPLOYEE_NUMBER ASC
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:865)
at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:988)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:211)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:153)
at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:749)
at lac.oracle.apps.lac.jobperf.server.webui.ReviewUpdateCO.processRequest(ReviewUpdateCO.java:116)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2335)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1734)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
at _OA._jspService(OA.jsp:34)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
at _OA._jspService(OA.jsp:39)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
java.sql.SQLException: ORA-01006: bind variable does not exist
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375)
at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4507)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3339)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3326)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:441)
at lac.oracle.apps.lac.jobperf.server.jobperfVOImpl.initQueryUpdate(jobperfVOImpl.java:77)
at lac.oracle.apps.lac.jobperf.server.jobperfAMImpl.initDetailsUpdate(jobperfAMImpl.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:190)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:153)
at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:749)
at lac.oracle.apps.lac.jobperf.server.webui.ReviewUpdateCO.processRequest(ReviewUpdateCO.java:116)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2335)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1734)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
at _OA._jspService(OA.jsp:34)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
at _OA._jspService(OA.jsp:39)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
java.sql.SQLException: ORA-01006: bind variable does not exist
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375)
at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4507)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3339)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3326)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:441)
at lac.oracle.apps.lac.jobperf.server.jobperfVOImpl.initQueryUpdate(jobperfVOImpl.java:77)
at lac.oracle.apps.lac.jobperf.server.jobperfAMImpl.initDetailsUpdate(jobperfAMImpl.java:129)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:190)
at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:153)
at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:749)
at lac.oracle.apps.lac.jobperf.server.webui.ReviewUpdateCO.processRequest(ReviewUpdateCO.java:116)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2335)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1734)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:508)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:429)
at _OA._jspService(OA.jsp:34)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:189)
at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:199)
at _OA._jspService(OA.jsp:39)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534) -
How to open a page from a Form and pass parameters to the form on that page
I found a similar example on this forum, but it did not work for me:
declare
l_names owa.vc_arr;
l_values owa.vc_arr;
i number;
begin
PORTAL.wwpro_api_parameters.retrieve(l_names, l_values);
FOR i in 1..l_names.count
LOOP
htp.p(l_names(i) || ' ' || l_values(i));
END LOOP;
end;
By using this method i get the parameters for the Form, like the session ID, but not the parameters for the Page that the form is displayed in.
Another method I tried:
To open a Form from a Form and pass parameters works fine like this:
--In the After processing page PL/SQL event.
declare
v_id number;
blk varchar2(10):='DEFAULT';
Begin
v_id:=p_session.get_value_as_number (p_block_name=>blk,p_attribute_name=>'A_ID');
if v_id > 0 then
htp.formOpen('PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=2649500412&p_arg_names=_show_header&p_arg_values=YES&p_arg_names=ID&p_arg_values='||to_char(v_id),'post');
htp.formSubmit(NULL,'Upload Files');
htp.formClose;
end if;
End;
But I want to open a Page containing the Form instead of just opening the Form. Is this possible to open a Page and pass paramters to the page, and then let the form inside the Page access the passed paramters. The reason for this is that a Form cannot be based on a page template, or can it? When opening the form i want to keep the left menu, which I can if it is a page based on my template with the left menu.
Best regards
HalvorHi,
You can do this by calling the url of the page with the form. You can then use p_arg_names and p_arg_values to pass parameters. In the called form you can get the value from p_arg_names and p_arg_values and assign it to the form field.
You can call this code in the success procedure of the calling form.
declare
v_id number;
blk varchar2(10):='DEFAULT';
v_url varchar2(2000);
Begin
v_id:=p_session.get_value_as_number (p_block_name=>blk,p_attribute_name=>'A_ID');
v_url := <page_url>;
if v_id > 0 then
call(v_url||'&p_arg_names=id&p_arg_values='||v_id);
end if;
End;
In the called form in "Before displaying form" plsql section write this code.
for i in 1..p_arg_names.count loop
if p_arg_names(i) = 'id' then
p_session.set_value(
p_block_name => blk,
p_attribute_name => 'A_ID',
p_value => p_arg_values(i)
end if;
end loop;
This code picks up the value from p_arg_values and assigns it to the form field.
Hope that helps.
Thanks,
Sharmila -
Pass parameters from JSP Dyn Page to WDJ Application
Hi,
I am trying to pass parameters from my JSPDyn Page to WDJ Application.
I am using NWDS 7.1 EHP1
My code is :
function to_WEBDYNHK()
EPCM.relaxDocumentDomain();
EPCM.doNavigate
('ROLES://pcd:portal_content/Himanshu.Himanshu/TestDynUIApp?DynamicParameter="hkparam%3Dqwertyuio"');
This method is being called on click of a button.
hkparam is the parameter in question.
The JSPDyn page is an iView and the WDJ application is a page and both have been assigned to a role.
In the properties of the WDJ Page, I have removed DymanicParameter from "Do not Forward These Parameters To Web Dynpro" property.
However I am getting null as the value of hkparam in my WDJ application.
The code used is :
IWDRequest request = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
String param1= request.getParameter("hkparam");
What seems to be missing here.
Please help.
I went through the documentation on SDN but it does not seem to help.
TIA,
HimanshuHi Himanshu,
Try this code.
EPCM.doNavigate("ROLES:portal_content/Himanshu.Himanshu/TestDynUIApp?hkparam=Dmypass1123")
if the parameter is hkparam and the value to be passed is Dmypass1123. You need not change any design time property of the WD page, and WDProtocolAdapter should retrive the parameter.
Regards,
Vishweshwara P.K.M. -
Passing parameters to PL/SQL table types
Hi Everybody,
I have one question about passing PL/SQL tables types and tabs as IN parameter in procedure.I am working in 11.2.0.2.0 environment. I am stuck on how to pass those values to procedure.Please find below more details:
Table 1:
CREATE TABLE ITEMS
ITEM_ID VARCHAR2(40 BYTE) NOT NULL,
ITEM_NAME VARCHAR2(40 BYTE),
SERIAL NUMBER(2),
ADDED_ON DATE);
Table 2:
CREATE TABLE ITEM_ACTIVITY_INFO
ITEM_ID VARCHAR2(40 BYTE) NOT NULL,
ACCOUNT_TYPE VARCHAR2(1 BYTE),
ID_NUMBER NUMBER(3),
ACTIVATION_DATE DATE);
Table 3:
CREATE TABLE ITEM_GROUP
GROUP_ID NUMBER(2) NOT NULL,
ITEM_ID VARCHAR2(40 BYTE),
GROUP_TYPE VARCHAR2(20 BYTE),
GROUP_DATE DATE);
Table 4:
CREATE TABLE ITEM_ADDRESS
GROUP_ID NUMBER(2) NOT NULL,
NAME VARCHAR2(60 BYTE),
ADDRESS VARCHAR2(100));
Following types are created:
CREATE OR REPLACE TYPE ITEMS_TYPE AS OBJECT
ITEM_ID VARCHAR2(40 BYTE),
ITEM_NAME VARCHAR2(40 BYTE),
SERIAL NUMBER(2),
ADDED_ON DATE);
CREATE OR REPLACE TYPE ITEM_ACTIVITY_TYPE AS OBJECT
ITEM_ID VARCHAR2(40 BYTE),
ACCOUNT_TYPE VARCHAR2(1 BYTE),
ID_NUMBER NUMBER(3),
ACTIVATION_DATE DATE);
CREATE OR REPLACE TYPE ITEM_GROUP_COMP_TYPE AS OBJECT
GROUP_ID NUMBER(2) NOT NULL,
ITEM_ID VARCHAR2(40 BYTE),
GROUP_TYPE VARCHAR2(20 BYTE),
GROUP_DATE DATE
ITEM_ADDRESS_IN ITEM_ADDRESS_TYPE);
CREATE OR REPLACE TYPE ITEM_ADDRESS_TYPE AS OBJECT
GROUP_ID NUMBER(2),
NAME VARCHAR2(60 BYTE),
ADDRESS VARCHAR2(100));
CREATE OR REPLACE TYPE ITEM_GROUP_COMP_TAB AS TABLE OF ITEM_GROUP_COMP_TYPE;
Create or replace procedure ITEM_ADD_CHANGE(
ITEM_IN IN ITEMS_TYPE,
ITEM_ACTIVITY_IN IN ITEM_ACTIVITY_TYPE,
ITEM_GROUP_IN IN ITEM_GROUP_COMP_TAB,
ITEM_OUT IN OUT ITEMS.ITEM_ID%TYPE);
Above are the paramteres we are passing to procedure.
I need help in how to pass parameters to above procedure. All comments and responses will be highly appreciated. Thanks everyone for going through the post. Please let me know if more more information is required on this problem.
Regards
DevBilly Verreynne wrote:
Types used in this fashion, only make sense if the table is based on the type. It makes very little sense to have a table structure and then to duplicate the structure using a type.
The 2 structures may be defined the same. But they are NOT interchangeable and requires one to be converted to the other to use. This is not sensible in my view. It is far easier in that case to simply use the PL/SQL macro +%RowType+ to create a duplicate structure definition - one that can natively be used for touching that table, without conversions required.
If you do want to use types, define the type, then define the table of that type, adding the required constraints (pk, fk, not null, check) to the table's definition.Billy:
Just curious, why do you say it makes very little sense to have a type modeled on a table? I do that a lot. In my case, I am getting the values from an external program, not building them manually, but it makes a lot of sense to me.
One application where I do this a lot has a java front-end that parses HL7 messages. Each message contains at least minimal information about a variable number of entities (and often several rows for an entity) in the database, and must be processed as a single atomic trasnaction. So, rather than have potentially hundreds of parameters to the "main" driver procedures for different message types I created a set of types more or less identical to the tables representing the entities. The java program parses the mesasge and populates the type, then calls the appropriate stored procedure for the message type passing in the populated types. My stored procedure then does inserts/updates or deletes as appropriate over potentially dozens of tables.
John -
Unable to Pass Parameters to I5Grid in SAP MII 14.0 SP05
Hi Experts,
There was a bug in SAP MII 14.0 SP04 where we were unable to pass parameters to I5Grid dynamically. I understand that this bug has been fixed in SP05 , so we applied following patches:
Patches installed :
a) XMII05P_4-10008694.SCA
b) XMII05_0-10008694.SCA
Note details mentioning this issue :
2016927 - I5Grid does not take into account overridden parameters when updateGrid(true) is called
But even after applying these patches, I am still not able to pass parameters to I5Grid dynamically from irpt page. Does anyone have any insight to it? Is it working for any one of you?
Regards,
KirtiHi Chirstian,
I see this change working. I was doing a mistake while passing parameter to I5grid.
What I was doing-
Grid.getQueryObject().setParameter(1, linename);
Correct Way:
Grid.getQueryObject().setParameter("Param.1", linename);
Thanks & Regards,
Kirti -
Unable to pass parameters from APEX to Oracle EBusiness suite R12 forms
Hi
We are trying to access a standard Oracle EBusiness form i.e. service request and are invoking this Form through a link from APEX.
We are trying to pass parameters via this URL
http://abc.oneapps.com:8010/OA_HTML/RF.jsp?function_id=2037&resp_id=50952&resp_appl_id=170&security_group_id=0&lang_code=US&otherparams=INCIDENT_ATTRIBUTE_15=5206
The EBusiness suite form is launched correctly but we are not able to read the parameter value through custom.pll code.
if (event_name = 'WHEN-NEW-BLOCK-INSTANCE') then
IF form_name='CSXSRISR' and block_name='SR_BSC_QUERY' then
FND_MESSAGE.DEBUG('PARAMETER.INCIDENT_ATTRIBUTE_15');
FND_MESSAGE.DEBUG(' ');
--FND_MESSAGE.DEBUG(:PARAMETER.INCIDENT_ATTRIBUTE_15);
lC_incident_number :=name_in('PARAMETER.INCIDENT_ATTRIBUTE_15');
FND_MESSAGE.DEBUG('Incident Number'||lC_incident_number);
IF lC_incident_number IS NOT NULL THEN
copy(lc_incident_number,'SR_BSC_QUERY.INCIDENT_NUMBER');
END IF;
FND_MESSAGE.DEBUG(' ');
END IF;
END IF;
Is this the right way of passing the parameters?
all technical inputs are welcome.
Regards
SamHi
We are trying to access a standard Oracle EBusiness form i.e. service request and are invoking this Form through a link from APEX.
We are trying to pass parameters via this URL
http://abc.oneapps.com:8010/OA_HTML/RF.jsp?function_id=2037&resp_id=50952&resp_appl_id=170&security_group_id=0&lang_code=US&otherparams=INCIDENT_ATTRIBUTE_15=5206
The EBusiness suite form is launched correctly but we are not able to read the parameter value through custom.pll code.
if (event_name = 'WHEN-NEW-BLOCK-INSTANCE') then
IF form_name='CSXSRISR' and block_name='SR_BSC_QUERY' then
FND_MESSAGE.DEBUG('PARAMETER.INCIDENT_ATTRIBUTE_15');
FND_MESSAGE.DEBUG(' ');
--FND_MESSAGE.DEBUG(:PARAMETER.INCIDENT_ATTRIBUTE_15);
lC_incident_number :=name_in('PARAMETER.INCIDENT_ATTRIBUTE_15');
FND_MESSAGE.DEBUG('Incident Number'||lC_incident_number);
IF lC_incident_number IS NOT NULL THEN
copy(lc_incident_number,'SR_BSC_QUERY.INCIDENT_NUMBER');
END IF;
FND_MESSAGE.DEBUG(' ');
END IF;
END IF;
Is this the right way of passing the parameters?
all technical inputs are welcome.
Regards
Sam -
Passing Parameters using key mapping in web envirnment
if I use the url for passing parameters directly to report as
http://appserver/dev60cgi/rwcgi60?report=inv.rep+server=server=repserver+userid=scott/tiger@db+param1=1+param2=2+DESTYPE etc;
it works fine but Now the problem is I m using key mapping to hide username and password for this the url is
http://appserver/dev60cgi/rwcgi60?mapkey+report=inv.rep+server=repserver+param1=1+param2=2;
where mapkey is defined in CGIcmd.dat file as
mapkey := scott/tiger@db
I have checked by rearranging the order of paramerters but still get error.
Oracle Reports Server CGI - Reports Server name is not specified.
but I m mentioning the server name as server=repserver
Hope to get it soon
Thnx in advanceYou key defined in the cgicmd.dat file should be:
mapkey := userid=scott/tiger@db *
You need parameter name 'userid=' before scott, and need space character and '*' in the line. Without '*', cgi won't take any more parameter from the URL after the key, so '+report=inv.rep+server=repserver+param1=1+param2=2' is ignored if there is no '*' for mapkey.
Maybe you are looking for
-
Why can't I get a border-less 4x6 print with iphoto 5
I always seem do get borders on the sides of my pictures. I have done the 4x6 page set-up and the constrain to 4x6 suggestions. When I click 4x6 in the print menu it say the photo won't print. When i click one photo per page I get the borders on the
-
Is there a "stackable" media card reader/writer for the Mac mini?
-
Background folder (library?) in PSE 8.0
Could someone tell me what menu or function is used to access the images in the folder C:\Documents and Settings\All Users\Application Data\Adobe\Photoshop Elements\8.0\Photo Creations\backgrounds ? Since PSE 8 populated this folder with a library o
-
Hi, I wrote a function to convert from blob to varcahr2 as like bellow.how can i test this function(give me any anonomous block for test.) create or replace FUNCTION BLOBCONVERT ( var_gdtxft blob) return varchar2 is var_text VARCHAR2(6000); BEGIN SEL
-
Can't modify mask incrustation
Hello, when i add a mask incrustation on a movie part of the timeline, i'm not able to move the selectable point to adapt it. I click and a appeared in the ring, but i can't move it. Is this a special combinaison of key i should do before ?