How to call another page and pass the page parameter to another page?

Hi friends,

I've finished a page based on the payment date, he turns the payroll, summarized in the table region. Now, I have to address in detail (submit) button, when click on the details button I want to open the new page, this page based on a few VO. This vo I spend 2 parameters, we're Person_id, and the second is pay date until we are on the front page.
How to achieve this where I can write code, I am new to the OPS. could you please explain in detail and process?
Thank you and best regards.
Jocelyne.

RAMU

The value of your hashmap returns null. Let intrepret your code below

String newValue = params.get("pid").toString();
                           null.toString(); will always throw null pointer exception

Robichaud, I suggest you to always put some SOPS for debugging purposes. It is useful to locate the problem.

Kind regards
GYAN

Tags: Oracle Applications

Similar Questions

  • Call AJAX process and pass the value on request

    Hello
    I want to call a process on demand by a button. So I added the following for her javascript code:


    function update_bp1()
    {
    Alert ('hhhhi');
    Alert (document.getElementById('P11_PATIENTID').value);
    var ajaxRequest = new htmldb_Get (null, & APP_ID., 'APPLICATION_PROCESS is update_bp', 0);
    ajaxRequest.add ('patient_id1', document.getElementById('P11_PATIENTID').value);
    ajaxResult = ajaxRequest.get ();
    Alert (ajaxResult);
    }
    < /script >


    The called application process is:

    declare
    number of v_id;
    number of v_visitno;
    v_patientid varchar2 (10);
    BEGIN

    Select max (id), max (VISITNO)
    in v_id, v_visitno
    of TBL_PATIENT
    where PATIENTID =: patient_id1;

    Update TBL_PATIENT
    the SYSTOLIC value = 10,
    DIASTOLIC = 20
    where id = v_id
    and visitno = v_visitno
    and patientid =: patient_id1;

    commit;

    HTP. PRN ('process value'-|: patient_id1);

    end;

    It seems there is error in the ajaxrequest.add clause, as after commenting on the function is executed. Alert print correctly the value P11_PATIENTID.
    The alert of the ajaxresult gives the complete HTML code and the process is not running. How interpreet ajaxresult error.

    Please help me to identify the problem.

    Thank you

    Hello

    I think that it is not relative browser, but Firefox with the module Firebug is just a better tool for web developer.
    It is easier to debug problems you have now.

    Is the point of application patient_id1? You need also to pass the value to the application process?
    If you don't need it another vise, it is better to use variables global apex_application

    Try this
    JavaScript for HTML page header

    
    

    Then, create the new process On demand application named UPDATE_PATIENT. Please note that the name of this process is case sensitive.

    DECLARE
      v_id        NUMBER;
      v_visitno   NUMBER;
      v_patientid VARCHAR2(10);
      v_count     NUMBER;
    BEGIN
      SELECT MAX(id),
        MAX(visitno)
      INTO v_id,
        v_visitno
      FROM tbl_patient
      WHERE patientid = apex_application.g_x01
      ;
      UPDATE tbl_patient
      SET systolic  = 10,
        diastolic   = 20
      WHERE id      = v_id
      AND visitno   = v_visitno
      AND patientid = apex_application.g_x01
      ;
      v_count := SQL%ROWCOUNT;
      COMMIT;
      htp.prn(v_count || ' rows updated');
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
      htp.prn('error: patientid ' || apex_application.g_x01 || ' not exists in tbl_patient');
    WHEN OTHERS THEN
      htp.prn('error: ' || sqlerrm);
    END;
    

    Kind regards
    Jari

  • How to create a document and insert the words and/or art on both sides of the page

    How to create a document and insert the words and/or art on both sides of the page

    How to create a document and insert the words and/or art on both sides of the page

    You create a document by using an application of word processor like Microsoft Word or Corel WordPerfect or OpenOffice Writer.  Think of it as a broad a page roll.

    When you print the document, you can print all pages of the document on one sheet of paper (the normal default value), or you can print on both sides of a sheet of paper.

    Some printers are capable of automatic double-sided printing.  With others, you print all the odd pages and then take the stack of paper, turn upside down and put it back into the printer to print all pages.  You need either to read your printer manual, or experiment a bit to determine if you need to re - organize the first last pages before printing the second side.

  • How to assign values to the nested table and passes as a parameter for the procedure?

    How to assign values to the nested table and passes as a parameter for the procedure?

    Here are the object and its type

    create or replace type test_object1 as an object
    (
    val1 varchar2 (50).
    val2 varchar2 (50).
    VARCHAR2 (50) val3
    );


    create or replace type test_type1 is table of the test_object1;


    create or replace type test_object2 as an object
    (
    val1 varchar2 (50).
    val2 varchar2 (50).
    VARCHAR2 (50) val3
    );


    create or replace type test_type2 is table of the test_object2;


    GRANT ALL ON test_object1 to PUBLIC;


    GRANT ALL ON test_type1 to PUBLIC;


    GRANT ALL ON test_object2 to PUBLIC;


    GRANT ALL ON test_type2 to PUBLIC;

    Here is the table object type:

    create the table test_object_tpe
    (
    sl_num NUMBER,
    Description VARCHAR2 (100),
    main_val1 test_type1,
    main_val2 test_type2
    )


    NESTED TABLE main_val1 STORE AS tot1
    NESTED TABLE main_val2 STORE AS earlier2;


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

    Here is the procedure that inserts values into the nested table:

    PROCEDURE INSERT_TEST_DATA (sl_num in NUMBER,
    Description in VARCHAR2,
    p_main_val1 IN test_type1,
    p_main_val2 IN test_type2
    )
    IS
    BEGIN

    FOR rec in p_main_val1.first... p_main_val1. Last
    LOOP

    INSERT INTO xxdl.test_object_tpe
    (
    sl_num,
    Description,
    main_val1,
    main_val2
    )
    VALUES
    (
    sl_num
    description
    test_type1 (test_object1)
    p_main_val1 .val1 (CRE),
    p_main_val1 .val2 (CRE),
    p_main_val1 .val3 (rec)
    )
    )
    test_type2 (test_object2 (p_main_val2 .val1 (CRE),
    p_main_val2 .val2 (CRE),
    p_main_val2 .val3 (rec)
    )
    )

    );

    END LOOP;

    commit;

    END INSERT_TEST_DATA;

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

    Here are the block anonymoys what values attributed to the object type and pass values in the procedure:

    Set serveroutput on;

    declare

    p_sl_num NUMBER: = 1001;
    p_description VARCHAR2 (50): = 'Test Val1;

    inval1 test_type1: = test_type1();
    inval2 test_type2: = test_type2();

    Start


    inval1 (1) .val1: = "testx1";
    inval1 (1) .val2: = "testx2";
    inval1 (1) .val3: = "testx3";

    inval2 (1) .val1: = "testy1";
    inval2 (1) .val2: = "testy2";
    inval2 (1) .val3: = "testy3";

    CSI_PKG. INSERT_TEST_DATA (sl_num = > p_sl_num,)
    Description = > p_description,
    p_main_val1 = > inval1,
    p_main_val2 = > inval2
    );

    end;
    /
    Someone can correct me.

    Thank you
    Lavan

    Thanks for posting the DOF and the sample code but whenever you post provide your Oracle version 4-digit (result of SELECT * FROM V$ VERSION).
    >
    How to assign values to the nested table and passes as a parameter for the procedure?
    >
    Well you do almost everything bad that could be hurt.

    Here is the code that works to insert data into your table (the procedure is not even necessary).

    declare
    p_sl_num NUMBER := 1001;
    p_description VARCHAR2(50) := 'Testing Val1';
    inval1 test_type1 := test_type1();
    inval2 test_type2 := test_type2();
    begin
    inval1.extend();
    inval1(1) := test_object1('testx1', 'testx2', 'testx3');
    inval2.extend();
    inval2(1) := test_object2('testy1', 'testy2', 'testy3');
    
    INSERT INTO test_object_tpe
    (
    sl_num,
    description,
    main_val1,
    main_val2
    )
    VALUES
    (p_sl_num, p_description, inval1, inval2);
    commit;
    end;
    /
    

    See example 5-15 making reference to an element of nested Table Chapter 5 using PL/SQL collections and records in the PL/SQL doc
    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28370/Collections.htm#CJABEBEA

    1. you don't even have the procedure because it is a simple INSERTION in the table you can do directly (see my above code)

    inval1(1).val1 := 'testx1';
    

    Since you have not yet created all the elements, there is no element 1 "inval1". You need EXTEND the collection to add an element

    inval1.extend();
    

    And then, there is an empty element, but "inval1" is a container for objects of type 'test_object1' not for scalars as "val1", "val2", and "val3".
    If you can not do

    inval1(1).val1 := 'testx1';
    

    You must create an instance of 'test_object1 '.

    inval1(1) := test_object1('testx1', 'testx2', 'testx3');
    

    And so on for the other collection

    You don't need the procedure (as my code example shows), but once you fill in the variables correctly it will work.

  • How to call a second instance of the same VI?

    Hello

    I have a useful VI dealing with IO operations. To save some time, of what I would call the VI as a second instance do work at the same time. I created a sequence sub with the run option 'Use the new thread' and I called the Vi (a step of the sequence only). Execution time of the VI is about 20 seconds run Durin I called the subsequence and I carried on running my main sequence (parent). Since then 10 seconds to launch the subsequence (in the thread of sepatate I called the same VI as in the thought of subsequence the second instance will be created. However, instead of parallel work of the two instances of the same VI had to wait when mt subsequence end known call the VI th.

    So my question is, as in the topic: how to call a second instance of the VI even at the "same time"?

    Could you please tell me about the best approach to solve the problem?

    Any VI that you want to run in parallel must be paid also re-entrant, including screws.

  • Once an unapproved site is added as an exception, how can I go back and delete the exception later?

    Once an unapproved site is added as an exception, how can I go back and delete the exception later?

    Thank you, Jefferson. You addressed the issue beautifully and delightfully complete.

    I found and deleted the server where I got the exception.

    "In the future, I suggest, by making an Exception, uncheck the box that adds a permanent exception. In this way, when you exit Firefox, the exception is removed automatically. »

    AHA. It's very good to know. I missed it when granting the exception today.

    The exception I gave (and now deleted) today wasn't really a risky site. I know the owner. Just a little problem in their relationship.

    Thanks again. And thanks Toddy... I did not say clearly what type of exception.

  • How to buy Markzware Q2ID and install the plugin

    How to buy Markzware Q2ID and install the plugin

    ask the developer > http://markzware.com/

  • I use Illustrator CC and sent a file to a colleague who uses CS6 where all the layers become a great layer.  How can I send it and preserve the layers?

    I use Illustrator CC and sent a file to a colleague who uses CS6 where all the layers become a great layer.  How can I send it and preserve the layers?

    coledang,

    Save a copy, and in the following options choose CS6.

    In this way, it should open correctly in CS6, and the original document is unscathed.

    You may find that some (new CC) features will not survive the downsaving.

    Edit: Hi SRiegel.

  • seems that I bought the wrong size stock photo because it shows the low resolution 20 x 30... How can I return it and get the right kind of photo?

    How can I return it and get the right size stock photo that actually works to post 20 x 30

    Hi Debbie,.

    Once that the photos were allowed, they cannot be removed or not allowed.

    Thus, you must make sure that the image you need for your projects. You can also check the size of the images before their approval.

    Hope that answers your question.

    ~ David

  • During the whole until I chose the trial/subscription instead of the serial number, how do I go back and add the serial number?

    During the whole until I chose the trial/subscription instead of the serial number, how do I go back and add the serial number?

    Open acrobat > click Help > activate.

    If you don't see this option, but rather see help > connect, uninstall that acrobat, clean (Download Adobe Reader and Acrobat tool - Adobe Labs) and then install the version without a subscription.

  • Still awaiting to hear from VMware after taking the training and pass the exam.

    Hello

    I took the training on February 1 (VMware vSphere: install, configure, manage) and passed the VCP - 410 exam on February 8, but have not yet heard of VMware.  :_|

    Is it normal that it takes a long time? I am supposed to receive an e-mail to confirm my VCP status, right?  ?:|

    Thank you.

    The status on the website of Pearson view should say that the review was a 'pass', you won't hear anything from VMware, until you receive your welcome kit VCP in post/mail and your Workstation 7 license by email - you should get those in the next 4-6 weeks... Bravo

    Scott.

    -

  • call another proc and passing the values in the exception block

    Hello
    I'm trying to call the procedure another passing values in the exception block... but I couldn't m figure out how would the values in the exception block
    create or replace procedure test_proc 
    is 
       cursor test_cur is 
         select update_dt from test_tbl;   
         
         test_rec test_cur%rowtype;
    
        begin
            for test_rec in test_cur
            loop
                begin 
                    insert into test_tbl values (test_rec.update_dt);
                    commit;
                    exception 
                       when others then
                         rollback;
                    --      test_proc2(update_dt)       --     want to call another procedure and want to pass that update_dt here ; this process will insert the update_dt into the message table    
                       commit; 
                     
            end loop;  
            
        end;
         
     
    
    My question is how do i pass value(update_dt) into the exception block or do i need to create any varaible ?? any idea 
    Thank you very much!!

    BTW, you can still use SQL % BULK_EXCEPTIONS even if you don't use EXCEPTION to LOG. You just can't use ORA-24381, since it will not be raised. Using SO many OTHER instead. And of course, there will be only one element in SQL % BULK_EXCEPTIONS:

    SQL> CREATE TABLE emp_temp AS SELECT * FROM emp;
    
    Table created.
    
    SQL> DECLARE
      2     TYPE empno_tab IS TABLE OF emp.empno%TYPE;
      3     emp_sr empno_tab;
      4     errors NUMBER;
      5     dml_errors EXCEPTION;
      6     PRAGMA EXCEPTION_INIT(dml_errors, -24381);
      7  BEGIN
      8     SELECT empno BULK COLLECT INTO emp_sr FROM emp_temp;
      9       FORALL i IN emp_sr.FIRST..emp_sr.LAST --SAVE EXCEPTIONS
     10         UPDATE emp_temp SET job = job || '_SR'
     11            WHERE emp_sr(i) = emp_temp.empno;
     12  EXCEPTION
     13    WHEN OTHERS THEN -- Now we figure out what failed and why.
     14     errors := SQL%BULK_EXCEPTIONS.COUNT;
     15     DBMS_OUTPUT.PUT_LINE('Number of statements that failed: ' || errors);
     16     FOR i IN 1..errors LOOP
     17        DBMS_OUTPUT.PUT_LINE('Error #' || i || ' occurred during '||
     18           'iteration #' || SQL%BULK_EXCEPTIONS(i).ERROR_INDEX);
     19            DBMS_OUTPUT.PUT_LINE('Error message is ' ||
     20            SQLERRM(-SQL%BULK_EXCEPTIONS(i).ERROR_CODE));
     21     END LOOP;
     22  END;
     23  /
    Number of statements that failed: 1
    Error #1 occurred during iteration #2
    Error message is ORA-12899: value too large for column "SCOTT"."EMP_TEMP"."JOB"
    (actual: 11, maximum: 9)
    
    PL/SQL procedure successfully completed.
    
    SQL> DROP TABLE emp_temp;
    
    Table dropped.
    
    SQL> 
    

    SY.

  • How to call an existing application in the menu of an another aplication

    How to call an application in the menu select an another application example in the menu objects switch (selected) {case 0: here the call to other applications aexisting? break;}

    You can create a MenuItem that executes the code in this article.

    How - to launch a third-party app to another third-party application
    Article number: DB-00455

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800620/How_To _...

  • How to call static pages using web.show_document on the application server

    Hi all.

    I'm using forms / reports 11 g Rel2.

    I´d like to call it a few static pages of forms using web.show_document and have the pages located on the same machine where the application server is running.

    I know it's more a problem of Oracle HTTP Server configuration, but I want to know if I can use one of the default virtual directories already defined on the installation process.

    Please recommend a virtual directory to use.

    Best regards, Luis... :))

    Sure. You can store the files anywhere you want. Of course, it is easy to create a new virtual directory. But if you want to use an existing one, the most obvious likely would be the virtual path of/forms/html that can be found here:

    INSTANCE_HOME\config\FormsComponent\forms\html

    The url to access it would look something like this:

    http://server:port/forms/HTML/myWebPage.htm

  • On the Windows start page, photos of key shortcut icon keep Disappearing, failed to peak of the icon of Firefox. How can I stop this and make the pictures remain, as before. This just started last week.

    On my screen shortcut keys don't contain their individual icon pictures, until I have sign, back in market, or Clear My Temporary Files, etc. Then they all go to the Firefox default image. I also noticed that when I navigate using firefox, immediate shows NO icons next to some of the web addresses Web site, Instead showing a drop-message that the website offers no identity Info, which I know is wrong!
    This has only been happening for a week or So.
    Please, please, please help me!
    Thanks in advance for your kindness and help. I am a Novice at this stuff!
    See you soon!
    ;-)

    Hello

    I imagine the inconvenience that you are experiencing. I'll certainly try and help you fix the issue; However, I will need to ask you a few questions.

    1. what version of IE are you using?

    2 do you have of them pack installed?

    3. do you have an antivirus installed on the computer?

    4. do you also deal with any show related to problems with the computer?

    5. are you aware of any changes made to the computer before the show?

    First of all, you can run a full scan using the Microsoft Safety Scanner.

    Note: there is a risk of data loss if all the files are infected and which can be removed in the cleaning process.

    You can then try to launch the FIXIT of the article and see if it helps. Also go through the steps in this article as well and check it out.

    If you try the manual steps, do not forget to back up the registry.

    Registry warning

    To do: Important this section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    http://support.Microsoft.com/kb/322756/

    Hope this has been helpful and let us know if you need more assistance. We will be happy to help you.

  • How to call ofa page concurrent programs

    Hi all

    I need call concurrent programs of OPS page.user will select the out put the type of lookup and a button more must be RUN it if he select type and run the report.

    can someone suggest me how should I call from ofa simultaneous program page



    Thanks in advance
    Anthony

    Hello

    He comes to work for the same code:

    The controller code:

    Am3 ForumAMImpl = (ForumAMImpl) pageContext.getApplicationModule (webBean);
    RequestId int = (int) am3.submitrequest ();
    String url = "OA.jsp? akRegionCode = FNDCPREQDETAILSTOPREGION & akRegionApplicationId = 0 & REQUESTID ="+ requestid +"& retainAM = Y & addBreadCrumb = Y;

    pageContext.setForwardURL (url,
    NULL,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    NULL,
    NULL,
    true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
    OAWebBeanConstants.IGNORE_MESSAGES);

    Code of the AOS

    public int submitrequest()
    {

    Try
    {
    OADBTransaction tx = (OADBTransaction) getOADBTransaction ();
    java.sql.Connection pConncection = tx.getJdbcConnection ();
    ConcurrentRequest cr = new ConcurrentRequest (pConncection);
    String applnName = "PA." Application that contains the concurrent program
    String cpName = "SAPE_WITHDRAW_NOMINATION"; The simultaneous program name
    String cpDesc = "auto remove appointments with expired Nomination period; simultaneous description of the program

    Pass Arguments using the vector

    Vector cpArgs = new Vector();

    Call the simultaneous program
    requestId int = cr.submitRequest (applnName, cpName, cpDesc, "", false, cpArgs);
    TX.Commit ();
    System.out.println ("Request ID is" + requestId);
    return requestId;
    }
    catch (RequestSubmissionException e)
    {
    OAException oe = new OAException (e.getMessage ());
    oe.setApplicationModule (this);
    throw oe;
    }
    }

    Thank you
    Gerard

    Published by: Gauravv on November 9, 2009 20:16

