Oracle Application Express (MOSC)

MOSC Banner

Can I create a LOV where the index is created on the fly, not taken from a table?

Application Express 4.2.5.00.08

I need to create a List Of Values (LOV) of the coulmn Unit Part Number (UPN) for project ‘EVAL SYSTEMS’ in APEX, from table PIMS_COMPONENTS. I am aware a LOV in APEX needs to be in the form {Value, ID} for each row., but as there is no ID column as such in the table I tried creating a row number of my own and this query appears to give me the 5 rows I want:

select distinct unit_part_number d, DENSE_RANK() OVER (ORDER BY unit_part_number) as r from pims_component where project_id = 'EVAL SYSTEMS'

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center