Skip to main content

Posts

Showing posts from October, 2011

To V or not to V...

Earlier today, I tweeted the following: After this morning, I don't think I will ever use the "v" function again. #orclapex I wanted to qualify what I meant by that, since sometimes you only see one side of the conversation on Twitter. Also, it's been a while since my last post, so this give me the opportunity to remedy that as well. The APEX "v" function works, and works quite well. For those who have not used it, the "v" function is an APEX-specific function that when you pass an APEX item to it, it will return the value of that item for a specific user session. What's cool about it is that it also works from named PL/SQL program units, as long as they were initiated from an APEX session. Thus, you can write a PL/SQL package that takes in few, if any parameters and still can refer to items that are set in the APEX session state via the "v" function: PROCEDURE foo IS l_customer_name VARCHAR2(255) := v('P1_CUSTOMER_NA