This discussion is archived
13 Replies Latest reply: Oct 9, 2012 5:38 PM by scott.wesley RSS

How to soft-code the page number portion of an item name?

Kim2012 Newbie
Currently Being Moderated
Hello Apexers,

In an Application Procedure, I'd like to reference some items that are local to the current page. Obviously, hard-coding like the following won't work unless it happens to be on Page 25.

:f105_blah := :p25_blah;

So how can I write this line of PL/SQL code so that the "25" is automatically set to the number of the current page?

Thanks so much,
Kim

P.S. I tried the following, but it didn't put anything in the App Item.

:f105_blah := to_char('p' || NV('APP_PAGE_ID') || '_blah');

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points