Table data transfer from one page to another page in the OFA

Hi all

Could you please help me with the following requirements. I'm transferring the first records of the selected page to the second page, but running in question.

I have 2 custom OAF pages:

1st Page is the search looking for an invoice and invoice page, the user can select "multiple entries" (her table with a multiple selection area) and click transfer.

Internally, the button calls the setForwardUrl method and call the 2nd page, where the second page contains region Advacned table to display the records selected the 1st page.

Because the user can select more than 1 record in the search box on the first page, I want to hold all the rows in a table of Hashmap with integer index and transfers them to the 2nd page. Here is the syntax of hashmap that I use:

map of java.util.HashMap < Integer, InvoiceRow > new < Integer, InvoiceRow > = (); Here InvoiceRow is a CLASS structure personalized with InvoiceNumber and as variables inside customer number.

But if I passed the HashMap above to the setForwardURL method, the JDeveloper throw an exception indicating that the message "setForwardURL cannot invoke".

Could you please help me how can I transfer the first page of records multiselected on the second page?

Enjoy your time.

-Vincent

Mohamed, the approach that I told you can try below way:

public String getSelectedData()
{
String whereclause = "(";"
String whereclause1 = "(";"
XXCONTAINLINESVOImpl vo = this.getXXCONTAINLINESVO1 ();
OAViewObject vo = (OAViewObject) getXXDPECONTAINLINESVO1 ();
System.out.println ("debTEST" + punload);
Rank [] sumVoRow = vo.getFilteredRows ("Select1", "Y");
      
System.out.println ("deb multi select test" + sumVoRow.length);
If (sumVoRow! = null & sumVoRow.length > 0)
{
for (int i = 0; i)< sumvorow.length;="" i++)="">
         
        
String wipEntityId =
sumVoRow [i].getAttribute("LineId").toString ();
          
            
WhereClause = whereclause + sumVoRow [i].getAttribute("LineId").toString () + ",";
             
System.out.println ("deb multi select test" + whereclause);
        
}
}
If (whereclause.length () > 0 & whereclause.charAt (whereclause.length () - 1) == ',')
{
        
B StringBuilder = new StringBuilder (whereclause);
("b.Replace (WhereClause.LastIndexOf (","), whereclause.lastIndexOf (", ") + 1," ")");
WhereClause = b.toString ();
whereclause return;
          
}
System.out.println ("deb where test clause" + whereclause);
       
whereclause return;
}

This method will return the value as: whereclause = (111,222,333) then put it in a varibale session and go to method of CO below