Maybe you are looking for

  • I don't want the session to be restored after end of task

    From time to time when I come across a malicious website which prevents any action of navigation. If the simplest action is to use the end task on firefox.exe task manager. It works well, however, because firefox has been forced to leave he is trying

  • Windows Server 2012 PDC: Event Id 8193

    After installing DHCP on the PDC of domain for WS 2012, I get 8193 to each start/restart event id. It is exactly as described in this previous post. http://social.msdn.Microsoft.com/forums/en-us/winserver2008appcompatabilityandcertification/thread/cd

  • Picture it! Edition 2001

    I use picture it! 2001 Edition with great success with Windows XP, but is anyone know how to convert a draft document to JPEG? The option is not available at the stadium "Save."

  • No control of multichannel sound on HDMI (HP ProBook 4515 s TM500 the)

    I have the HP ProBook 4515 s TM500: Processor: AMD Turion II Dual - Core M500 2.2 GHz, 1 MB L2 cacheMemory: 1 x 2048 MB DDR2Hard drive: 250 GB-7200 RPMDisplay: 15.6 "LED HD 1366 x 768Graphics card: ATI Radeon HD 4330 dedic. 512 MB ProBook was no BONE

  • New computer with windows 8 farm to lock the screen too fast

    I have a new HP Envy 20 d touchscreen all-in-one with Windows 8. I am an artist and you want to look at my pictures while I sketch.  The screen will not open more than a few minutes. It fades and it goes immediately to the screen lock and I have to r