It is currently possible to refer to the value of a popup LOV with the bind variable “:APEX$F1”. It is useful to have this bind variable in instances when you want to reference a generic page item from the context of a List of Values in Shared Components. Opportunities for improvement include:
- Documenting this feature
- Standardizing it's use across all items that might reference a Shared LOV (select lists, etc)
- Renaming it. Perhaps “CURRENT_ITEM_VALUE” or something.
Use Case
- Lists of Values include an option to select an Oracle Text column. However it is not possible to sort the results by score / relevance without using the APEX$F1 bind variable as described here.
- I often find it useful to append a query referencing the current page item with a “union all” to allow for the possibility that the current value in the database record is now excluded from main query. For example, the current database record is pointing to a value that is no longer “active” and my shared LOV doesn't list “inactive” values.
Preferred Solution (Optional)
- Document “APEX$F1”
- Standardize it's use across all items that might reference a Shared LOV (select lists, etc)
- Consider renaming it. Perhaps “CURRENT_ITEM_VALUE” or something.