Oracle Application Express (MOSC)

MOSC Banner

How can I link a concatenated string column in a Classic Report to a URL in APEX?

edited Mar 20, 2023 10:42PM in Oracle Application Express (MOSC) Question

Hi all,

I am using Oracle APEX version 22.2.4 on Autonomous database version 19c. I have created a classic report on a database table using the following SQL query:

select s.ID,

    s.ADDRESS_LINE1 Address1,

    s.ADDRESS_LINE2 Address2,

    s.CITY City,

    s.POST_CODE PostCode,

    (nvl2(s.ADDRESS_LINE1, s.ADDRESS_LINE1 || ', ', '') || nvl2(s.CITY, s.CITY || ', ', '') || s.POST_CODE) location

from BCS_SERVICE_USERS s

where s.ID = :P32_SERVICE_USER_ID

I have used a concatenated string on the location column so that I can link the resulting address as a single string into a URL, which I have defined on the column. See attached for details. If I run the above query into SQL developer, substituting :P32_SERVICE_USER_ID for a valid Service User ID, I can get a concatenated string made up of the available fields as expected.

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