Open the pl/sql block pop title request page

Hi all

Can someone show me the correct syntax for opening a page of the application in a window popup using
of htp.p of pl/sql with (parameters of the page.) or local variables of the pl/sql block?

And also how can force you a refresh of the page parent once the pop-up was closed.

Any help would be appreciated.

Kind regards
Cleo

Hello

To generate a link to a pop-up window on your parent page:

htp.p(' <a href="javascript:callPopup('||:P1_ID|| ')" > ');

And add this in the header html on your parent page:

<script type="text/javascript" >

function callPopup(recordId){
 var url;
  url = 'f?p=&APP_ID.:POPUPPAGEALIAS:&APP_SESSION.::::P_RECORD_ID:' + recordId;
  w = open(url,"textarea","Scrollbars=1,resizable=1,width=800,height=600");
  if (w.opener == null)
  w.opener = self;
  w.focus();
}

</script >

And to refresh the page parent after the closure of the pop-up window, add to the html on your popup page header:

<BODY onUnload="javascript: window.opener.location.reload(true);">

Tags: Database

Similar Questions

  • When I try to open the VAIO Care, a pop-up message is displayed

    When I try to open the VAIO Care, a pop-up message is displayed:

    "VAIOShell has stopped working. A problem caused the blocking of the program works correctly. Windows will close the program and notify you if a solution is available. Then the program quits.

    I have the model # VPCF236FM

    Help!

    Hi MLightfoot!

    What is your current operating system? You can try to reinstall VAIO care and its update from the link below.

    http://eSupport.Sony.com/us/p/model-home.pl?MDL=VPCF236FM&template_id=1&Region_ID=1&tab=download#/do...

    I hope this helps.

    If my post answered your question, please mark it as "accept as a Solution.

  • I am now on iOS 9.2 Game Center still does not work. When I open the app it freezes on a blank page. When I open the Game Center in the settings, it freezes and then crashes. Please Apple can solve this problem of Game Center iOS 9.2.

    I am on iOS 9.2 and Game Center still does not work. When I open the app it freezes on a blank page. When I open the Game Center in the Middle it hangs just. For this reason, I can't back up my data on my games. Please Apple can solve this problem of iOS 9.2.

    Hello Vaishnav,

    Thank you for using communities of Apple Support.

    I see that you are having problems with Game Center on your iPhone. I have a number of things for you to try.

    First force quit Game Center.

    1. Press the Home button twice quickly. You will see small glimpses of your applications recently used.
    2. Swipe to the left to find the Game Center app to close.
    3. Swipe up on the preview of the Game Center to close.

    Force an app to close the iOS

    If this does not work, then the next step would be a restoration. I recommend restore like new, without backup restore and everything first. If it works there, you can restore the backup.

    Use iTunes to restore your iPhone, iPad or iPod to factory settings

    Best regards.

  • to change the pl/sql block to get the value of the user

    In this code rather than affect the value of the SID in the block, I want to get the sid of the user.

    Help, please.

    Oracle Database 10 g Express Edition Release 10.2.0.1.0 - product
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    AMT for 32-bit Windows: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production

    declare

    v_sname t1.sname%type;

    v_issue_date t3.issue_date%type;

    v_book_title t2.book_title%type;

    v_book_id t2.book_id%type;

    cursor c1 is

    Select t1.sname, t3.issue_date, t2.book_title, book_id

    join T1 T3

    using (SID)

    Join t2

    using (book_id)

    where sid = 1;

    Start

    Open c1

    loop

    dbms_output.put_line (v_sname |) » '  || v_issue_date | » '  || v_book_title | ' ' || v_book_id);

    extract the c1 in v_sname, v_issue_date, v_book_title, v_book_id;

    When exit c1% notfound;

    end loop;

    Close c1;

    end;

    /

    Thank you

    If I set up a script that I want to pass a value, I just a configuration variable and name it and use it very similar to a procedure or function. Makes it easy to implement a procedure/function, or to convert a function/procedure in a PL/SQL block for test/debugging with relatively few changes to the code inside:

    declare
       in_sid  number  := to_number('&1');
    
       v_sname t1.sname%type;
       v_issue_date t3.issue_date%type;
       v_book_title t2.book_title%type;
       v_book_id t2.book_id%type;
       cursor c1 is
          select t1.sname, t3.issue_date, t2.book_title, book_id
          from t1 join t3
          using(sid)
          join t2
          using(book_id)
          where sid=in_sid;
    begin
       open c1
       loop
          dbms_output.put_line( v_sname ||' '  || v_issue_date ||' '  || v_book_title || ' ' || v_book_id);
          fetch c1 into v_sname, v_issue_date, v_book_title, v_book_id;
          exit when c1%notfound;
       end loop;
       close c1;
    end;
    /
    
  • Ignore the error and continue the pl/sql block

    Dear all,

    Please help me to fix the script below.

    I had an obligation to write a pl/sql that will handle the update instructions.

    For example:
    A table that contains 10 rows of data. Through pl/SQL block, I update the 10 rows (or a smaller number of lines).
    Now, the scenario is by updating registration / line 4, oracle has met an error and then oracle leave pl/sql block and cancel the transaction.

    My requirement here is, by updating the records, if oracle encounters an error, it must raise an error or ignore the record and continue to process records. Oracle wouldn't pl/sql block.

    We are using oracle 10g.

    Thank you
    KODS

    As has already been suggested, you might check DML ERROR LOGGING

  • Select the query within the PL/SQL block.

    Hello Experts,

    I'm just a beginner with PL/SQL.
    If I write a select query of client like fire against a database and SQL dev, it gives me result.
    For example: select * from employee;

    Now suppose that when I use the same query within a PL/SQL block:
    Declare
    Start
    Select * from employee;
    end;
    /
    It gives error during execution, by mentioning that an INTO should etc...
    I have my doubts here:
    1. is it impossible to use a simple select statement within a PL/SQL block (If yes why?)

    I know it's a very basic question, I tried to search it on the forum but could not find the thread, please redirect me to the link if it is already the answer.

    Please read this first. may ask why?

    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28370/TOC.htm

  • How to execute the pl/sql block from a file

    Hi all
    can someone tell me how to execute a pl/sql block to a file.it does contain no procedures.it is of the form
    -Start
    -says
    -end;

    Thanx

    Ok.. If the time points? :)

    See you soon!
    Bobin

  • My first while loop inside the PL/SQL block does not, please help

    Hello

    I'm new to PL/sql and struck PL SQL blocks, please help solve this problem.

    declare

    constant v_A number: = 10;
    constant number j: = 3;

    BEGIN

    WHILE j < v_A
    LOOP
    DBMS_OUTPUT. Put_line ('Hai');
    END LOOP;
    END;

    Please help as how to solve this problem.

    Thanks in advance.

    You cannot declare j as in 'permanent' If you want to increment its value. better go to another variable if you intentionally want constant j.

    Something like this:

    declare
    v_A number constant:=10 ;
    j number constant := 3 ;
    i number;
    BEGIN
    i := j;
    WHILE i < v_A
    LOOP
    i := i + 1;
    DBMS_OUTPUT.PUT_LINE('Hai');
    END LOOP;
    END;
    

    ... Vivek

    Published by: Vivek 21 Sep, 2010 02:54

  • Error in the pl/sql block using associative arrays

    Hello
    I tried the following block of code using associative arrays.
    DECLARE
       TYPE NumTab IS TABLE OF NUMBER INDEX BY BINARY_INTEGER;
       CURSOR c1 IS SELECT empno FROM emp;
       empnos NumTab;
       rows   NATURAL := 10;
    BEGIN
       OPEN c1;
       FOR i in empnos.first..empnos.last LOOP
          /* The following statement fetches 10 rows (or less). */
          FETCH c1 BULK COLLECT INTO empnos LIMIT rows;
          EXIT WHEN c1%NOTFOUND;
          DBMS_OUTPUT.PUT_LINE ( empnos.next(i)); 
       END LOOP;
       CLOSE c1;
    END;
    and the error is
    DECLARE
    *
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at line 8
    could you please let me know where I am going wrong
    and please guide me where we use these associative arrays.

    Thank you

    Try this

    DECLARE
       TYPE NumTab IS TABLE OF emp%rowtype INDEX BY PLS_INTEGER;
       CURSOR c1 IS SELECT * FROM emp;
       empnos NumTab;
       rows   INTEGER := 10;
    BEGIN
      OPEN C1;
      LOOP
        FETCH c1 BULK COLLECT INTO empnos LIMIT rows;
        EXIT WHEN c1%NOTFOUND;
    
        FOR i IN 1..empnos.count
        LOOP
          DBMS_OUTPUT.PUT_LINE(empnos(i).empno || '/' || empnos(i).ename);
        END LOOP;
      END LOOP;
    END;
    
  • I can not open the mail - I'm getting "bad request".

    I see several people have reported that they cannot open yahoo email after downloading Mozilla - get 'bad request '. Where to get help with this problem since it is obviously a problem that needs to be addressed.

    This problem may be caused by corrupted cookies.

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Firefox > Preferences > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox > Preferences > privacy > Cookies: "show the Cookies".
  • What's not in the pl/sql block

    Hi, I am unable to pass the parameter of a cursor to other cursors.
    create table temp3 as select * from dept;
    
    create table temp4 as select * from emp;
    
    
    create or replace procedure xx_rep is
    
    cursor xx_dep_cur is select deptno from dept;
    
    cursor xx_emp_cur(p_dept number)
     is  select sal,comm from temp4 where deptno =p_dept;
    
       TYPE idt_cur_dep2 IS TABLE OF xx_dep_cur%ROWTYPE
                  INDEX BY PLS_INTEGER;
           t_idt_cur_dep2       idt_cur_dep2;
    
    
     TYPE idt_cur_emp2 IS TABLE OF xx_emp_cur(p_dept number)%ROWTYPE
                  INDEX BY PLS_INTEGER;
           t_idt_cur_emp2      idt_cur_emp2;
    
    
    
    BEGIN
    OPEN xx_dep_cur;
    LOOP
    FETCH xx_dep_cur
       BULK COLLECT INTO t_idt_cur_dep2 LIMIT 1000;
    
    EXIT WHEN t_idt_cur_dep2.count<=0;
    
    FOR indx in t_idt_cur_dep2.first .. t_idt_cur_dep2.last LOOP
    
    DELETE  from temp3 where deptno=t_idt_cur_dep2(indx).deptno;
    
    
    --main update
    
    BEGIN
    OPEN xx_emp_cur(t_idt_cur_dep2(indx).deptno);
    LOOP
    FETCH xx_emp_cur
       BULK COLLECT INTO t_idt_cur_emp2 LIMIT 1000;
    
    EXIT WHEN t_idt_cur_emp2.count<=0;
    
    FOR indx in t_idt_cur_emp2.first .. t_idt_cur_emp2.last LOOP
    
    UPDATE temp4 set 
    comm=10 , sal =100  where deptno=t_idt_cur_dep2(indx).deptno;
    
    END LOOP;
    END LOOP;
    close xx_emp_cur(t_idt_cur_dep2(indx).deptno);
     EXCEPTION
            WHEN OTHERS
                THEN
                    dbms_output.put_line('Exception' || SQLCODE||' '|| SQLERRM);
          END;
         
    
    
    --end of main update
    END LOOP;
    END LOOP;
     COMMIT;
    Close xx_dep_cur;
       
     EXCEPTION
            WHEN OTHERS
                THEN
                     dbms_output.put_line('Exception'|| SQLCODE||' '|| SQLERRM);
          END;
         

    You have syntax errors and when you set the couple noticed that you will find a little more.

    First place a
    /
    display errors;

    at the end of your code. This will display your mistakes you don't have query user_errors. When you close a cursor set you just use the name of cursor with no parameters, or the parameter list appears in the reference cursor in the Type statement on line 13.

    The rest is up to you.

    HTH - Mark D Powell.

  • A question about the input within the PL/SQL block values

    Hi all

    I would be grateful if you could kindly help me with this issue well.

    Consider the following code.
    DECLARE
      myvar1 NUMBER;
      myvar2 NUMBER;
      myvar3 NUMBER;
    BEGIN
      myvar1 := &1;
      myvar2 := &2;
      myvar3 := &3;
      
      DBMS_OUTPUT.put_line('myvar1 = ' || myvar1);
      DBMS_OUTPUT.put_line('myvar2 = ' || myvar2);
      DBMS_OUTPUT.put_line('myvar3 = ' || myvar3);
    END;
    /
    This program reads the three input values and print them. However, I have noticed that if instead of writing
    myvar1 := &1;
    myvar2 := &2;
    myvar3 := &3;
    I am writing
    myvar1 := '&1';
    myvar2 := '&2';
    myvar3 := '&3';
    The program will have the same result. I would like to know if there is a semantic difference between the two syntax,
    in other words, there is no difference between for example & myvar1 and "myvar1?


    Thanks in advance,
    Dariyoosh

    & 1 would be a NUMBER
    ' & 1' would be a TANK, that would be implicitly converted to a NUMBER.

  • Bounded gets dialog task flow that The ADF tent last pop entry scope page error stack flow controller

    I have a flow of stubborn task that I throw like a line-popup dialog box.  There are buttons with an action listener.  When I use AdfFacesContext.getCurrentInstance () .returnFromDialog (returnValue, null) at the end of the code in the event the message I get is

    ADFC 12001: The ADF controller pop tent last entry of error in page flow scope stack.

    The error is displayed in the debug window, but does not stop the application or display the message in the application.

    I use JDev 11.1.1.7

    Everything seems to work, why so this error occurring?

    I've seen this error, but no clear answer-related positions.

    Hello

    seems that the workflow is trying to clean up but there is nothing to clean up. I can't find any entry in the database of bugs, but think it's because the workflow in fact - if present in a dialog online - is not stacked.

    Frank

  • When I try to open the lastpass vault, I get an oops page could not be found and the tab has the word inside chrome

    OK... I downloaded a free program and now when I try to access my Lastpass safe a page comes up with an oops can't find. The tab on the page has the word Chrome. Now, chrome has been loaded download free even if I ticked the box don't not to do this. I uninstalled Chrome, but it is still somehow in my browser. How di I get rid of this pest?

    A URI that begins with the chrome: / / Protocol links to an extension or any other code of build-in Firefox.

    If you do not see such an error then indicates that generally the there is a problem with an extension.

  • How to truncate the table in a pl/sql block

    Hello guys, I'm trying to truncate a table that includes data using a pl/sql block, so if the table has even a single row then the truncate should run. to do this, I wrote the following code


    declare
    number num.
    Start
    Select count (*) in the num from table_name;
    If num > 0 then
    truncate table table_name;
    end if;
    end;

    Now, when I execute the pl/sql block, I get the following error.

    PLS-00103: encountered the symbol "TABLE" when the expected in the following way:

    When I run the truncate without pl/sql command, it runs very well.

    Can someone please where I'm wrong.

    Thank you

    Published by: 969224 on April 23, 2013 08:08

    969224 wrote:
    Hello guys, I'm trying to truncate a table that includes data using a pl/sql block, so if the table has even a single row then the truncate should run. to do this, I wrote the following code

    declare
    number num.
    Start
    Select count (*) in the num from table_name;
    If num > 0 then
    truncate table table_name;
    end if;
    end;

    Now, when I execute the pl/sql block, I get the following error.

    PLS-00103: encountered the symbol "TABLE" when the expected in the following way:

    When I run the truncate without pl/sql command, it runs very well.

    Can someone please where I'm wrong.

    Thank you

    Published by: 969224 on April 23, 2013 08:08

    DDL is not allowed directly within PL/SQL procedures.

    You must (ab) use EXECUTE IMMEDIATE issuing the DDL

Maybe you are looking for