Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Anonymous block code as LOV in Apex 4.2

RanjeetOAMar 7 2014 — edited Mar 7 2014

Hi All i wanted to use the below code as LOV in Apex 4.2.

DECLARE

  TYPE MY_TAB IS TABLE OF VARCHAR2(20) INDEX BY VARCHAR2(1);

  VAR1 MY_TAB;

  X VARCHAR2(1);

BEGIN

  VAR1('A') := 'APPLE';

  VAR1('B') := 'BOY';

  VAR1('C') := 'CAT';

  VAR1('D') := 'DOG';

  VAR1('E') := 'ELEPHANT';

  X := 'A';

  LOOP

    DBMS_OUTPUT.PUT_LINE (X||' for  '||VAR1(X));

    X := VAR1.NEXT(X); 

    EXIT WHEN X IS NULL;

  END LOOP;

END;

how to use the same, could some one please help??

Thanks,

Ranjeet

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 4 2014
Added on Mar 7 2014
2 comments
143 views