Passing a Rowkey from one page to another?

One page A: I use the navigator and the CurrentViewRecord to
show my Attributes. I extract the key, i add the value to the
session.
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<jbo:ApplicationModule
configname="Bc4jPackage.Bc4jPackageModule.Bc4jPackageModuleLocal"
id="Bc4jPackageModule" username="cbetb_java"
password="cbetb_java" />
<LINK REL=STYLESHEET TYPE="text/css"
HREF="/webapp/cabo/images/cabo_styles.css" >
<TITLE>
Client-Projects
</TITLE>
</HEAD>
<BODY>
<jsp:useBean class="oracle.jbo.html.databeans.JSNavigatorBar"
id="nav" scope="request" >
<%
     nav.setShowNavigationButtons(true);
     nav.setReleaseApplicationResources(false);
     nav.initialize
(pageContext,"MyProject2_Bc4jPackage_Bc4jPackageModule.ClientsVie
w");
nav.addButton(nav.NAVIGATE_INSERT, "ClientEdit.jsp");
     nav.render();
%>
</jsp:useBean>
<BR><BR>
<jsp:useBean
class="oracle.jbo.html.databeans.JSViewCurrentRecord"
id="currentRecord" scope="request" >
<%
     currentRecord.setShowRecordNumbers(true);
     currentRecord.setReleaseApplicationResources(false);
     currentRecord.setDisplayAttributes
("Clientid,Companyname,Address,City,Stateorprovince,Postalcode,Co
untry,Phonenumber,Faxnumber,VatNr,Vat,Notes,UrlWebsite,Oracle,Mic
rosoft,Powerbuilder,Customer,Lead,Supplier,Created,Lastupdated,Ba
nkaccountnr1,Bankaccountnr2");
     currentRecord.initialize
(pageContext,"MyProject2_Bc4jPackage_Bc4jPackageModule.ClientsVie
w");
     currentRecord.render();
String k ;
Row r = currentRecord.getRowSet().getCurrentRow () ;
out.println ( r.getAttribute ( "City") ) ;
k =currentRecord.getRowKey( r ) ;
out.println ( currentRecord.getRowKey( r ) ) ;
session.setAttribute("rkey",r);
%>
</jsp:useBean>
On page B: I want to get the row associated with the rowkey i
passed to the session. But i seem to be unable to get that
rowkey correctly?!
<jbo:ApplicationModule id="Bc4jPackage.Bc4jPackageModule"
configname="Bc4jPackage.Bc4jPackageModule.Bc4jPackageModuleLocal"
username="cbetb_java" password="cbetb_java"/>
<br>
<% Key key = (Key)session.getAttribute("rkey");%>
<>
<jbo:DataSource id="ds" appid="Bc4jPackage.Bc4jPackageModule"
viewobject="ClientsView"/>
<jbo:Row id="crow" datasource="ds" action="Find"
rowkeyparam="key" >
What is wrong with the code? Is there a better way to pass the
rowkey?
thx

One page A: I use the navigator and the CurrentViewRecord to
show my Attributes. I extract the key, i add the value to the
session.
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<jbo:ApplicationModule
configname="Bc4jPackage.Bc4jPackageModule.Bc4jPackageModuleLocal"
id="Bc4jPackageModule" username="cbetb_java"
password="cbetb_java" />
<LINK REL=STYLESHEET TYPE="text/css"
HREF="/webapp/cabo/images/cabo_styles.css" >
<TITLE>
Client-Projects
</TITLE>Hi,
The api for setting of session objects is session.setAttribute
(String name, Object obj). In your first jsp, you set a string
with a string and then tried to get back the object referencing
the a key with (Key)session.getAttribute.
You can do this two ways, you just have to be consistant with
your implementation:
One way is to get the string and set the attribute like you did
in the first jsp with String k. In the second you must retrieve
it with a string call (String)session.getAttribute and then
maybe do a findbyPrimaryKey method.
The second way is to set the attribute with the key and retrieve
it with the a key:
jsp1:
Key key;
key = getmyCurrentRow().getKey();
session.setAttribute("myk", key);
now in the second jsp2:
Key key = (Key) session.getAttribute("myk");
Just remember to compare apples to apples and oranges to
oranges!!!!!
-aaron
</HEAD>
<BODY>
<jsp:useBean class="oracle.jbo.html.databeans.JSNavigatorBar"
id="nav" scope="request" >
<%
     nav.setShowNavigationButtons(true);
     nav.setReleaseApplicationResources(false);
     nav.initialize
(pageContext,"MyProject2_Bc4jPackage_Bc4jPackageModule.ClientsVie
w");
nav.addButton(nav.NAVIGATE_INSERT, "ClientEdit.jsp");
     nav.render();
%>
</jsp:useBean>
<BR><BR>
<jsp:useBean
class="oracle.jbo.html.databeans.JSViewCurrentRecord"
id="currentRecord" scope="request" >
<%
     currentRecord.setShowRecordNumbers(true);
     currentRecord.setReleaseApplicationResources(false);
     currentRecord.setDisplayAttributes
("Clientid,Companyname,Address,City,Stateorprovince,Postalcode,Co
untry,Phonenumber,Faxnumber,VatNr,Vat,Notes,UrlWebsite,Oracle,Mic
rosoft,Powerbuilder,Customer,Lead,Supplier,Created,Lastupdated,Ba
nkaccountnr1,Bankaccountnr2");
     currentRecord.initialize
(pageContext,"MyProject2_Bc4jPackage_Bc4jPackageModule.ClientsVie
w");
     currentRecord.render();
String k ;
Row r = currentRecord.getRowSet().getCurrentRow () ;
out.println ( r.getAttribute ( "City") ) ;
k =currentRecord.getRowKey( r ) ;
out.println ( currentRecord.getRowKey( r ) ) ;
session.setAttribute("rkey",r);
%>
</jsp:useBean>
On page B: I want to get the row associated with the rowkey i
passed to the session. But i seem to be unable to get that
rowkey correctly?!
<jbo:ApplicationModule id="Bc4jPackage.Bc4jPackageModule"
configname="Bc4jPackage.Bc4jPackageModule.Bc4jPackageModuleLocal"
username="cbetb_java" password="cbetb_java"/>
<br>
<% Key key = (Key)session.getAttribute("rkey");%>
<>
<jbo:DataSource id="ds" appid="Bc4jPackage.Bc4jPackageModule"
viewobject="ClientsView"/>
<jbo:Row id="crow" datasource="ds" action="Find"
rowkeyparam="key" >
What is wrong with the code? Is there a better way to pass the
rowkey?
thx

Similar Messages

  • Pass lov value from one page to another page

    hi
    can any one please help me how to pass selected lov value in one page to another page
    iam able to get the lov value in controller but how to pass that value as parameter to the VO in another page.

    Hi,
    Get the value in controller, create a hash map and put that value in hashmap.
    Then pass that hashmap in pageContext.forwardImmediately method.
    If you want to use that value in multiple pages, then put that in session variable.
    --Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Passing a Value from one page to Another is not working

    Hi friends,
    I have a table called country in which i build a Form in page1 with a report in page2 based on the table. So iif i clicked the edit icon in the page 2 report means then it can fetch the corresponding record in the page 1 form as well(so that i can update the record in the form).
    My scenario is i have one more search page  in page 3 which has one page item like Country_id(text item) with a Region button "Find".
    If i typed any country id in the text item and pressed Find, means then it should redirect to the form page 1 inorder to fetch those correponding country id details that i entered in the search page page 3.
    For that i followed the below steps like in the search page 3
    created a Find button in the page 3 with below options
    Button Style: Template Based Button
    Button Template: Button
    Button Type: Normal
    Action: Submit Page
    Button Style: Template Based ButtonThen under the after Processing i created a branch condition:
    On submit: After processing(After Computation, Validation and Processing)
    Target Type: page in this Appliction
    page           : 1
    Set these items P1_COUNTRY_ID
    with these values: &P3_COUNTRY_ID.
    (when button Find is pressed)
    But the id is not passing to the page 1 from the page 3(search region) that i entered inorder to query my form in page 1 according to the value that i entered in  search region in page3
    kindly help me friends with this.. Hope u understand my scenario..
    Brgds,
    Mini

    Hi,
    Source setting for that form page item P1_COUNTRY is
    Source Used:"Only when current value in the session state is null"
    Source Type: Static Assignment.Since i build this form along with report.
    Is im missing something.
    Regards,
    Mini

  • How to pass the value from one page to another page

    Dear Gaurav
    I have three pages
    1-creation page
    2-search page
    3-creation page
    in first creation page I have column name user write a% and submit to that search for that name.
    it is going to second page (search page)name a% is passed and search that corresponding value,the corresponding values are not there user will call third creation page and enter the details and save and click back to first page the value is not calling passing from third page to first page I submit the button in 3rd page the error is coming like this.
    The requested page contains stale data. This error could have been caused through the use of the browser's navigation buttons (the browser Back button, for example). If the browser's navigation buttons were not used, this error could have been caused by coding mistakes in application code. Please check Supporting the Browser Back Button developer guide - View Object Primary Key Comparison section to review the primary causes of this error and correct the coding mistakes.
    Cause:
    The view object xxcrmleadmgmtAM.xxcrmleadmgmtVO contained no record. The displayed records may have been deleted, or the current record for the view object may not have been properly initialized.
    in first page column name I removed view instance and view attribute the value is passing from third page to first page
    my requirement is the value call from 3 to 1 and user will enter remaining fields in 1st page and save the records.
    Regards
    Mahesh

    Hi Mahesh,
    Use
    OA.jsp?page=/oracle/apps/................&retainAM=Y).
    Thanks
    Jegan

  • How do you pass a variable from one page to another thru a button

    I have a page that has a button that goes to another page and allows the user to create a new record related to the data on the previous page.
    The first page is a master, while the second page is a detail. I need the primary key from the first page to update a column in the detail page.
    How do I get the primary key in the second page and how do in put the data in the correct column?

    Hi Nielsen,
    The master detail form should handle everything for you already...Select all rows in each table but only display the records besides the primary keys. Try creating a new master-detail form with this idea, don't bother trying to change some other page.
    Mike

  • Passing a field from one page to another

    Page 1 has fields that can have information entered or left blank. I need to pass these fields to page 2 were they can be used in the SQL to select rows from the oracle table. below is my sql. I can hard code the account no and it works.
    select
    "LOAD_ID",
    "ACCOUNT_NO",
    "PERMIT_NO",
    "PERMIT_YEAR",
    "PAYMENT_TYPE",
    "PERMIT_VOIDED",
    "NO_OF_AXLES",
    "AXLE_1_FEET",
    "AXLE_1_INCHES",
    "AXLE_2_FEET",
    "AXLE_2_INCHES",
    "AXLE_3_FEET",
    "AXLE_3_INCHES",
    "AXLE_4_FEET",
    "AXLE_4_INCHES",
    "AXLE_5_FEET",
    "AXLE_5_INCHES",
    "AXLE_6_FEET",
    "AXLE_6_INCHES",
    "AXLE_7_FEET",
    "AXLE_7_INCHES",
    "AXLE_8_FEET",
    "AXLE_8_INCHES",
    "PERMIT_COST",
    "PERMIT_TYPE",
    "LOAD_TYPE",
    "TRUCK_TOTAL_WEIGHT",
    "TRUCK_TOTAL_WEIGHT_DESC",
    "TRUCK_WIDTH_FEET",
    "TRUCK_WIDTH_INCHES",
    "TRUCK_WIDTH_DESC",
    "TRUCK_LENGTH_FEET",
    "TRUCK_LENGTH_INCHES",
    "TRUCK_LENGTH_DESC",
    "TRUCK_HEIGHT_FEET",
    "TRUCK_HEIGHT_INCHES",
    "TRUCK_HEIGHT_DESC",
    "TRAILER_LOAD_FEET",
    "TRAILER_LOAD_INCHES",
    "TRAILER_LOAD_DESC",
    "COMPANY_INFORMATION1",
    "COMPANY_INFORMATION2",
    "TRUCK_MAKE",
    "TRUCK_LICENSE_NO",
    "TRUCK_LICENSE_ST",
    "TRAILER_MAKE",
    "TRAILER_LICENSE_NO",
    "TRAILER_LICENSE_ST",
    "ORIGIN",
    "DESTINATION",
    "ROUTING1",
    "ROUTING2",
    "CMNT1",
    "CMNT2",
    "CMNT3",
    "CMNT4",
    "CMNT5",
    "CMNT6",
    "CMNT7",
    "CMNT8",
    "CMNT9",
    "CMNT10",
    "CMNT11",
    "COMMODITY_DESC1",
    "COMMODITY_DESC2",
    "PERMIT_BEGIN_DATE",
    "PERMIT_END_DATE",
    "PERMIT_ISSUE_DATE",
    "PERMIT_VOID_DATE",
    "OVERRIDE_SINGLE_AXEL_WEIGHT",
    "OVERRIDE_DOUBLE_AXEL_WEIGHT",
    "OVERRIDE_TRIPLE_AXEL_WEIGHT",
    "DELETE_AXLE",
    "CHECK_NO",
    "FRONT_AXLE_WEIGHT",
    "MIDDLE_AXLE_WEIGHT",
    "REAR_AXLE_WEIGHT",
    "TRUCK_TOTAL_FEET",
    "TRUCK_TOTAL_INCHES",
    "AXLE_SPACING",
    "PERMIT_FEES",
    "HOLIDAY_MSG",
    "GOVERNMENT_PERMIT",
    "OVERRIDE_AXEL_ALL",
    "MULTI_ST_TAG",
    "PERMIT_AGENT_ID",
    "PERMIT_SPECIFICATIONS1",
    "PERMIT_SPECIFICATIONS2",
    "SUPER_LOAD_AXEL_NO",
    "AXEL_BOOSTER_WEIGHT",
    "MULTISTATE_PERMIT",
    "MODIFICATION_COUNT",
    "USDOT_NO"
    from "LEGACY_ODOW_PERMITS"
    where
    (upper(nvl(:P1_SELECT_PERMIT,"ACCOUNT_NO")) is null)
    or((upper("ACCOUNT_NO")) = (upper(nvl(:P1_SELECT_PERMIT,"ACCOUNT_NO"))))
    )

    Your query on page 2 should be able to use the values submitted for page 1. I guess I'm assuming that your page 1 is a form wherein you're submitting the data for insertion/update to the database.
    The query on page 2 would be something like:
    select * from my_table where load_id = :P1_LOAD_ID, etc...
    This will probably get very complex very fast if you're going to allow nulls for very many of those fields.
    What exactly is your question/problem?
    Earl

  • Passing a file from one page to another

    Hello,
    I have a page in the application, which uploads a file.
    I need to pass this file to another page, where it's going to be inserted in the table with some other parameters.
    Is there a way to do it in Apex?
    for example a temporally table that could store the file for later use??
    Thank you for consideration.

    Here is a good tutorial on BLOBS.
    http://www.oracle.com/technology/obe/apex/apex31nf/apex31blob.htm
    You may want to upload your file to a file storage table with some sort of sequence. You can store the value of the sequence and pass it across to the next page and look it up to re-insert (or better yet just add a foreign key reference).

  • Passing a value from one page to another with multiple projects?

    Hi,
    I am trying to do something and I am not quite sure what I may be doing wrong. Situation is this:
    I have 1 project which is our Model, deployed into a .jar and imported successfully into the main project. No problems with this.
    I also have another project for editing profiles, in it it contains a taskflow running off of page fragments to accomplish a CRUD design. This is also deployed and imported into our main project successfully. It has a parameter value that should be detected upon entry into the pageflow called inEntityID.
    I have our main project application which has both imported .jar files into the library.
    I am using the unbounded adfc-config Flow to make sure that the pages can see each other. They can.
    If I use no data being sent from my main page to my edit page I can see both the main page fine and what would be a working region that is displaying the task flow from our editing project. If I attempt to send a value from my main page to the edit page it will not show up.
    ADFC looks like so: MAIN goEdit>EDIT
    Code snippet from my button which gathers data from the main page table to send to the edit page via action goEdit
    <af:commandToolbarButton text="Edit Entity"
    id="ctb3" action="goEdit">
    <af:setPropertyListener type="action"
    to="#{pageFlowScope.sendID}"
    from="#{bindings.PseLegalEntityId.inputValue}"/>
    </af:commandToolbarButton>
    PseLegalEntityId is the value that I have named which is an attiributevalue from my mainPageDef which links to the primary key that I want to send to edit.
    The paramenter that I have set in the region is set as such: Task Flow Binding Parameters : id* inEntityID | Value* #{pageFlowScope.sendID}
    I am using Jdeveloper 11.1.1.2.0
    Any insight on what I may be doing wrong would be helpful. Thanks in advance,
    PSP

    Is more information needed to answer this? if so let me know which.
    Thanks,
    PSP

  • How do I pass a parameter from one page to another page?

    Hi,
    There are two JSF pages(a.jspx and b.jspx), when click a link(e.g...b.jspx?parameter=123) on a.jspx, it will forward to b.jspx, my question is that how can i get the parameter=123 in b.jspx?
    i use adf 10g.
    thank you very much!
    Edited by: Yitao Li on Jul 13, 2009 2:20 AM

    Hello,
    I would recommend to avoid using visible parameters in your querystring.
    In adf 10g on your command link/button you can use thesetActionListener to set something in the request scope or even better, a backing bean.
                  <af:commandLink text="text"
                                  action="pageB">
                    <af:setActionListener from="<yourvalue>" to="#{requestScope.parameter}"/>
                  </af:commandLink>You can then access this value on the next page without making the paramater visible to others.
    This can be done with the code Simon provided.
    -Anton

  • 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?
    Thanks

    are 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,
    vamshi

    Hi 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

  • 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,
    Andreas

    Hi 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

  • How to pass column name as a   values from one page  to another

    hi
    i have created a report(pivot) from a table
    SQL> SELECT * FROM T;
    C1  C2          C3 D                SEQ
    A   AA           2                    1
    A   AB           3                    2
    A   AC           2                    3
    B   AB           5                    4
    B   AC           6                    5
    SQL> SELECT C1
      2  ,NVL(MAX(CASE WHEN C2='AA' THEN C3 END),'') AA
      3  ,NVL(MAX(CASE WHEN C2='AB' THEN C3 END),'') AB
      4  ,NVL(MAX(CASE WHEN C2='AC' THEN C3 END),'') AC
      5  ,SUM(C3) FROM T GROUP BY C1;
    C1          AA         AB         AC    SUM(C3)
    A            2          3          2          7
    B                       5          6         11
    SQL>
    my requirement in Apex is like this(reverse)
    eg-
    when i click on cell values '2' then,it should return
    C1  C2          C3 D                SEQ
    A   AA           2                    1
    {quote}how to pass column name as a  values from one page to another
    for example i have to pass 'c2' as a value to next page{quote}for report pivot you can reffer below link
    Report
    Amu

    thanks for your reply
    i 'm doing what exactly you mention here .
    my problem here is
    i have 15 columns
    i am executing a query based on the values of the column(column name)  in the target page
    1)here i am passing(all) the column values to the next page-but  i want to pass only one column values(column name)
    when i click on any cell of that  column
    OR
    2)i can pass all column name to target page -there(in the target page) i can filter out
    i think option 1 would good if you filter out the unwanted columns
    Regards
    Amul

  • 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 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

Maybe you are looking for