Pass item from a page to another
Hello,
I am trying to pass the item P3_QUESTION to the item P8_QUESTION from a page to another. I have used v('P3_QUESTION') in the source field from P8_QUESTION item and it didn't work.
Could you help me to solve this problem?
Thank you,
Ruxandra
Thank you!
Now it works, what I did wrong was that I didn't have for item P8_QUESTION the *"Maintain session state"* settled on *"Per User"*, I used *"Per Session"*. Also, the source type should be PL/SQL EXPRESSION OR FUNCTION and source value :P3_QUESTION.
Edited by: user12169516 on Oct 12, 2010 2:09 PM
Similar Messages
-
Need Urgent help in passing items from one page to another
Hi
I have a page with item "X" holding a value. The page displays a report in which one of the fields "Devide name" is a link to Interface page. By clicking the link on "Device name" Im passing the value device name to another page and displayes all the interfaces under the device.
But I need to access the variable "X" also in the second page i:e Interface page.
Can somebody help me on this?
~roseThe problem is is P29_IV_SERVERS is defined in page 29 and Im using
UPDATE PROVISION_IV
SET PROVISION_STATE_ID = 2,SERVER_ID = :P29_IV_SERVERSin page 50. That was my initial issue. As suugested I used the '&' and its throwinf error..
Here is my complete code.
DECLARE
LATEST_TASK_ID Number;
TASK_NAME_IV varchar2(50);
--TASK_NAME_ISM varchar2(50);
SELECT_FLAG_IV Number:=1;
--SELECT_FLAG_ISM Number:=1;
DS_COUNT_IV Number;
--DS_COUNT_ISM Number;
DS_ID_IV Number;
--SELECT_FLAG_IV:=1;
--SELECT_FLAG_ISM:=1;
BEGIN
FOR i in 1..APEX_APPLICATION.G_F10.count
LOOP
UPDATE PROVISION_IV
SET "PROVISION_STATE_ID" = 2,"SERVER_ID" = :P29_IV_SERVERS
--SET "PROVISION_STATE_ID" = 2,"SERVER_ID" = 2
WHERE
TERMINATION_ID=APEX_APPLICATION.G_F10(i);
SELECT DELIVERED_SERVICE_ID INTO DS_ID_IV FROM DELIVERED_SERVICE
WHERE DELIVERED_SERVICE_NAME=APEX_APPLICATION.G_F11(i);
SELECT COUNT(*) INTO DS_COUNT_IV FROM DELIVERED_SERVICE_MAPPING
WHERE TERMINATION_ID=APEX_APPLICATION.G_F10(i);
IF DS_COUNT_IV=0 THEN
INSERT INTO DELIVERED_SERVICE_MAPPING
(ID,
CUSTOMER_ID,
EQUIPMENT_ID,
TERMINATION_ID,
DELIVERED_SERVICE_ID,
LAST_MODIFIED_BY,
LAST_MODIFIED_ON)
VALUES
(DELIVERED_SERVICE_SEQ.nextval,
NULL,
NULL,
APEX_APPLICATION.G_F10(i),
DS_ID_IV,
:APP_USER,
sysdate);
SELECT_FLAG_IV:=0;
ELSE
UPDATE DELIVERED_SERVICE_MAPPING SET DELIVERED_SERVICE_ID = DS_ID_IV,
LAST_MODIFIED_BY = :APP_USER,
LAST_MODIFIED_ON = sysdate
WHERE TERMINATION_ID = APEX_APPLICATION.G_F11(i);
SELECT_FLAG_IV:=0;
END IF;
END LOOP;
IF SELECT_FLAG_IV=0 THEN
IF :P29_CHECK_TASK_NAME_IV=1 THEN
IF :P29_TASK_NAME_IV is NULL THEN
TASK_NAME_IV:=:APP_USER||'_INTERFACE PROVISIONING_'||SYSDATE;
INSERT INTO TASKS
(TASK_ID,
TASK_NAME,
CREATED_BY,
CREATED_ON,
TASK_ACTION,
TASK_STATE_ID,
SERVER_ID)
VALUES
(TASK_ID_SEQ.nextval,
TASK_NAME_IV,
:APP_USER,
sysdate,
5,
1,
2);
ELSE
INSERT INTO TASKS
(TASK_ID,
TASK_NAME,
CREATED_BY,
CREATED_ON,
TASK_ACTION,
TASK_STATE_ID,
SERVER_ID)
VALUES
(TASK_ID_SEQ.nextval,
:P29_P50_TASKNAME,
:APP_USER,
sysdate,
5,
1,
2);
END IF;
SELECT max(TASK_ID) INTO LATEST_TASK_ID from TASKS where CREATED_BY=:APP_USER;
FOR i in 1..APEX_APPLICATION.G_F01.count
LOOP
INSERT INTO TASK_DETAILS
(TASK_DETAILS_ID,
EQUIPMENT_ID,
TERMINATION_ID,
TASK_ID)
VALUES
(task_detail_seq.nextval,
:P29_TO_INTERFACEPAGE,
APEX_APPLICATION.G_F10(i),
LATEST_TASK_ID);
END LOOP;
END IF;
END IF;
END;I have the variables P29_CHECK_TASK_NAME_IV, P29_TASK_NAME_IV and P29_IV_SERVERS defined in page 29.
But the above query is written in page 50, so I want to access the value of these variables as set in pahe 29.. :-( -
Problems when copying item from a page to another one
I am copying a value of an item, from a page to another one in branch, and it cuts the value to me in ' : '
ej: item a = 08:00 Hs
item b = 08
thanks
Juan PabloI had to deal with the same thing and I know at least two solutions - one is "dirty" and the other one is a "clean":
1. dirty - replace ':' (colon) with ';' (semicolon) and pass that value using URL. On the page, where your item(s) is, create a computation using REPLACE(P1_ITEM, ';', ':') on load and before header.
2. clean - as Scott says and it works in many cases - pass only a primary key and a request to your target page and create there a procedure to fetch the values you need and populate the items
If you use the documentation and search on keywords "COMPUTATION" and "REQUEST", you will find a lot of usefull information.
Denes Kubicek -
Passing paremeters from one page to another
Hi,
I want to pass parameters from one page to another page. On the first page, I
have a form portlet based on scott.dept and one the second page I have another
form portlet based on scott.emp. Now I intend to pass deptno as parameter to
get the detailed info on the other page.
Any help would be highly appreciated.
ThanksSearching in these forums will answer most of your questions
please see :-
Select permissions for different schemas
Re: PL/SQL Tuning Issues
Where I can get Dealership for sale of Oracle E-Business Suite 11i -
Getting error , while passing parameters from one page to another page
Hello friends,
i am getting error, while passing parameters from one page to another page, below code i wrote.
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
ArrayList arl=new ArrayList();
EresFrameworkAMImpl am=(EresFrameworkAMImpl)pageContext.getApplicationModule(webBean);
ERecordImpl ERecordObj=new ERecordImpl();
HashMap hMap = new HashMap();
hMap.put("1",ERecordObj.getTransactionName());
hMap.put("2",ERecordObj.getTransactionKey());
hMap.put("3",ERecordObj.getDeferredMode());
hMap.put("4",ERecordObj.getUserKeyLabel());
hMap.put("5",ERecordObj.getUserKeyValue());
hMap.put("6",ERecordObj.getTransactionAuditId());
hMap.put("7",ERecordObj.getRequester());
hMap.put("8",ERecordObj.getSourceApplication());
hMap.put("9",ERecordObj.getPostOpAPI());
hMap.put("10",ERecordObj.getPayload());
// hMap.put(EresConstants.ERES_PROCESS_ID,
if(pageContext.getParameter("item1")!=null)
pageContext.forwardImmediately(EresConstants.EINITIALS_FUNCTION,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
hMap,
true,
OAWebBeanConstants.ADD_BREAD_CRUMB_YES
Error(71,2): method forwardImmediately(java.lang.String, byte, null, java.util.HashMap, boolean, java.lang.String) not found in interface oracle.apps.fnd.framework.webui.OAPageContext
Thanks
krishna.Hi,
You have imported the wrong class for HashMap.
Import
com.sun.java.util.collections.HashMap; instead of java.util.HashMap
Thanks,
Gaurav -
In desiging my website, I would like to be able to move items from one page to another by dragging and dropping from the plan architecture screen. It might also help if the window could have a zoom in and out feature to facilitate that.
I just tried zooming in the plan window and discovered it works.
-
Passing items from one tab to another
Hi there,
I have two reports, each on a seperate tab, I would like to pass values from one tab to another, anybody know how I can achieve this. Thanks...
Edited by: user9129179 on 10-Mar-2010 04:21Ahh, I see - thanks for clarifying.
I think in that case it would be easier simply to reference the value of the item on the other page instead of pushing the value to the target page.
e.g. on page 100...
:P100_SOME_ITEM := :P200_SOME_ITEM; -- Read value from Page 200Would that work for you?
Additional:
Editing the item on the target page, under the Source section:
- Source Used = Always, replacing any existing value in session state
- Source Type = Item (application or page item name)
- Source Value = <name of item on source tab>
Edited by: FFS on 10-Mar-2010 07:35 -
ADF: Passing parameters from one page to another using setPropertyListener
Hi,
I'm trying to find a simple way to pass a parameter from one page to another.
On the first page I have a table, the second page is a history page, showing the change history of rows from the table on the first page.
In the table on the first page there's a unique column (an order number), the value of which is never changed for a given row.
What I would like is to be able to pass the order number from the currently selected row of the first page on to the history page, making the history page show only the history for the given order number.
Using the task-flow for the history page, I've defined an input parameter (an order number), defined a criteria and so on. I've tested the functionality of this in the Application Module, and it seems to work.
My problem is passing the order number from the first page to the second.
I've created a Managed Bean, with a variable for the current order number, including accessors. On the table on the first page, I've created a contextMenu, and added an Item called "Show history" with an action that navigated from the first to the second page (a control flow I've defined in adfc-config). I've included a setPropertyListener in the "Show history" item. I've set the "From" property of the setPropertyListener to "#{row.ordernumber.attributeValue}" and the "To" property to point at the order variable in the Managed Bean. Finally, I created a new page for the history, dragged the history task flow onto this page as a region, using the Managed Bean order variable as input parameter.
The result is this: When I bring up the context menu from a row in the table on the first page and select "Show history", I get this error: "The class 'java.lang.String' does not have the property 'attributeValue'."
That's a bit puzzling to me, seeing as I used the Expression Builder to fill out the "From" property. I've tried using "inputValue" instead of "attributeValue", but that simply changes the error message to: "The class 'java.lang.String' does not have the property 'inputValue'."
What am I doing wrong?
Regards,
AndreasHi Timo and Puthanampatti,
I actually tried something similar to what you have suggested before starting this thread, but still got an error. What I hadn't spent a lot of time investigating initially was that it gave a DIFFERENT error. But after reading Timo's suggestion, I went back to this other error and found out that it was connected to my Managed Bean. For some reason, I had made the mistake of giving the bean the same name (in adfc-config) as the actual java class. And this leads to a circular reference error (that I would only get to see when I didn't get the java.lang.String error first).
Having fixed this, I can successfully pass my parameter from one page to another (with the "From" property of the setPropertyListener set to "#{row.ordernumber}").
Thanks for your time,
Andreas -
Need help in passing parameters from one page to another!
Hi,
I need to pass values that are retrieved from database from one page to another.
But even when I use pageContext.putParameter(), I am not able to view the value in the 2nd page.
Any pointers on how to pass parameters would be helpful..
Thanks in advance!The requirement is on the main page there are 6 fields out of which 4 are read-only and are taken from the database and 1 is taken from database, but can be edited, and the 6th one is completly editable for the user. I am trying to pass these parameters using setForwardURL, and on the second page (Preview page, where all these fields are read-only), I am able to retrieve these parameters using pageContext.getParameters() and am able to display it as an exception but I am not able to set these into the fields using pageContext.putParameters().
-
Pass parameter from one page to another
Hi,
I have 2 pages:
- the welcome page with a combo box P101_OLD (list of values) with a submit button wh'os opening the 2nd page with that region source:
select
"ID",
"ID_POSTE",
"PERIODE_ID",
"ADMIS",
"INSCRITS_RAMQ",
"INSCRITS_AUTRES",
"ENREGISTRÉS",
"VENDUS",
"AUTRES",
"COMMENTAIRES",
"DESCRIPTIONOLD",
"VOLUME"
from "#OWNER#"."STATISTIQUES"
where instr(':'||:P101_OLD||':',':'||STATISTIQUES.DESCRIPTIONOLD||':') > 0
What's wrong ? How to pass a variable from one page to another?
Thanksare you submitting the form once they click on the combo box? or use select list with submit.
I have a form with a drop down say for names. after selecting a value I have to click the search button (basically it submits the page and redirects to page 2)
unless we save the state of the combo box, it won't retrieve a value in page 2
in page 2 all I had to do was refer to the page 1 field name :P3_TEST -
How to handle the date attribute,passing parameter from one page to another
hi Friends,
i want to pass data attribute from one page to another page-
i am passing like below ,in jdev log window i am getting below error.
String StatusUpdateDate = row.getAttribute("StatusUpdateDate");
params.put("StatusUpdateDate",StatusUpdateDate)
Error(121,50): incompatible types; found: java.lang.Object, required: java.lang.String
Suppose i am passing like below , while moving one page to another i am getting below error in application
String StatusUpdateDate = row.getAttribute("StatusUpdateDate").toString()
Status Update Date - JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value:26-MAR-2009
please can any suggest me how to handle this error.
Thanks and Regards,
vamshiHi Pratap, Thanks for your help
it was my mistake that previously property it was varchar2, now i have changed as you suggested every thing. still i am getting error. this is my code-
AM CODE-
public void xxselection(String Name, String Email,String Product,String Region, DATE StatusUpdateDate)
DetailVOImpl vo1=getDetailVO1();
vo1.initQuery2(Name);
Row detailRow = vo1.createRow();
detailRow.setAttribute("Name", Name);
detailRow.setAttribute("Email", Email);
detailRow.setAttribute("Product", Product);
detailRow.setAttribute("Region", Region);
detailRow.setAttribute("StatusUpdateDate", StatusUpdateDate);
vo1.last();
vo1.next();
vo1.insertRow(detailRow);
detailRow.setNewRowState(Row.STATUS_INITIALIZED);
Controller- Process Form Request- Source page
if (pageContext.getParameter("Detail")!= null)
String Name=row.getAttribute("Name").toString();
String Email=row.getAttribute("Email").toString();
String Product=row.getAttribute("Product").toString();
String Region=row.getAttribute("Region").toString();
DATE StatusUpdateDate =(DATE)row.getAttribute("StatusUpdateDate");
HashMap params =new HashMap();
params.put(" Name", Name);
params.put("Email",Email);
params.put("Product",Product);
params.put("Region",Region);
pageContext.putTransactionTransientValue("StatusUpdateDate",StatusUpdateDate); //As you suggested
pageContext.forwardImmediately("OA.jsp?page=/xxm/oracle/apps/pos/stg/webui/DetailStagePG",
null,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
params,
true, // retain AM
OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
another page Controller-Process request-Destination page-
String Name = pageContext.getParameter("Name");
String Email = pageContext.getParameter(" Email");
String Product = pageContext.getParameter("Product");
String Region = pageContext.getParameter("Region");
DATE StatusUpdateDate=(DATE)pageContext.getTransactionTransientValue("StatusUpdateDate");
Timestamp tstmpStatusDate=StatusUpdateDate.timestampValue();
System.out.println("tstmpStatusDate"+tstmpStatusDate);
Serializable[] parameters1 = {Name,Email,Product,Region,tstmpStatusDate};
am.invokeMethod("xxselection", parameters1);
Error - getting at while running the application page to page
No method with signature - No method with signature - xxselection(class java.lang.String, class java.lang.String, class java.lang.String, class java.lang.String, class java.lang.String)
every thing is getting passed except DATE Attribute, please check the code and update me
Thanks in Advace-
vamshi -
Pass value from one page to another
Hi All,
"How to pass the value from one Flex page to anothere Flex
page".
In First Flex page contains One Inputtext and one button is
there.After entering the data in inputtext box,the user clicks on
the button then get the data from inputtext box and then i need to
send that value to another flex page and display there.
Can u tel me plz............
Thanks & Regards,
Nagarjuna.I believe you are thinking in terms of HTML and traditional
page coding. As an old school ColdFusion guy I understand it is
difficult to leave that behind. (at least it was for me.) Unless
you literally have two different HTML pages that each have their
own Flex app running in them you do not need to send data from one
page to the next like you would with Web Forms. (If you are doing
that you may want to simply write the data to a Shared Object, Pass
it to a server to store and then feed back into the second Flex App
when it loads or perhaps use the ExternalInterface to then pass it
through as a series of URL parameters that can be loaded into the
next Flex App.)
In Flex you do not have to worry about loosing state between
pages because there are literally no pages. Only different views.
You would not "Send" the value from one page to another. You
provide a mechanism for the second view to reference the same model
or data object (most call them ValueObjects) that the first view is
setting via the form fields.
You would want to use a ValueObject in the first VIEW and
then fill the object with the form data using setter methods on the
object. For example set the fields onChange event to call the
setter on the object and pass it the form fields value as the
property. Alternately you could bind the values of the model
directly to the fields so that they automatically obtain the data
that is being filled in.
Depending on how complex of an application you are going to
build and how scalable it must eventually be you have many
different options to choose from to allow the second View to use
the data set but the first. However to make the application
ultimately more scalable you are going to want to keep your view
separated from the controller and that separated from the
Model/ValueObject. (By seperated I mean in different classes.)
I would suggest looking up the subject of MVC in Flex and
also the Mediator Design pattern. There are many great sources of
information.
Here are a few links that may help with ideas.
http://flexblog.faratasystems.com/?p=246
http://pages.cpsc.ucalgary.ca/~heatond/mediator/
http://livedocs.adobe.com/flex/3/html/help.html?content=introbd_2.html -
Pass ID From One Page To Another To View Details
I have a very basic problem. I am Trying To view details of a product from one page To another with itemID. But not getting The desired output. Code below:
<asp:HyperLink ID="View" runat="server" Text="View" NavigateUrl='<%# "~/Approval.aspx?id=" + Eval("PurchaseOrderLine_ID") %>'></asp:HyperLink>
using (var context = new SMAPPDBMSEntities())
int id = Convert.ToInt32(Session["PurchaseOrderLine_ID"]);
string ID = Request.QueryString["PurchaseOrderLine_ID"];
int m = Convert.ToInt32(ID);
var con = (from c in context.SMPurchase_Order_Line
where c.PurchaseOrderLine_ID == m
select c).ToList();
GridView1.DataSource = con;
GridView1.DataBind();
Where do I have The error?? This code passes but doesn't show The details.1. are you sure the hyperlink is being written in the page with the currect url?
2. r u sure that u get to that code?
3. r u sure that bith id and ID and m get values inserted to them?(u need better names btw)
4. context.SMPurchase - check that it has the corresponding data
5. make sure you dont override the GV data anywhere like in pageload or somewhere else -
How to pass thevalue from one page to another
Dear all
I have two pages
1-creation page
2-search page
in creation page I have column as name in that what ever I give that value pass to search page to corresponding column in search page
eg: in creation page column name value I given like this A%
the same corresponding A% value passed to the search page in that column name A%
when ever I submit the button as goes to search page.
Plz help me
Thanks in Advance
MaheshDear all
Dear Gaurav
I have two pages
1-creation page
2-search page
in creation page I have column as name in that what ever I give that value pass to search page to corresponding column in search page
eg: in creation page column name value I given like this A%
the same corresponding A% value passed to the search page in that column name A%
when ever I submit the button as goes to search page.
The above requirement is working fine using session but i want to save that value in the database,
i given view instance and view attribute it is showing some error
Plz help me
Thanks in Advance
Mahesh -
Programming logic, passing data from a page to another
Hi,
I just began with developing with APEX 4.1.1, and I think I don't get how I should use it efficiently, I am more used to C-like programming.
I have a table which contains the state of some electricity meters taken at some non-regularly spaced dates. I want to make a chart of the electricity consumption, e.g for each month. This (I think) implies that the application must do that (I used this logic for the same application made with php and sqlite and it worked):
- User chooses a meter
- Application tells him the available range of dates and the mean interval between measurements
- User chooses the range of dates and the interval
- Application verifies that the range of dates is valid (not outside the real data)
- Interpolate the state of the meters at the requested regular interval
- Calculate the consumption for each interval (simply a difference)
- Draw the chart
For now, I created some procedures which should pass a custom data type containing all the meta-data about the chart and a PL/SQL table containing the actual data to be charted, but I'm stuck at the point of interacting with the user (meaning writing the output of the procedures on a page and passing them to the next procedure and also charting that pl/sql table).
Maybe should I create a temporary table ? But of what I read, this is a "real" table stored on the disk, and I just need this data once (and it is a small dataset, at most 20 points or so) for drawing a chart. This table should also be specific to the chart currently being created, it could happen that the same user or different users make multiple charts at the same time (like in two firefox tabs).
I hope my post is not too confused..
Ben940065 wrote:
Hi,
I just began with developing with APEX 4.1.1, and I think I don't get how I should use it efficiently, I am more used to C-like programming.Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your profile with a real handle instead of "940065".
APEX is intended for the development of database centric applications. It's a physical implementation of Tom Kyte's philosophy of database application development—possibly replacing Java with JavaScript ;-) .
To use it efficiently you need to stop thinking procedurally in C-like terms and think in terms of the set operations that SQL uses effectively.
I have a table which contains the state of some electricity meters taken at some non-regularly spaced dates. I want to make a chart of the electricity consumption, e.g for each month. This (I think) implies that the application must do that (I used this logic for the same application made with php and sqlite and it worked):
- User chooses a meter
- Application tells him the available range of dates and the mean interval between measurements
- User chooses the range of dates and the interval
- Application verifies that the range of dates is valid (not outside the real data)
- Interpolate the state of the meters at the requested regular interval
- Calculate the consumption for each interval (simply a difference)
- Draw the chart
For now, I created some procedures which should pass a custom data type containing all the meta-data about the chart and a PL/SQL table containing the actual data to be charted,
but I'm stuck at the point of interacting with the user (meaning writing the output of the procedures on a page and passing them to the next procedure and also charting that pl/sql table).It seems that you don't really get APEX yet: have you read the introductory documentation and taken the <i>Oracle® Database 2 Day + Application Express Developer's Guide</i> tutorial in order to understand basic APEX techniques and terminology?
You should be aiming to collect and validate the required parameters in APEX session state values and use the built-in charting capability with SQL data sources that use these parameter values in query predicates.
If you really can't generate the chart series from queries run on the original table, generate the chart data using an APEX collection rather than a "PL/SQL table" (preferred terminology is "collection type", but it's even better to specifically say "associative array", "nested table" or "varying array") or temporary database table.
Maybe should I create a temporary table ? But of what I read, this is a "real" table stored on the disk, and I just need this data once (and it is a small dataset, at most 20 points or so) for drawing a chart. This table should also be specific to the chart currently being created, it could happen that the same user or different users make multiple charts at the same time (like in two firefox tabs).Temporary tables are rarely required in any Oracle application, but standard Oracle Global Temporary Tables are database-session specific and so have no concurrency issues. However there are issues when using them in APEX, so APEX collections are the preferred method for temporary, session-based storage.
Maybe you are looking for
-
CC&B 2.1 with BO XI 3.1 / Crystal Reports 2008
Hello, Has anybody successfully used CC&B 2.1 with a more recent version of Business Objects than the officially supported BO XI R2? We are trying to integrate with BO XI 3.1, following the steps in the CC&B 2.1 installation document. When running a
-
Can you please tell me the apple service center in jeddah saudi arabia or any authorised dealer who can claim my issues ?
-
Set af:outputText readonly in javascript
Hi, In Javascript, I want to set some output text fields. How can I set the fields 'read only' in js? If I make the field 'read only' in <af:outputText>, JS can't write to the field. Thanks.
-
Corrupt .pdf files since install of Adobe Acrobat IX Pro
Since installing the new Adobe Acrobat IX Pro (cloud version) on my Mac Air, l'm unable to open old .pdf files. What can be done to resolve this issue. Thanks.
-
I am trying to find out how to enable/setup the Data Protection Switch in FDM. The FDM manual does not explain how to do it. It just mentions the feature. Can anyone tell me how to enable this? Trying to protect data in HFM from being erased upon FDM