Forum Stats

  • 3,826,201 Users
  • 2,260,605 Discussions
  • 7,896,821 Comments

Discussions

Returning values from a PL/SQL DA into Multiple Selects Lists Itens with Cascading Lov Parent

Igor Sala
Igor Sala Member Posts: 34 Blue Ribbon
edited Oct 31, 2016 8:25AM in APEX Discussions

Oh, Huge title!

Ok folks, I'm having some trouble with Select List Item and DA.

Example:

     Dynamic Action: when change item P1_A is not null

     Execute PL/SQL:

          begin

          select b,c

              into :P1_B, :P1_C

             from table

           where field = :P1_A ;

          end;

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

The fields P1_A, P1_B , P1_C are Select List Itens;

The fields P1_B , P1_C contains Cascading Lov Parent Itens;

- P1_B Cascading Lov Parent Itens: P1_A

- P1_C Cascading Lov Parent Itens: P1_A, P1_B.

Ok... The problem is...

When the DA is triggered, values from query into DA is returned on Field P1_B, but P1_C isn't...

Now, if manually selected P1_A value, then P1_B is refreshed, so I select P1_B value, then P1_C is refreshed, so there are values on P1_C to select.

That process is not working when is used Dynamic Action pl/sql.

I really don't know if it's something to fix on Oracle Apex or it's my fault.

Thank you.

Tagged:

Answers

  • Mike Kutz
    Mike Kutz Member Posts: 6,195 Silver Crown
    edited Oct 28, 2016 3:52PM

    Hard to tell what is wrong.

    Please recreate the problem on http://apex.oracle.com/

    Make sure you create a Developer account so that you don't have to post your email to the spam bots.

    We need

      workspace:

      developer account:

      password:

    This way, we can see what you did and correct the code if necessary.

    MK

  • InoL
    InoL Member Posts: 9,874 Gold Crown
    edited Oct 28, 2016 4:53PM
    select b,c   into :P1_B, :P1_Cvalues from query into DA is returned on Field P1_B, but P1_C isn't...

    Did you specify both items as Page Items To Return?

    pastedImage_18.png

  • Igor Sala
    Igor Sala Member Posts: 34 Blue Ribbon
    edited Oct 31, 2016 8:25AM

    Hi InoL!

    Yes, I did.

    In my page, there is many others select lists that works with Dynamic Action returning datas from queries, only in this case is not working.

    I'll try to recreate this case on apex.oracle.com.

    Thank you

This discussion has been closed.