----------------------------
public void processPOData (String wherclause)
{

String query = getXXDPECONTAINDATAVO1 () .getQuery (); Old stringbuffer queryStringBuffer = new StringBuffer();
String newwhereclause = "LINE. LINE_ID IN "+ wherclause;

System.out.println ("NEW DEB where clause:" + newwhereclause);
StringBuffer stringbuffer = new StringBuffer();
                      
StringBuffer.Append ("SELECT rownum LINE_NUM, A.* (" ");
StringBuffer.Append (Query);
StringBuffer.Append ('where');
StringBuffer.Append (newwhereclause);
                   
ViewDefImpl viewdefimpl is getXXDPECONTAINDATAVO1 () .getViewDefinition ();.

viewdefimpl.setQuery (stringbuffer.toString ());
                   
    
           
System.out.println ("DEB NEW QUERY TEST:"+stringbuffer.toString()); ")
getXXDPECONTAINDATAVO1 () .executeQuery ();
          
}

Let me know if stil you face to deliver you

Thnaks

Deb

Tags: Oracle Applications

Similar Questions

  • Passing parameters from one page to the OFA to another PAge of the OFA

    Hello

    I was wondering, if there is a possibility of passing parameters to the request from one page to another page in EBS (eBusiness Suite).
    I tried to use the following

    (a) PageContext.putParamater ('MyParamater', 'ParamaterValue')
    (b) I have addded above the line of code by extending a controller on the page of OAF and personalized page

    When I retrieve the value of getParameter() on the next page. I am also unable to access the parameter in the following page.

    I tried the above code while trying to create expenses in the module I have costs... I would like the ReportHeaderId from one page to another page for customization purposes. I am not able to get the ReportHeaderId in the ReviewPAge... There is no Business Objects in the review page... try the idea of putParameter.

    Any help will be much appreciated

    Thank you

    Yes, the value will remain unless the root AM is released or remove you it with oapagecontext.removeTransactionTransientValue ("myParam");

    Glad to hear it works for you! Also, please mark your messages as helpful or correct answers as it will help others.

    Thank you
    LC

  • Page of the copy from one application to another application in the same workspace

    Is it possible to copy a page from one application to another application in the same workspace?

    If so could you tell me how its done?

    Thanking you in advance.

    go to any page in your target application and click on 'Create' > 'new page as a copy '. The rest of the process is driven by the magician.

    Denes Kubicek

    -------------------------------------------------------------------

    http://deneskubicek.blogspot.com/

    http://www.Apress.com/9781430235125

    https://Apex.Oracle.com/pls/Apex/f?p=31517:1

    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494

    -------------------------------------------------------------------

  • How to move a specific tablespace data file from one directory to another

    Database: 10.2.0.1
    OS: generic
    Description of the problem: how to move a specific tablespace data file of one directory to another account of the database that is on the installer of Oracle Dataguard

    * Oracle is working on this issue, but at the same time opens the topic community so that community members can add their views, experience, or knowledge. This will strengthen again all the knowledge bases, including My Oracle Support and My Oracle Support Communities *.

    Published by: ram_orcl on August 16, 2010 21:21

    Dear ram_orcl,

    Please follow the procedures here;

    http://download-UK.Oracle.com/docs/CD/B19306_01/server.102/b14239/manage_ps.htm#i1034172

    8.3.4 Renaming a Datafile in the Primary Database
    
    When you rename one or more datafiles in the primary database, the change is not propagated to the standby database. Therefore, if you want to rename the same datafiles on the standby database, you must manually make the equivalent modifications on the standby database because the modifications are not performed automatically, even if the STANDBY_FILE_MANAGEMENT initialization parameter is set to AUTO.
    
    The following steps describe how to rename a datafile in the primary database and manually propagate the changes to the standby database.
    
       1.
    
          To rename the datafile in the primary database, take the tablespace offline:
    
          SQL> ALTER TABLESPACE tbs_4 OFFLINE;
    
       2.
    
          Exit from the SQL prompt and issue an operating system command, such as the following UNIX mv command, to rename the datafile on the primary system:
    
          % mv /disk1/oracle/oradata/payroll/tbs_4.dbf
          /disk1/oracle/oradata/payroll/tbs_x.dbf
    
       3.
    
          Rename the datafile in the primary database and bring the tablespace back online:
    
          SQL> ALTER TABLESPACE tbs_4 RENAME DATAFILE      2> '/disk1/oracle/oradata/payroll/tbs_4.dbf'
            3>  TO '/disk1/oracle/oradata/payroll/tbs_x.dbf';
          SQL> ALTER TABLESPACE tbs_4 ONLINE;
    
       4.
    
          Connect to the standby database, query the V$ARCHIVED_LOG view to verify all of the archived redo log files are applied, and then stop Redo Apply:
    
          SQL> SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
          SEQUENCE# APP
          --------- ---
          8 YES
          9 YES
          10 YES
          11 YES
          4 rows selected.
    
          SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
    
       5.
    
          Shut down the standby database:
    
          SQL> SHUTDOWN;
    
       6.
    
          Rename the datafile at the standby site using an operating system command, such as the UNIX mv command:
    
          % mv /disk1/oracle/oradata/payroll/tbs_4.dbf /disk1/oracle/oradata/payroll/tbs_x.dbf
    
       7.
    
          Start and mount the standby database:
    
          SQL> STARTUP MOUNT;
    
       8.
    
          Rename the datafile in the standby control file. Note that the STANDBY_FILE_MANAGEMENT initialization parameter must be set to MANUAL.
    
          SQL> ALTER DATABASE RENAME FILE '/disk1/oracle/oradata/payroll/tbs_4.dbf'
            2> TO '/disk1/oracle/oradata/payroll/tbs_x.dbf';
    
       9.
    
          On the standby database, restart Redo Apply:
    
          SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE
            2> DISCONNECT FROM SESSION;
    
    If you do not rename the corresponding datafile at the standby system, and then try to refresh the standby database control file, the standby database will attempt to use the renamed datafile, but it will not find it. Consequently, you will see error messages similar to the following in the alert log:
    
    ORA-00283: recovery session canceled due to errors
    ORA-01157: cannot identify/lock datafile 4 - see DBWR trace file
    ORA-01110: datafile 4: '/Disk1/oracle/oradata/payroll/tbs_x.dbf'
    

    Hope that helps.

    Ogan

  • Passing the value from one page to the other page

    Hi gurus,

    I need to pass the value from one page to the other page and two pages use different AMs.
    In the first page I have sellers results region table where the $vendor_name column is a hyperlink that navigates to the page Vendor_Sites. Now after accessing the second page, I want to excute the VendorSitesVO in PR of CO based on the value passed to VendorsVO (vendor_id) of first page.

    can someone help me on this?

    Thank you
    Vincent.

    Published by: user4933347 on December 4, 2009 12:19 AM

    You can set parameters of Pagecontext and transmit values through them. These values can be passed between pages, even if the AMs are different.

    Try:
    pageContext.putParameter ("Parameter1", value1);
    pagecontext.setForwardURL (second page)

    Concerning
    Sumit

  • How one move the templates of virtual machine from one host to another host in the cluster even

    Hello

    Can you get it someone please let me know how to move the templates of virtual machine from one host to another host in the cluster even?

    Thank you

    James

    Welcome to the forums!

    Convert it to a virtual machine (right click on guest and choose the appropriateoption), move it through the migration feature (right-click Guest, and then choose "Migrate") and convert into a model (right click on guest again and choose to convert to a template).

    If you found this information useful, please consider awarding points to 'Correct' or 'Useful' responses Thank you!!

    AWo

    VCP / vEXPERT 2009

  • Moving objects from one page to the other

    Hi all

    I need to move an image from one page to the other...

    For example, on page 1, I have an image that he be shifted to page 5 of the document. Is this possible?

    Vandy

    Click the page 1 picture to select it and run it:

    var doc = app.activeDocument;

    var r = app.selection [0];  'r' is the graphic image containing the image

    r.Move(doc.pages[4]);          on page '5 '.

  • Copy data from one schema to another. Reopen the Question

    Hello

    I had asked this question earlier to copy data from tables of one schema to another in the same database using the database link. In my previous post have mentioned below.
    Re: copy data from one schema to another.
    Now I am faced with the question for the remote copy of database

    I have created a DB connection between my local system and the remote database. with the chain of connection as shown below
    CREATE THE DATABASE PUBLIC LINK "MERU_DEV_LOCAL_DEV".
    CONNECT TO MERUDEV IDENTIFIED BY MERUDEV WITH THE HELP OF "MERUPROD";
    In the above script
    LOCAL DEVELOPMENT scheme IS
    REMOTE schema is MERUDEV
    I try to copy remote database to my local database tables using the script below.
    network_link DEVELOPMENT impdp = schema MERU_DEV_LOCAL_DEV = MERUDEV remap_schema = MERUDEV:DEVELOPMENT TABLE_EXISTS_ACTION = REPLACE
    But the copy of the table does not occur. What could be the problem? Please suggest me or do I need to modify the script

    Thank you
    Sudhir

    You can:
    -monitor the BONE with ps - ef
    -monitor data pump: jobs are dba_datapump_jobs and dba_datapump_sessions
    -monitor with logops: v$ session_longops

  • License transfer from one laptop to another

    I intend to buy and install Photoshop Elements on my Macbook Pro. However, I'll buy a Macbook Air after 5 or 6 months. So, what happens to my purchased software? Can I transfer the license to the new laptop? I first have to disable it in the old Mac? A lot of questions! Help, please!

    Your license allows you to have two facilities enabled, so if you want, you can keep the original as a backup copy.  If you do not then you should disable at least.

    Adobe applications/licenses cannot be transferred from one computer to another, you must install the application on the new machine using installation files.

  • Variables of transfer from one image to another

    Hello

    How I would go about transfer from one to the other variables?

    What I want to do, is send data to a database of the first image then get info back and fill out the form on the second image field.

    For the moment, I have the code in the second image is everything! What want is to send that the username and password enter the text boxes first frame to a database and then display the info returned on the second image.

    I already have working code php, so this isn't a problem.

    Thank you

    Nightwalker

    Download and read my attached Fla file. The variable is set to the first image. It is accessible from all of the other images in the film covering the "Actionscript" layer.

    Enjoy.

  • Transfer from one Mac to another catalog does not work?

    I copied an entire Lightroom Catalog folder from one Mac to another, and I placed it in the Documents folder on the new Mac. I expected just open when I launched CC2015, although she does not.

    1. what should I do to repoint CC2015 in this catalog folder?

    2. to do this, I can place the main folder anywhere on the computer too long that I indicate in LR it where? Are there benefits to be placed in any particular place, or is it just the preferences of the user?

    Thank you.

    IMO, you should keep records high-lit & files to the screen clip below.

    That is to say. Your most recent work catalog dated February 27, 2016 with its record of previews.

    and keep a few folders of backup.

    All the rest could be deleted.

    Catalog backups must be in the same folder as your catalog of work - if the disk drive fails you have lost a lot. !!

    The catalogue dated February 9, 2016, {Lightroom Catalog.lrcat 5} can also contain development not in the catalogue 27 Feb. -then maybe preserve also!

    You could remove the 'Previews' folder, but Lightroom will slow down a bit because he rebuilt the previews when you reopen {Lightroom Catalog.lrcat}

  • Screen fade slowly when changing from one page to the other

    Original title: melted screen

    Why my not to screen a slow fade when changing from one page to another.  Did not until recently.

    Hello

    1. what operating system is installed on your computer?

    2 are. what page you referring?

    3. when exactly are you facing this problem?

    4. have you made changes on the computer before this problem?

    If you use the Windows 7 operating system, you can follow the methods.

    Method 1:

    You can see the issue in the clean boot state. Read the following article.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: once you are done with the boot, please follow step 7 of article to reset your computer to normal startup.

    Method 2:

    I suggest you run the calibration of the colors of the display on the computer and check if it works.

    Calibrate your screen

    http://Windows.Microsoft.com/en-us/Windows7/calibrate-your-display

    Method 3:

    You can run the troubleshooter of display quality and check.

    Open the troubleshooter of display quality

    http://Windows.Microsoft.com/en-us/Windows7/open-the-display-quality-Troubleshooter

    Method 4:

    You can try to update the display adapter driver by visiting the manufacturer's Web site to download and install the latest driver package.

    For more information: update a hardware driver that is not working properly

    http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

    Update drivers: recommended links
    http://Windows.Microsoft.com/en-us/Windows7/update-drivers-recommended-links

    It will be useful.

  • How to migrate from one server to another (home of the workspace) html file

    Hello

    Does anyone know how to move an html file that is attached as a home page for the workspace from one server to another server?
    When I try to use the export option, I do not see this file to select.


    Thanks in advance,
    PM

    You can use the feature of LCM.

    THX

  • by dragging the boxes from one page to the other in tabs

    I like the tabbed pages feature because it keeps my own office while working, but I can't seem to drag boxes of pictures/text from one page to another when they are tabulated.

    Often, I need to do this to make pages with similar designs/style sheets/photos can I just draw a box from one document to another, etc... is there a way to do this in the tabs?

    Thank you!

    No, you can't do that.

    But why not just copy and paste.

    There is a very useful command called 'Paste in Place' under the Edit menu.

    You can copy a selection, then use CTRL TAB or CMD-TAB to move between windows, then paste in Place (CTRL (CMD) ALT (OPTION) SHIFT V)

    It is much faster as drag / drop objects

  • Move a layer from one document to another, I get the error message that the layer is empty

    When I copy a layer from one document to another in PS CC 2015.5 and then try to move the layer in the destination document, I get the error message that the layer is empty.  It is not empty and I checked several times and checked that the layer is not empty.  I have never had this problem before and wonder if something has changed in CC 2015.5.

    Thanks to all who responded.  I think the problem was that I was using the NEF files and that he had not yet renamed PSD files.  Copy the layer in the destination document, but when I tried to move the layer in the destination document, I received the error message.  Apparently, he was copying the layer but there not then recognize the NEF format.  Once I saved both documents to the PSD, then the program behaved normally.  I appreciate your all of the help.

    Sue

Maybe you are looking for