Open Pop-up window and Pass parameter value in Oracle Apex using JavaScript & AJAX

Steps: Create 2 pages

  1. Page_1: Name = Master page, In this Page simply create a Text Field : P1_ITEM, Button: BUTTON_OPEN_POPUP
  2. Page_2: Name = Pop-up Page, In this Page simply create a Text Field: P2_PARAM
  3. Create a Dynamic Action against the BUTTON_OPEN_POPUP in Page_1
  4. Dynamic Action Property:
  •  Name:  Process to launch Pop-up
  • Selection Type: Button
  • Button: BUTTON_OPEN_POPUP
  • True Action: Execute JavaScript Code
  • Code:

5. Now create an AJAX callback process named DYNAMIC_URL_PROCESSING which will return dynamic link along with parameter value in the dynamic action calling process.

6. AJAX callback process property:

  • Name: DYNAMIC_URL_PROCESSING
  • Type: PL/SQL Code
  • Point: Ajax Callback
  • PL/SQL Code:

Note : In the case of multiple parameter value passing the URL do as shown in the below:

 

7. Now run Page_1, Put some value in the item P1_ITEM (example 1), click the button BUTTON_OPEN_POPUP, it will take you to the Page_2 and value 1 from item P1_ITEM in Page_1 will be passed to the item P2_PARAM in page_2

Thank You

21 Comments

  1. First of all thank you so much for this tutorial! I’ve been trying to achieve this for hours and finally I’ve been able to.

    But now I would like to pass a value from the master page that would fill more than one field in my pop-up page. What do I need to do to so that P1_ITEM would fill not only P2_PARAM but also, let’s say, P3_PARAM?

    I’m new to apex and I suppose that some change in “‘::::P2_PARAM:'” that would translate into “P2_PARAM and P3_PARAM” would do the trick. I just don’t know how to implement it.

    Once again, thank you very much!

    Daniel Mac
  2. Great post. I used to be checking continuously this weblog and I am inspired!
    Extremely helpful info particularly the ultimate sectio 🙂 I take care of such info much.
    I was looking for this certain info for a long time.
    Thanks aand berst of luck.

  3. Definitely believe that which you said. Your favorite justification appeared to be
    on the web the simplest thing to be aware of.
    I say to you, I definitely get annoyed while people
    consider worries that they plainly don’t know
    about. You managed to hit the nail upon the top as well as defined
    out the whole thing without having side-effects , people could take a signal.
    Will likely be back to get more. Thanks

  4. Pretty ѕection of сontent. I just stumbled upօn yojr sitte and in accession capital tо assert tһat I acquire aactually enjoyed account youyr blog posts.

    Αnyway I will be subscribing to your augment aand eνen I achievement үoս access consistently rapidly.

  5. Ꮃһɑt’ѕ up, Steve from Bridges.
    Wow “Ⲟpen popup window and pass vaslue սsing JavaScript in oracle apex”
    certainly an original subject
    Simply ᴡanted to share tһat Ι ⅼike yoսr blog.

  6. I have been exploring for a little bit for any high-quality articles or weblog posts on this sort of space
    . Exploring in Yahoo I eventually stumbled upon this website.
    Studying this info So i am satisfied to convey that
    I’ve an incredibly good uncanny feeling I found out exactly what I
    needed. I such a lot for sure will make certain to do not fail to remember this site and
    give it a look regularly.

Comments are closed.