Passing request to htmldb_goSubmit
I have an onLoad java script as onUnload:"javascript:htmldb_goSubmit(:REQUEST);"
in my page level attributes(Page HTML body attribute).
The request could be a parent tab,a standard tab or a breadcrumb menu item. If I press Cancel on the htmldb_goSubmit alert then I want to do nothing else I want to execute the REQUEST(that is, go to that tab/breadcrumb page) but passing :REQUEST is not working, what else should I use ?
Thanks in advance
Hi im actually trying to pass the request (a HttpServletRequest object) but when i use the methods suggested above i get an error cannot cast from Object to [type].
I could do the task by passing a formdata object (my own class) and a boolean instead of the request.
I have tried with a boolean and the HttpServletRequest but always get the same error!
Message was edited by:
Ryion69
Similar Messages
-
Request Set - Passing Request Id as Parameter
Hi Guys,
I have following request set
STAGE1: Receiving Transaction Processor
STAGE2: Receiving Interface Error Report
STAGE3: Send Email (This custom program)
Send Email Program looks for Request ID of Receiving Interface Error Report and sends out and email with attachement. The attachement is output of Receiving Interface Error Report.
So my question is...how can i pass request id of STAGE2 request.
thanks in advance
Prashant PathakPrashant,
This might help you.
select request_id from fnd_concurrent_requests a
where description='2'
and exists (
select 1 from fnd_concurrent_requests b
where b.request_id=<your_request_id>
and a.parent_request_id=b.parent_request_id);
Thanks
Nagamohan -
Passing Request Attributes in betweeen pageflow Portlets
Hi
How to pass Request Attributes in between Pageflow Portlets
I tried with ScopedServletUtils class but it's not working for me
ThanksConsider using events to pass data between portlets. Refer to docs about
Interportlet Communication (IPC).
Subbu
Srinivasa Reddy Kapidi wrote:
Hi
How to pass Request Attributes in between Pageflow Portlets
I tried with ScopedServletUtils class but it's not working for me
Thanks -
Passing Request Parameters to Non JSF Page
I want to pass request parameters from a JSF page (Page1.jsp) to a non JSF page (paramTest.jsp) and am having trouble.
The parameters are 'null' in the non JSF page.
Here is code (in Page1.java) that is called when 'button1' is clicked in Page1.jsp (modified from JSF, Bergsten p.167):
public String button1_action() {
FacesContext context = javax.faces.context.FacesContext.getCurrentInstance();
ExternalContext ec = context.getExternalContext();
try {
ec.redirect("http://xxx/paramTest.jsp");
} catch (Exception e) {
// print exception information in the server log
log("Exception occurred when redirecting page", e);
error("Trouble redirecting page");
return null;
context.responseComplete();
return "success";
}Here is Page1.jsp code: <?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page">
<jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
<jsp:text><![CDATA[
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
]]></jsp:text>
<f:view>
<html lang="en-US" xml:lang="en-US">
<head>
<meta content="no-cache" http-equiv="Cache-Control"/>
<meta content="no-cache" http-equiv="Pragma"/>
<title>Page1 Title</title>
<link href="resources/stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body style="-rave-layout: grid">
<h:form binding="#{Page1.form1}" id="form1">
<h:inputText binding="#{Page1.name}" id="name" style="left: 144px; top: 96px; position: absolute"/>
<h:outputLabel binding="#{Page1.componentLabel1}" for="componentLabel1" id="componentLabel1" style="left: 72px; top: 96px; position: absolute">
<h:outputText binding="#{Page1.componentLabel1Text}" id="componentLabel1Text" value="Name:"/>
</h:outputLabel>
<h:commandButton action="#{Page1.button1_action}" binding="#{Page1.button1}" id="button1" onclick="this.form.submit() style="left: 120px; top: 144px; position: absolute" value="Submit"/>
<h:messages binding="#{Page1.messageList1}" errorClass="errorMessage" fatalClass="fatalMessage" id="messageList1" infoClass="infoMessage"
showDetail="true" style="left: 480px; top: 72px; position: absolute" warnClass="warnMessage"/>
</h:form>
</body>
</html>
</f:view>
</jsp:root>Here is the rendered Page1.jsp html: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en-US" lang="en-US">
<head>
<meta http-equiv="Cache-Control" content="no-cache"/><meta http-equiv="Pragma" content="no-cache"/>
<title>Page1 Title</title>
<link type="text/css" rel="stylesheet" href="resources/stylesheet.css"/>
</head>
<body style="-rave-layout: grid">
<form id="form1" method="post" action="/cenwkd/faces/Page1.jsp;jsessionid=79A5577F53DAAEDF164C5D33F33D8327" enctype="application/x-www-form-urlencoded">
<input id="form1:name" type="text" name="form1:name" style="left: 120px; top: 96px; position: absolute" />
<label id="form1:componentLabel1" for="form1:componentLabel1" style="left: 72px; top: 96px; position: absolute">
<span id="form1:componentLabel1Text">Name:</span></label>
<input id="form1:button1" type="submit" name="form1:button1" value="Submit" onclick="" style="left: 120px; top: 144px; position: absolute" />
<input type="hidden" name="form1" value="form1" />
</form>
</body>
</html> Here is the source for a test jsp, paramTest.jsp: <html>
<head>
<title>
paramTest
</title>
</head>
<body>
<h2><%= request.getParameter("form1:name")%></h2>
<%-- Also tried: request.getParameter("name"), "name" is the original 'id' value for the text field entered in Creator
it apparently is changed to "form1:name" when the html is rendered--%>
</body>
</html>Here is the rendered html from paramTest.jsp: <html>
<head>
<title>
paramTest
</title>
</head>
<body>
<h2>null</h2>
</body>
</html>Any help would be much appreciated.Hi,
I dont see any parameters that you are trying to pass in the below code.
public String button1_action() {
FacesContext context = javax.faces.context.FacesContext.getCurrentInstance();
ExternalContext ec = context.getExternalContext();
try {
ec.redirect("http://xxx/paramTest.jsp");
} catch (Exception e) {
// print exception information in the server log
log("Exception occurred when redirecting page", e);
error("Trouble redirecting page");
return null;
context.responseComplete();
return "success";
} -
How & Where Assign & Pass Request in package application
hi friends,
i am using package application to learn more about apex.here i have face some problems ,
On page no 1, there are an intractive report,but it shows only Customer Name, Referencable, Users, Summary, Web Site, Category ,Status column in intractive report but there are more column in Report Attributes ,
Plese tell me how does developer hide the unnessary column in intractive report on page no 1.
2nd Problem is,
i am not getting how & where developer assign & pass request LAST_PAGE_VISITED .Developer create an processes name Load Data on page no 1
if :REQUEST = 'REPORTS' then
:LAST_PAGE_VISITED := 20;
else
:LAST_PAGE_VISITED := 30 ;
end if;
i am not getting the meaning of this code and where developer pass and assign this Request.
What are the role of this code.
My Login Details
Workspace-->customertraker
username-->[email protected]
password-->piwufo
Application --> 2923
Thanks
Manoji just need to have my message be dynamic. However, i am not using validation.xml.
i can either use
in My actionClass.java, i am using
}ResourceBundle res = ResourceBundle.getBundle("struts/resource/MessageResource");
res.get("message.notify")
//Is it possible to set the value of {0} from here on my resource.properties?
or in my JSP
<fmt:message key="message.notify"/>Thank you -
Configuring WL to pass requests to Actuate Report Server
Hi,
I have read all the documentation and checked the newsgroups.All seem to talk about
passing requests FROM IIS/Netscape/Apache etc TO WL.However my requirement is to
configure WL to forward a particular type of request to Actuate Report Server since
I am using WL as a webserver/App server.
I would be really glad if somebody could throw some light on this issue.
--VijayHi,
We have worked on Actuate. In our case we had java classes sitting in the
WebLogic VM and talking
to Actuate using JNI. The public interfaces of these wrapped classes were
called in JSP's. I doubt if there
is anything like configuring WLS for Actuate?
Bharat
Vijay <[email protected]> wrote in message
news:3a941af9$[email protected]..
>
Hi,
I have read all the documentation and checked the newsgroups.All seem totalk about
passing requests FROM IIS/Netscape/Apache etc TO WL.However my requirementis to
configure WL to forward a particular type of request to Actuate ReportServer since
I am using WL as a webserver/App server.
I would be really glad if somebody could throw some light on this issue.
--Vijay -
Newbie: what is the equivalent of passing request parameters?
Hi-
I am new to JSF. I have read many tutorials and articles. I still don't get one concept about passing parameters. Note: I don't want to store stuff in the session unless I have to.
Let's say I have a page with a list of users. I layout the page with a panelGrid. Each row of the table has the first and last name of the user. If a user clicks on the name of a user on the user list, it should go to the user profile page. The backing bean for the user list page will be the UserListBean. It has a method called getUsers() that returns a List of User objects.
For the View User page, I have a ViewUserBean. The ViewUserBean retrieve the entire profile for that user.
How do I pass the user ID to the ViewUserBean? In struts, I would pass it as a request parameter (I would manually write the link URL with the userID). I know I can use the request like that in JSF, but that seems ugly. I looked at the code of the J2EE bookstore tutorial and it does a funky thing with all sorts of data stored in the session.
What is the best way to request a page and "pass in" a userID?
Thanks for your help.
AdamI have a case on my current project very similar to your case. What you want, very simply, is an easy way to allow faces to handle URLs like http://www.domain.com/showUserDetails?userId=50
The natural trouble is that when loading the page, there is no action to use to prefetch the User object based on the Request Parameters in JSF.
All the solutions above either rely on the session or they are exceedingly complex. This case is actually very easy to do and is very straight forward using Managed Properties and a Request Scope bean...
Here is the rather straight forward solution I used...
First, make a "ShowUserDetailsBean" which represents the "logic" for this page.
public class ShowUserDetailsBean
/** Will point to the actual user service after dependency injection*/
private UserService userService;
/** Will hold the userId from the HTTP Request Parameters*/
private String userId;
/** Will hold a lazy loaded copy of the User object matching userId*/
private User user;
public void setUserService(UserService userService) {
this.userService = userService; //dependecy injection
public void setUserId(String userId) {
this.userId = userId; //dependency injection
/** Lazy loads the User object matching the UserId */
public User getUser() {
//Trap the case where the URL has no userId
if (userId == null) return null;
if (user == null) {
user = userService.getUser(userId); //Lazy Load
return user;
}Next, configure the managed properties in faces-config.xml
<faces-config xmlns="http://java.sun.com/JSF/Configuration">
<managed-bean>
<managed-bean-name>userService</managed-bean-name>
<managed-bean-class>foo.UserServiceImpl</managed-bean-class>
<managed-bean-scope>application</managed-bean-scope>
</managed-bean>
<managed-bean>
<managed-bean-name>showUserDetails</managed-bean-name>
<managed-bean-class>foo.ShowUserDetailsBean</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>userService</property-name>
<property-class>foo.UserService</property-class>
<value>#{userService}</value>
</managed-property>
<managed-property>
<property-name>userId</property-name>
<property-class>java.lang.String</property-class>
<value>#{param.userId}</value>
</managed-property>
</managed-bean>Finally, you just make your webpage as you normally would...
<h:outputText value="#{showUserDetails.user.userId}"/>
<h:outputText value="#{showUserDetails.user.firstName}"/>
<h:outputText value="#{showUserDetails.user.lastName}"/>
Now you're ready to test, so you visit the page
http://www.domain.com/showUserDetails?userId=50
And your user details with userId=50 appears!
It's just that simple!
Regards,
Doug
Caveat: I haven't added any sample logic to handle cases where you visit:
http://www.domain.com/showUserDetails
without specifying a userId. I suggest you add some basic logic to your page to handle this case more gracefully. -
Passing request value into a query
Hi,
I was wondering whether it was possible to pass a request value into a report query in apex 3.2.
I have a button with a submit value of "ALL" which when pressed i need to open up all the contents of a query as opposed to on those that have been completed.
SELECT *
FROM TABLE
WHERE (STATUS = 'COMPLETE' OR :REQUEST = 'ALL')
I was expecting this to return only completed records, unless the Button is pressed and then I want to return all records regardless of status.
Can someone please advise whether this will work? At present it does not seem to recognise the request.
Cheers,
ca84query could not be parsed: select "ASCIDD" "ASCIDD", "TEMIDD1" "TEMIDD1", "NAME" "NAME", "LSTIDD1" "LSTIDD1", "ASCORDOPT"
"ASCORDOPT", "ASCORD" "ASCORD", "TEMIDD2" "TEMIDD2", "TEMDES_COUNT" "TEMDES_COUNT" from ( /* Formatted on 2010/12/06
15:23 (Formatter Plus v4.8.8) */ SELECT ascidd, temidd1, (SELECT temdes FROM lsttem WHERE temtyp = 'D' AND lsttem.temidd =
temidd1) NAME, lstidd1, ascordopt,ascord,TEMIDD1 TEMIDD2, CASE (:REQUEST) WHEN 'COUNT' THEN
LSTTEM_PKG_1.CountRecords(TEMIDD1) ELSE 0 END "TEMDES_COUNT" FROM lsttemasc WHERE lstidd1 = :p355_lstidd and exists
(select 'y' from lsttem where bizidd1 = :P355_BIZIDD1 and lsttem.TEMIDD = lsttemasc.TEMIDD1) order by ascord;) apex$_rpt_src
failed to parse SQL query: ORA-00911: invalid characterThe ";" looks very suspicious...
And please:
<li>Update your forum profile with a better handle than "user13453962"
<li> DON'T post unrelated questions as follow-ups to existing threads. This issue is not connected to the OP. -
Passing request of file input type to a jsp
Hi i m using this script for file uploading the form is.... <html > <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <form action="uploadscript.jsp" name="filesForm" enctype="multipart/form-data" method="post">
Please specify a file, or a set of files:
<input type="file" name="userfile_parent" value="userfile_parent" >
<input type="submit" value="submit" value="Send">
</form> </body> </html> And i am tring to get the url on uploadscript.jsp by using String parentPath=request.getParameter("userfile_parent"); but i foud that its value is NULL it is not working what should i do to get the userfile_parent on uploadscript.jsp help me!!! Message was edited by: UDAY Message was edited by: UDAY
avajain
Posts: 135
From: Noida , India
Registered: 5/10/06
Read Re: Passing response but getting NULL
Posted: Sep 20, 2006 2:43 AM in response to: UDAY in response to: UDAY
Click to reply to this thread Reply
Use method="GET" in place of method="post" .
Thanks
UDAY
Posts: 26
From: JAIPUR
Registered: 8/14/06
Read Re: Passing response but getting NULL
Posted: Sep 20, 2006 3:18 AM in response to: avajain in response to: avajain
Click to edit this message... Click to reply to this thread Reply
now it is giving this error message by e.getMessage()
[br]the request doesn't contain a multipart/form-data or multipart/mixed stream, content type header is null
the uploadscript is this....
http://www.one.esmartstudent.com
can u please help me.Here is sample code which we have used in one of our projects with org.apache.commons.fileupload.*.
You can find String fullName = (String) formValues.get("FULLNAMES"); at the end that gives name of file.
<%@ page import="java.util.*"%>
<%@ page import="java.util.List"%>
<%@ page import="java.util.Iterator"%>
<%@ page import="java.io.File"%>
<%@ page import="java.io.*"%>
<%@ page import="org.apache.commons.fileupload.*"%>
<%@ page import="org.apache.commons.fileupload.disk.*"%>
<%@ page import="org.apache.commons.fileupload.servlet.*"%>
<%!
//method to return file extension
String getFileExt(String xPath){
//Find extension
int dotindex = 0; //extension character position
dotindex = xPath.lastIndexOf('.');
if (dotindex == -1){ // no extension
return "";
int slashindex = 0; //seperator character position
slashindex = Math.max(xPath.lastIndexOf('/'),xPath.lastIndexOf('\\'));
if (slashindex == -1){ // no seperator characters in string
return xPath.substring(dotindex);
if (dotindex < slashindex){ //check last "." character is not before last seperator
return "";
return xPath.substring(dotindex);
%>
<%
Map formValues = new HashMap();
String fileName = "";
boolean uploaded = false;
// Check that we have a file upload request
boolean isMultipart = FileUpload.isMultipartContent(request);
//Create variables for path, filename and extension
String newFilePath = CoeResourceBundle.getEmailProperties("FILE_UPLOAD_PATH");//application.getRealPath("/")+"temp";
String newFileName ="";
String FileExt = "";
//System.out.println(" newFilePath"+newFilePath+"/");
//out.println(" newFilePath"+newFilePath+"<br>");
// Create a factory for disk-based file items
FileItemFactory factory = new DiskFileItemFactory();
// Create a new file upload handler
ServletFileUpload upload = new ServletFileUpload(factory);
// Parse the request
List /* FileItem */ items = upload.parseRequest(request);
// System.out.println(" newFilePath"+newFilePath+"/");
// Process the uploaded items
Iterator iter = items.iterator();
//Form fields
while (iter.hasNext()) {
//System.out.println("in iterator");
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
String name = item.getFieldName();
String value = item.getString();
if (name.equals("newFileName")) {
newFileName = value;
//System.out.println("LOADING");
formValues.put(name,value);
else {
//System.out.println("in iterator----");
String fieldName = item.getFieldName();
fileName = item.getName();
int index = fileName.lastIndexOf("\\");
if(index != -1)
fileName = fileName.substring(index + 1);
else
fileName = fileName;
FileExt = getFileExt(fileName);
String contentType = item.getContentType();
boolean isInMemory = item.isInMemory();
long sizeInBytes = item.getSize();
if (fileName.equals("") || sizeInBytes==0){
out.println("Not a valid file.<br>No upload attempted.<br><br>");
} else {
// out.println("ACTUAL fileName= " newFilePath"\\"+fileName+ "<br>");
//File uploadedFile = new File(newFilePath+"\\", newFileName+FileExt);
File uploadedFile = new File(newFilePath+"/",fileName);
File oldFile = new File(CoeResourceBundle.getEmailProperties("FILE_UPLOAD_PATH")+"/"+fileName);
File oldFileApproved = new File(CoeResourceBundle.getEmailProperties("APPROVED_FILE_LOCATION")+"/"+fileName);
try{
if (!oldFile.exists()&&!oldFileApproved.exists())
item.write(uploadedFile);
uploaded = true;
//out.println(fileName+" was successfully uploaded as "+ newFileName+FileExt +".<br><br>");
catch (java.lang.Exception e) {
out.println("Errors prevented the file upload.<br>"+fileName+ " was not uploaded.<br><br>");
String userid = (String) formValues.get("USERID");
String fullName = (String) formValues.get("FULLNAMES");
String email = (String) formValues.get("EMAILID");
String empno = (String) formValues.get("EMPNO");
String docType = (String) formValues.get("DOCTYPE");
String desc = (String) formValues.get("MYTEXT");
String title = (String) formValues.get("TITLEBOX");
String module = (String) formValues.get("MODULE");
String techfunctype = (String) formValues.get("TECHFUNCTYPE");
%> -
How to pass request parameter to bounded task flow?
Hi, this is probably a simple question, but just not sure how this should be done. I have a .jspx that contains an ADF region for a bounded task flow. The task flow has a required input parameter, e.g. objectId. I want to be able to pass a request parameter that's sent into the .jspx page to the task flow. For example, Test.jspx?id=123 should pass 123 for the objectId input parameter of the task flow.
When adding the ADF region to the page, the Edit Task Flow Binding dialog prompted for a value for the objectId input parameter. I wasn't sure what I can put for the value so I just hard-coded something like 123 for now. So in the page definition file, sometihng like the following got added:
<taskFlow id="testtaskflow1"
taskFlowId="/WEB-INF/taskflow/test/test-task-flow.xml#test-task-flow"
activation="deferred"
xmlns="http://xmlns.oracle.com/adf/controller/binding">
<parameters>
<parameter id="objectId" value="123"/>
</parameters>
</taskFlow>I'm wondering is there some EL expression I can use for the parameter value that gets the value of the id request parameter passed into the .jspx? Thanks.you have to use it like.. #{bean.idValue} and in the getter of the id Value use it like
private int idValue;
//setter
//getter
public int getIdValue(){
HttpServletRequest request =
(HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
int id = request.getParameter("id");
return id;
} -
Passing request table to Jco function
Hello Experts,
We have one requirement where we need to pass the table data from the BLS to SAP Jco Function Module call. For example we are reading the material numbers from the oracle database and then we need to pass these material numbers to SAP Function Module as a table to read the further details from SAP for the given material numbers.
We wrote a custom function module in SAP which accepts the material number as table. Is it possible to pass the table request parameter to Function Module? If possible how can we do this? I tried to pass the XML document to Function Module table, but no luck.
Thanks
MohanMohan,
in the BLT, configure the JCO action to use you custom function. After pressing enter, MII reads the xml structure of the function (if the connection MII to SAP is working). In the further processing of the BLT, you can fill the RFC table which you can see in the link editor using your query results and the link editor types "AppendXML" or "AppendAfter".
The following thread might help: [RFC call with multiple input|http://forums.sdn.sap.com/click.jspa?searchID=34070350&messageID=8134561].
Michael -
Pass request parameter to portlet in jsp
Hi,
I wrote a simple PDK portlet that passes a request parameter to itself. Integrated in a portal page, the parameter passing works as intended.
Integrated in a jsp using the Oracle taglib, the parameter passing does not work. Here is the code I am using:
<portal:usePortal />
<html>
<head>
<title>Test-JSP</title>
</head>
<portal:showPortlet name="myPortlet" header="false"/>
</body>
</html>
(index.jsp)
<?xml version = '1.0' encoding = 'UTF-8'?>
<?providerDefinition version="3.1"?>
<provider class="oracle.portal.provider.v2.DefaultProviderDefinition">
<session>false</session>
<passAllUrlParams>false</passAllUrlParams>
<preferenceStore class="oracle.portal.provider.v2.preference.FilePreferenceStore">
<name>prefStore1</name>
<useHashing>true</useHashing>
</preferenceStore>
<portlet class="oracle.portal.provider.v2.DefaultPortletDefinition">
<id>1</id>
<name>MyPortlet</name>
<title>My Portlet</title>
<description>My Portlet</description>
<timeout>40</timeout>
<showEditToPublic>false</showEditToPublic>
<hasAbout>false</hasAbout>
<showEdit>false</showEdit>
<hasHelp>false</hasHelp>
<showEditDefault>true</showEditDefault>
<showDetails>false</showDetails>
<renderer class="oracle.portal.provider.v2.render.RenderManager">
<renderContainer>true</renderContainer>
<renderCustomize>true</renderCustomize>
<autoRedirect>true</autoRedirect>
<contentType>text/html</contentType>
<showPage>/jsp/show.jsp</showPage>
<editDefaultsPage>/jsp/editdefaults.jsp</editDefaultsPage>
</renderer>
<personalizationManager class="oracle.portal.provider.v2.personalize.PrefStorePersonalizationManager">
<dataClass>oracle.portal.provider.v2.personalize.NameValuePersonalizationObject</dataClass>
</personalizationManager>
</portlet>
</provider>
(provider.xml)
What did I do wrong?
Regards
ThomasI forgot to mention that the jsp is external and that I am using Portal 10.1.2.
With internal jsps the parameter passing works fine.
Amazingly portletRenderRequest.getRenderContext().getPageURL() contains the request parameter. It would be possible to extract it from the url. But I really don't want to do that. -
Passing Request to a POPUP LOV from previous page
Hi All,
I'm stuck again :( and its urgent..
I have a popup LOV and i want to populate values in it based on REQUEST coming from first page.
If I click CREATE on first page POPUP LOV should display certain values and if I click UPDATE on first page, it should populate different set of values.
Also when I navigate further from this page and return back, the LOV's should have values based on previous request selected.
For this I have created an item P_REQ which stores value of request from first page i.e :P_REQ wil have values CREATE or UPDATE.
Now I'm able to pass this value to a select list. However a POPUP list is not able to fetch this P_REQ value.
MY query for LOV is as below
select d1 d ,r1 r
from
(select name d1 ,ID r1,'C' up_cr
FROM Client
'WHERE statusid in (1,3)
union
select name d1,ClientID r1,'U' up_cr
FROM Client_List)
where up_cr = decode(:P_REQ,'CREATE','C','U')
ORDER BY d1
Kindly help.. Its Urgent..Hi,
If you use that computation to set the value of P_REQ it is actually also saving it in the session. The value stored can then be retrieved by the popup LOVs query using :P_REQ so you don't need to pass the value at all as it is already available.
To see this, go to: [http://apex.oracle.com/pls/otn/f?p=33642:237] The list of employees has INSERT or UPDATE in the final column. This is used in the link on the EMPNO column as the "Request" setting. This link passes you to another page which uses the computation to set the value in P238_REQUEST (this is displayed on the screen). Then you have a link to "Open popup". All this does is open another page which has a region with a source of: Request value: &P238_REQUEST.
Andy -
Passing request data with Flashvars
I need to pass query parameters from one application to another and am following an example in help docs at
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf626ae-7feb.html
So I am passing parameters through the wrapper object as below:
<%
String userId = (String) request.getParameter("userId");
String authToken = (String) request.getParameter("authToken");
%>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
<!-- For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection. -->
var swfVersionStr = "10.0.0";
<!-- To use express install, set to playerProductInstall.swf, otherwise the empty string. -->
var xiSwfUrlStr = "playerProductInstall.swf";
var flashvars = {};
flashvars.userId = "<%= userId %>";
flashvars.authToken = "<%= authToken %>";
var params = {};
params.quality = "high";
params.bgcolor = "#869ca7";
params.allowscriptaccess = "sameDomain";
params.allowfullscreen = "true";
var attributes = {};
attributes.id = "xacmlMain";
attributes.name = "xacmlMain";
attributes.align = "middle";
swfobject.embedSWF(
"main.swf", "flashContent",
"100%", "100%",
swfVersionStr, xiSwfUrlStr,
flashvars, params, attributes);
<!-- JavaScript enabled so display the flashContent div in case it is not replaced with a swf object. -->
swfobject.createCSS("#flashContent", "display:block;text-align:left;");
</script>
In the mxml file:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:mod="mod.*"
applicationComplete="readParams(event)"
layout="vertical" height="100%" width="100%">
protected function readParams(event:Event) : void {
var userId:String;
var authToken:String;
var subjectParams:Object = root.loaderInfo.parameters;
for (var subjectParam:String in subjectParams) {
userId = subjectParams["userId"];
authToken = subjectParams["authToken"];
//userId = root.loaderInfo.parameters.userId;
Alert.show ("\t" + "userId value" + ":\t" + userId + "\n" +
"\t" + "authToken value" + ":\t" + authToken + "\n" );
However, seems like this part of the code is not working:
flashvars.userId = "<%= userId %>";
flashvars.authToken = "<%= authToken %>";
because instead of the values passed these variables, my app reads
< userId
< authToken
if I use values which are fixed, it works fine e.g.
flashvars.userId = "smith";
Your help will be much appreciated
Thank you.What technology are you using? JSP, PHP? I think the example you are using was for JSP.
- Jason -
How Web Server pass request IP Address as the environment variable?
How can I config the Web server in order to pass the URL request IP address as the environment variable?
Are you inspecting the environment from a CGI program? The definitive guide to the CGI standard is the CGI/1.1 specification at http://hoohoo.ncsa.uiuc.edu/cgi/env.html
iPlanet-specific enhancements to CGI are described in the iPlanet Web Server Programmer's Guide.
REMOTE_ADDR is probably the variable you're interested in.
Maybe you are looking for
-
CS5 Crop area + export jpeg
Hi everyone! Just got CS5 (very exciting). Upgraded from CS3. Now in CS3 you could just go Object>Crop Area>Make then when you export as jpeg only what is on the art board will show up on the jpeg. I've seen other people talking about the art board t
-
Setting a Thread specific Locale
I am developing applications in an environment where the the system language is unlikely to be the language being processed. In .NET I can create a thread to do some processing of text in a language other than the current application language by sett
-
Internal Error Occured with time split...please help
Hi All, During delta data load to the cube I am getting error 'Internal Error Occured with time split' in processing and data is coming till PSA and got error in PSA.There is no field found that is time dependent and I am unable to fix it in PSA by e
-
Bootcamp 3.1 Macbook Pro 15 Unibody Late 2008 fans working now?
I just upgraded bootcamp to 3.1 on my macbook pro 15 unibody late 2008. I ran Windows Experience Index under win7 Pro 64bit and the fans were humming loud and clear during the test which is a good sign. It runs about the same as when using 9600 in Le
-
Is there any Function Module to create SERIAL NUMBER
Hi All, I need to create "SERIAL NUMBER" by passing "Material & Equipment Category ('S' -Always) ". Plz Advise me , is there any Function Module to Create "Serial Number ". Thanks in Advance. Vyshu.