Running Apex 4.2.3.00.08 on Windows Server 2008 and Oracle Database 11.2.0.1.0
I am working through the instructions in this blog entry to try to create dynamic field labels:
http://apexbyg.blogspot.com/2012/10/dynamically-changing-item-labels.html
I have hit a snag. The following two lines in the Oracle function are causing me grief, because they are preventing the function from returning any data from the apex_application_page_items table:
where pi.application_id = v('APP_ID')
and pi.page_id = v('APP_PAGE_ID')
I have tried v(...) as well as nv(...), and they both return the same error, indicating that the function returned zero rows.
I found the culprit lines of code by replacing v('APP_ID') with 113 (hard-coding the application number), and removing the second line altogether, which made it work fine. So there obviously is something wrong with the way I'm trying to pass in the APP_ID and the APP_PAGE_ID.
Any thoughts?