Oracle Application Express (MOSC)

MOSC Banner

Discussions

How to get the column value based on the substitution string in APEX Interactive grid? query?

edited Nov 17, 2021 4:29PM in Oracle Application Express (MOSC) Question

Hello,

I have to pass the dynamic hidden item value in some columns in APEX Interactive grid.

to_char(&P1_ITEM)

P1_ITEM -> YR_2020 (YR_2020 is column name in the table, column value = 1000)

If I pass the :P1_ITEM in the query, I am getting the item string in the report. How to get the column value(1000) instead of the item string(YR_2020)?

CASE WHEN P1_ITEM = 'YR_2021' then YR_2021

else &P1_ITEM

My else part is not working.

Any help is greatly appreciated.

Thanks

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.

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center