Conversion of HTML to the APEX form

I use 5 APEX and need to replicate some features on an existing HTML (see below) form. I need to have a button on my page that will send (redirect URL with action) and pass these 3 hidden items. The item values for 'ac', and 'table' will be static, but the value 'list' should be dynamic and together (PLSQL) process. Can someone give me the best way to achieve this on the APEX page.

"< are method ="POST"action="/admin/home.html ">

< input type = "hidden" name = "ac" value = "buildsel" >

< input type = "hidden" name = "table" value = "Students" >

< input type = "hidden" name = "list" value = "1,2,3" >

< / make >

So, your problem is not passing the values to the homepage, but get values in the order of the day?

There are several options, depending on your Apex page needs. For example, your article 'list' can have a "PL/SQL function body ': source

declare

v_return varchar2 (100);

Start

because loop me in 1.3

v_return: = v_return | ',' || TO_CHAR (i);

end loop;

Ltrim (v_return, ',') return;

end;

Tags: Database

Similar Questions

  • ORA-01465 number hexadecimal invalid on an update of the Apex form

    Hello

    I get the above error when everything I do is adding data of normal text to a form that is to include a file upload, but the error does not occur when I download a file.  It happens when I add data to a text box in which is of type varchar2, not when I download a file.  It is in the Apex 4.2.4

    error2.gif

    If I just enter a text string, the data are updated without error, but the text box is varchar2 (4000) so I don't understand why I get this error.  Below is the data entry is successful - no error message, the data is refreshed.

    .no_error.gif

    Help on what to look at to find the cause of this error would be appreciated.

    Pat

    Hello

    My report and the form was built using Apex tool wizards.  By the process of elimination, I realized that the error came from the "Show only" field I had put on the form for one of the file download I don't want the user to change.  So I rebuilt the form/report, so the interactive report shows just the displayable downloads (downloaded previously) by other users and the form only shows the appropriate field to download new files.  I have no more errors.

    Thanks to all for the replies!

    Pat

  • HTML in the apex

    Hello

    I'm on version 4.1.1.00.23 of the APEX.  I'm trying "BOLD" text in a query on a region on a page.  I'll send the query.  The funny thing is that it works on one page, but not on my new page. I even copy the exact region with the exact query that runs on a single page to the new page, but it will not work. Y at - there a trick to this. I'm trying just to get totals of Word: to be bold. See below.

    Select case null is null then ' < span style = "make weight:" BOLD "" > totals: </span > ' another ' < span style = "police-weight:" BOLD "" > totals: </span > ' end 'Pvperiod '.

    , to_number (GET_CONS_PERCENT (1, 'AUS', 0,: P56_CYEAR)) 'AUS.

    , to_number (GET_CONS_PERCENT (1, 'AT', 0,: P56_CYEAR)) "AT".

    , to_number (GET_CONS_PERCENT (1, 'BM', 0,: P56_CYEAR)) "BM".

    , to_number (GET_CONS_PERCENT (1, 'BS', 0,: P56_CYEAR)) 'BS '.

    , to_number (GET_CONS_PERCENT (1, 'BRN', 0,: P56_CYEAR)) 'BRN '.

    , to_number (GET_CONS_PERCENT (1, 'CAN', 0,: P56_CYEAR)) 'CAN'

    , to_number (GET_CONS_PERCENT (1, '', 0,: P56_CYEAR)) 'FROM '.

    , to_number (GET_CONS_PERCENT (1, 'EN', 0,: P56_CYEAR)) 'FR '.

    , to_number (GET_CONS_PERCENT (1, 'IDN', 0,: P56_CYEAR)) "IDN".

    , to_number (GET_CONS_PERCENT (1, "IE", 0,: P56_CYEAR)) 'IE '.

    , to_number (GET_CONS_PERCENT (1, 'MEX', 0,: P56_CYEAR)) 'MEX '.

    , to_number (GET_CONS_PERCENT (1, 'MY', 0,: P56_CYEAR)) 'MY '.

    , to_number (GET_CONS_PERCENT (1, 'NL', 0,: P56_CYEAR)) 'NL '.

    , to_number (GET_CONS_PERCENT (1, 'NZ', 0,: P56_CYEAR)) "NZ".

    , to_number (GET_CONS_PERCENT (1, 'PH', 0,: P56_CYEAR)) 'PH '.

    , to_number (GET_CONS_PERCENT (1, 'SG', 0,: P56_CYEAR)) "SG".

    , to_number (GET_CONS_PERCENT (1, 'TT', 0,: P56_CYEAR)) 'TT '.

    , to_number (GET_CONS_PERCENT (1, 'UK', 0,: P56_CYEAR)) 'UK '.

    , to_number (GET_CONS_PERCENT (1, 'USA', 0,: P56_CYEAR)) "USA."

    , to_number (GET_CONS_PERCENT (2, 'WOR', 0,: P56_CYEAR)) 'the WORLD '.

    , to_number (GET_CONS_PERCENT (3, 'INT', 0,: P56_CYEAR)) 'INTNL_ONLY '.

    OF THE DOUBLE

    Union

    Select to_char (pvperiod) "pvperiod".

    (CASE WHEN (select (m1.total) from dw_data.metrics m1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "AUS".

    and m1.pvperiod = m.pvperiod - 100) > 0

    THEN (round ((NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "AUS".

    (m1.pvperiod = m.pvperiod) and 0)

    -NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "AUS".

    and m1.pvperiod = m.pvperiod - 100), 0))

    / NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "AUS".

    and m1.pvperiod = m.pvperiod - 100), 0), 4) * 100)

    0 OTHERWISE

    END) 'AUS.

    (CASE WHEN (select (m1.total) from dw_data.metrics m1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "AT".

    and m1.pvperiod = m.pvperiod - 100) > 0

    THEN (round ((NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "AT".

    (m1.pvperiod = m.pvperiod) and 0)

    -NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "AT".

    and m1.pvperiod = m.pvperiod - 100), 0))

    / NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "AT".

    and m1.pvperiod = m.pvperiod - 100), 0), 4) * 100)

    0 OTHERWISE

    END) "AT".

    (CASE WHEN (select (m1.total) from dw_data.metrics m1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "BM".

    and m1.pvperiod = m.pvperiod - 100) > 0

    THEN (round ((NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "BM".

    (m1.pvperiod = m.pvperiod) and 0)

    -NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "BM".

    and m1.pvperiod = m.pvperiod - 100), 0))

    / NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "BM".

    and m1.pvperiod = m.pvperiod - 100), 0), 4) * 100)

    0 OTHERWISE

    END) "BM".

    (CASE WHEN (select (m1.total) from dw_data.metrics m1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "BS".

    and m1.pvperiod = m.pvperiod - 100) > 0

    THEN (round ((NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "BS".

    (m1.pvperiod = m.pvperiod) and 0)

    -NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "BS".

    and m1.pvperiod = m.pvperiod - 100), 0))

    / NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "BS".

    and m1.pvperiod = m.pvperiod - 100), 0), 4) * 100)

    0 OTHERWISE

    END) "BS".

    (CASE WHEN (select (m1.total) from dw_data.metrics m1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "BRN".

    and m1.pvperiod = m.pvperiod - 100) > 0

    THEN (round ((NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "BRN".

    (m1.pvperiod = m.pvperiod) and 0)

    -NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "BRN".

    and m1.pvperiod = m.pvperiod - 100), 0))

    / NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "BRN".

    and m1.pvperiod = m.pvperiod - 100), 0), 4) * 100)

    0 OTHERWISE

    END) "BRN".

    (CASE WHEN (select (m1.total) from dw_data.metrics m1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "CAN."

    and m1.pvperiod = m.pvperiod - 100) > 0

    THEN (round ((NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "CAN."

    (m1.pvperiod = m.pvperiod) and 0)

    -NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "CAN."

    and m1.pvperiod = m.pvperiod - 100), 0))

    / NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "CAN."

    and m1.pvperiod = m.pvperiod - 100), 0), 4) * 100)

    0 OTHERWISE

    END) 'CAN '.

    (CASE WHEN (select (m1.total) from dw_data.metrics m1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "FROM".

    and m1.pvperiod = m.pvperiod - 100) > 0

    THEN (round ((NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "FROM".

    (m1.pvperiod = m.pvperiod) and 0)

    -NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "FROM".

    and m1.pvperiod = m.pvperiod - 100), 0))

    / NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "FROM".

    and m1.pvperiod = m.pvperiod - 100), 0), 4) * 100)

    0 OTHERWISE

    END) 'OF '.

    (CASE WHEN (select (m1.total) from dw_data.metrics m1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "FR".

    and m1.pvperiod = m.pvperiod - 100) > 0

    THEN (round ((NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "FR".

    (m1.pvperiod = m.pvperiod) and 0)

    -NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "FR".

    and m1.pvperiod = m.pvperiod - 100), 0))

    / NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "FR".

    and m1.pvperiod = m.pvperiod - 100), 0), 4) * 100)

    0 OTHERWISE

    END) "EN".

    (CASE WHEN (select (m1.total) from dw_data.metrics m1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "IDN".

    and m1.pvperiod = m.pvperiod - 100) > 0

    THEN (round ((NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "IDN".

    (m1.pvperiod = m.pvperiod) and 0)

    -NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "IDN".

    and m1.pvperiod = m.pvperiod - 100), 0))

    / NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "IDN".

    and m1.pvperiod = m.pvperiod - 100), 0), 4) * 100)

    0 OTHERWISE

    END) "IDN".

    (CASE WHEN (select (m1.total) from dw_data.metrics m1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "IE".

    and m1.pvperiod = m.pvperiod - 100) > 0

    THEN (round ((NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "IE".

    (m1.pvperiod = m.pvperiod) and 0)

    -NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "IE".

    and m1.pvperiod = m.pvperiod - 100), 0))

    / NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "IE".

    and m1.pvperiod = m.pvperiod - 100), 0), 4) * 100)

    0 OTHERWISE

    END) 'IE '.

    (CASE WHEN (select (m1.total) from dw_data.metrics m1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "MEX".

    and m1.pvperiod = m.pvperiod - 100) > 0

    THEN (round ((NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "MEX".

    (m1.pvperiod = m.pvperiod) and 0)

    -NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "MEX".

    and m1.pvperiod = m.pvperiod - 100), 0))

    / NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "MEX".

    and m1.pvperiod = m.pvperiod - 100), 0), 4) * 100)

    0 OTHERWISE

    END) "MEX".

    (CASE WHEN (select (m1.total) from dw_data.metrics m1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = 'MY '.

    and m1.pvperiod = m.pvperiod - 100) > 0

    THEN (round ((NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = 'MY '.

    (m1.pvperiod = m.pvperiod) and 0)

    -NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = 'MY '.

    and m1.pvperiod = m.pvperiod - 100), 0))

    / NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = 'MY '.

    and m1.pvperiod = m.pvperiod - 100), 0), 4) * 100)

    0 OTHERWISE

    END) 'MY

    (CASE WHEN (select (m1.total) from dw_data.metrics m1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "NL".

    and m1.pvperiod = m.pvperiod - 100) > 0

    THEN (round ((NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "NL".

    (m1.pvperiod = m.pvperiod) and 0)

    -NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "NL".

    and m1.pvperiod = m.pvperiod - 100), 0))

    / NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "NL".

    and m1.pvperiod = m.pvperiod - 100), 0), 4) * 100)

    0 OTHERWISE

    END) "NL".

    (CASE WHEN (select (m1.total) from dw_data.metrics m1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "NZ".

    and m1.pvperiod = m.pvperiod - 100) > 0

    THEN (round ((NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "NZ".

    (m1.pvperiod = m.pvperiod) and 0)

    -NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "NZ".

    and m1.pvperiod = m.pvperiod - 100), 0))

    / NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "NZ".

    and m1.pvperiod = m.pvperiod - 100), 0), 4) * 100)

    0 OTHERWISE

    END) "NZ".

    (CASE WHEN (select (m1.total) from dw_data.metrics m1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "PH".

    and m1.pvperiod = m.pvperiod - 100) > 0

    THEN (round ((NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "PH".

    (m1.pvperiod = m.pvperiod) and 0)

    -NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "PH".

    and m1.pvperiod = m.pvperiod - 100), 0))

    / NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "PH".

    and m1.pvperiod = m.pvperiod - 100), 0), 4) * 100)

    0 OTHERWISE

    END) "PH".

    (CASE WHEN (select (m1.total) from dw_data.metrics m1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "SG".

    and m1.pvperiod = m.pvperiod - 100) > 0

    THEN (round ((NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "SG".

    (m1.pvperiod = m.pvperiod) and 0)

    -NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "SG".

    and m1.pvperiod = m.pvperiod - 100), 0))

    / NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "SG".

    and m1.pvperiod = m.pvperiod - 100), 0), 4) * 100)

    0 OTHERWISE

    END) "SG".

    (CASE WHEN (select (m1.total) from dw_data.metrics m1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "TT".

    and m1.pvperiod = m.pvperiod - 100) > 0

    THEN (round ((NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "TT".

    (m1.pvperiod = m.pvperiod) and 0)

    -NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "TT".

    and m1.pvperiod = m.pvperiod - 100), 0))

    / NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "TT".

    and m1.pvperiod = m.pvperiod - 100), 0), 4) * 100)

    0 OTHERWISE

    END) 'TT '.

    (CASE WHEN (select (m1.total) from dw_data.metrics m1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "UK".

    and m1.pvperiod = m.pvperiod - 100) > 0

    THEN (round ((NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "UK".

    (m1.pvperiod = m.pvperiod) and 0)

    -NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "UK".

    and m1.pvperiod = m.pvperiod - 100), 0))

    / NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "UK".

    and m1.pvperiod = m.pvperiod - 100), 0), 4) * 100)

    0 OTHERWISE

    END) 'UK '.

    (CASE WHEN (select (m1.total) from dw_data.metrics m1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "USA."

    and m1.pvperiod = m.pvperiod - 100) > 0

    THEN (round ((NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "USA."

    (m1.pvperiod = m.pvperiod) and 0)

    -NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "USA."

    and m1.pvperiod = m.pvperiod - 100), 0))

    / NVL ((select (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) = "USA."

    and m1.pvperiod = m.pvperiod - 100), 0), 4) * 100)

    0 OTHERWISE

    END) "USA."

    (CASE WHEN (select SUM (m1.total) in dw_data.metrics m1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) in (select distinct trim (country) wd_country)

    and m1.pvperiod = m.pvperiod - 100) > 0

    THEN (round ((NVL ((select SUM (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) in (select distinct trim (country) wd_country)

    (m1.pvperiod = m.pvperiod) and 0)

    -NVL ((select SUM (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) in (select distinct trim (country) wd_country)

    and m1.pvperiod = m.pvperiod - 100), 0))

    / NVL ((select SUM (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) in (select distinct trim (country) wd_country)

    and m1.pvperiod = m.pvperiod - 100), 0), 4) * 100)

    0 OTHERWISE

    END) 'THE WORLD '.

    (CASE WHEN (select SUM (m1.total) in dw_data.metrics m1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) in (select distinct trim (country) wd_country <>of countries WHERE the 'USA')

    and m1.pvperiod = m.pvperiod - 100) > 0

    THEN (round ((NVL ((select SUM (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) in (select distinct trim (country) wd_country <>of countries WHERE the 'USA')

    (m1.pvperiod = m.pvperiod) and 0)

    -NVL ((select SUM (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) in (select distinct trim (country) wd_country <>of countries WHERE the 'USA')

    and m1.pvperiod = m.pvperiod - 100), 0))

    / NVL ((select SUM (m1.total)

    dw_data.metrics M1

    where trim (m1.item) = 35 and m1.seq = 'c' and trim (m1.country) in (select distinct trim (country) wd_country <>of countries WHERE the 'USA')

    and m1.pvperiod = m.pvperiod - 100), 0), 4) * 100)

    0 OTHERWISE

    END) 'INTNL ONLY.

    of dw_data.metrics m, wd_country c

    where m.item = 13

    and trim (m.country) = trim (c.country)

    and m.pvperiod between SUBSTR(:P56_CYEAR,1,4) | '01' and: P56_CYEAR

    and m.pvperiod = c.bonus_period

    M.pvperiod group;

    Things to check:

    (1) HTML is NOT on the report of the attributes

    (2) attribute column is the column Standard report and NO display text

  • Shoot username in the Apex form text field once the user is connected.

    Is it possible for a username to autopopulate a text field in a form once the user is logged?

    Example:

    John Doe connects as jdoe. Once authenticated, he is taken to a form where a field has already slapped in user name.

    Is this possible? If so, examples?

    Thanks for any help,

    Joseph

    The field must have already affected with v ('APP_USER') or: APP_USER. Check the default value of the field

  • HOWTO disable a button within the APEX?

    This may seem like APEX for Dummies, but I currently have a problem with presenting a plain old HTML in the APEX in mode button disabled (not clickable). In HTML, this is no problem when you use 'disabled', but in the APEX, it does not work because the apex"disabled =" off "disabled".

    1. How can I display the button in a status of "disabled" in the APEX?

    2. How can I dynamically determine whether the button should be displayed as disabled or not?

    Any help is appreciated.

    Hello

    I did something very similar recently (and to be honest, the methodology is very close to what Riedelme suggested already):

    (1) create an item hidden in the area containing the keys to be turned off (make sure it's AFTER the buttons you want to disable)
    (2) in the message text of the element element field, enter Javascript to disable the button (s) - for example:

    (3) set the conditional display of this point on the result of a PL/SQL function returns BOOLEAN - in this case, it would be your authorization feature, or whatever. Or you can use regardless of the conditional formula meets your configuration.

    In this way, every time this hidden item is loaded i.e. authorization fails for example, the javascript code snippet will be loaded and executed, and your buttons will be disabled!

    Hope that makes sense!

    Chris

  • Conversion of forms at the request of the Apex

    Hello

    I have a problem with Oracle Application Express: when I try to convert an Oracle Apex Application Forms Application, I can't keep the same design!

    Would you please help me to solve my problem?

    If you google a little on this topic, you will find several articles and papers on the subject of forms of conversion of the Apex. The basic conclusion is: you don't have to bother using the converter. Simply create a new application from scratch. The differences between the shapes and the Apex are too big.

    Here is an overview:

    http://sagecomputing.com.au/papers_presentations/Forms_to_Apex_Conversion.PDF

  • Oracle form functions and procedures in the APEX, how?

    I'm working to recreate in the APEX, already existing read only forms in Oracle Forms. Report features interactive APEX among other things, in fact worth as well as to target a different audience than utilizies versions of Oracle Form. Versions of Oracle Forms use a lot of pre and post query triggers, PLSQL functions.

    In Oracle Forms that places, these functions can be found in the "Units of program" section of the form. A feature typical of this kind, based on a particular Mission ID route, collecting names of regular passengers, is shaped with a comma and a space after each of them, in a single string that is returned and displayed the list of passengers of a line.

    I have all of this written code so I can move most of the main request of the Oracle form in an interactive report. These functions and triggers called in the form of the "Units of program" section of the Oracle form rather than stored in the database schema in a package, where they would go inside the APEX? Can I create a 'shortcut' in the APEX and call it from the interactive report "Source Région"? I can create the PLSQL function at the level of the region of the interactive report or page level? Or, my best bet creates a package that is stored in the database, all these functions and/or proecedures I might need the original form of Oracle?

    Some advice would be greatly appreciated.

    RLBickham wrote:
    I don't think I've been pretty clear in the description of the specific thing I want to do, simply, it does not reach the level of forms of conversion of the APEX. It is basically a problem of PLSQL function.

    I have an interactive report which is currently 90 percent of what I want however, each line, which represents a Mission may have several feet. Each arm has two places or ICAO codes attached to it. Based on the number of Mission, I want to loop through the array of leg, collect all the codes of ICAO for this Mission, put them together in 1 variable separated by a coma and add this variable to display the columns in this interactive report as the last column.

    In Oracle Forms, I have a function registered in the database, which is called in the main query. Maybe I ask a question that does not need to be asked, but anyway my question is can I put this function currently in the database somewhere within the interactive report and somehow reference it via Http, or should I just stick with set of functions and procedures in the packages stored in the database and called the conventional way?

    You could switch the function to the database and call it from the report query, but it sounds as if it were superfluous. In the report query using any form of Re: 4. How can I convert rows to columns? is appropriate for your version of the (unspecified) database.

    -----

    When you have a problem, you will get an answer faster, more efficient including information as much information as possible from the outset. This should include:

  • Full version of APEX
  • Complete operating system DB, version, edition, host
  • Architecture of Web server (EPG, SST or APEX listener/host operating system)
  • Browser (s) and version (s) used
  • Theme
  • Model (s)

  • Region/section type (s) (particularly as to distinguish if a 'report' is a standard report, an interactive report, or indeed a 'update report' (i.e. a tabular presentation))

    With APEX, we also had the chance to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproduce things is the best way to solve most of the questions, particularly those relating to the layout and Visual formatting. If you expect a detailed response it is appropriate that you take on an important part of the effort by getting as much as possible with an example of the problem on apex.oracle.com before asking for help on specific issues, then we can see firsthand.

  • How to make the tree of the APEX in the form "Expand all" by default?

    Could someone enlighten me please how to do the tree of the APEX in the form 'Expand all', by default, please? I created a tree of the APEX and by default, it is in the form "any collapse." I use APEX 4.1.0.00.21

    Hello

    You can check the show the HTML source and check the onclick code written on this sign (Expand All), just copy this code from javascript onclick and put it on page javascript event.

    Thank you
    Abdou Bosamiya
    + 91 76000 23053
    http://jbosamiya.blogspot.com

  • Building simple HTML Page at the APEX

    Hello
    I am very new in APEX and this is the first project of mine to try to convince my organization as a good tool to use. I'm mainly a developer of forms. So, I'll build a Workbench for the Group profits in my company and my first page must be just a homepage with static text and a couple of links to launch my next pages. I added a blank home page at my request and then to EDIT the properties of the region on this same page, I type my static text and it is coming in the text mode free movement, I want to change the fonts, the sizes of some texts and give new lines etc..
    My question is that I have to write HTML code to achieve this in the part of the source text?

    Thank you
    Vishal

    Vishal,

    Yes, if you create an area HTML, you will have to manually put your HTML in there. APEX does not give you a WYSIWYG editor (as I know), but it should be easy for them to do - one of the options for creating an input field is a rich TEXT Editor. I don't know why they didn't implement which.

    My personal recommendation for HTML static is to change in your current Favorites out of the editor and then copy - paste the HTML code in the APEX.

    -David

  • Send a form to the Apex

    I currently have a simple database that allows users to enter information, and making it available.

    I put the printer friendly link to the home page of the form to allow them to print that ay.

    My current problem is that, once a user enters data via the form to the Apex, they need for this info even on an account used for monitor and disseminate this information by e-mail.

    Is there a simple way I can either A: put form data in an e-mail with a single click of mouse for users, or B: take tat the same data and export it to a pre-formatted RTF or Word doc with the appropriate form fields.

    I appreciate any help since I am not a DBA or developer, I learned that I'm going with Apex, but I can't find a way to do this (google 50 different variants of the question).

    If it works for you, you can mark the thread as closed and award points when it is required...

    In addition, if you need more help, or would like to have this type of development (ie the development work in the APEX) done in the future, let me know offline and we can talk more (I'm a contractor for hire right now)...

    Because it is a simple example... We could still edit it and add html formatting to it so that it looks cleaner (even in Outlook!) ...

    Thank you

    Tony Miller
    Webster, TX

  • How do I link a button from the APEX to the HTML file stored on the server app?

    I hope that it will be simple for a person

    We have some word documents very technical I really didn't want to replicate in the oracle reports

    So I saved them as html documents, and when I opened then they look very well in IE

    I placed in the folder where our reports are stored, but I can't figure out how to create the URL to be placed behind a button in the APEX?

    Of course the oracle reports url will not work as long as the pdf and servlet uses

    Thanks in advance

    Chris

    Assuming you are using Apache?

    You can place your Word documents in the same folder as your current Apex images directory (or a subdirectory it) and then reference them with a URL of the form http://yourserver/i/sample_word_file.doc. Alternatively, you can add a new Alias entry to your dads.conf file (located in your Apache/modplsql/conf directory) to expose the folder on your Web server that contains your Word via a URL like http://yourserver/word_docs/ files

    For example

    /Word_docs/ alias "c:\my_docs\technical_word_docs/".

    Andy

  • The display of an image defined in an external PLSQL procedure that renders the code HTML and called in a region of the APEX

    I have an external PLSQL procedure that dynamically creates a report out of the HTML tags that I then called an anonymous block APEX PLSQL.  I'm making bad images with the following code:
    in the external procedure.  How do you get around that? (NOTE: the procedure is too big to store directly in the APEX)

    ....

    ' < style td = "width: auto;" "padding: 0px 5px 0px ' > '. spc_rec. SPC_VIABILITY_STATUS. "< table > ' |

    "< style td =" width: auto; " text-align: left; "padding: 0px 5px 0px" > ' | spc_rec. SPC_VIABILITY_REASON. "< table > ' |

    TD > < img src = "" #IMAGE_PREFIX #check2.gif "alt =" "/ > < table > '"

    ....

    Thanks in advance

    PaulP

    Hi Paul,.

    You can use the global variable of the APEX package below to get the image prefix in pl/sql. Of course, your procedure should be in APEX, schema analysis application.

    APEX_APPLICATION. G_IMAGE_PREFIX

    Kind regards

    Hari

  • Calculations in APEX 4.2 on the interactive report and the update form

    Hello

    I know that people have asked similar questions, but I was not able to do this work. I'm doing some fairly simple math (addition, multiplication) in an application. I have 2 fields (VALUE_A, VALUE_B). I can get the addition and multiplication work in the interactive report, but I also need that it works correctly in the form of update. I also need update form to work dynamically so that if the values are changed, the correction calculated response is shown immediately on the update form and then reflected in the interactive report. I tried the dynamic action, with and without javascript without result. Any help would be appreciated.

    Request Express 4.2.6.00.03

    model application:

    https://Apex.Oracle.com/pls/Apex/f?p=82162:

    username: guest

    password: Peanut123

    Thank you

    Rachel

    ADD dynamic action

    After refresh of region

    Set value

    ELEMENT the VALUE to change

    check the fire on the load

    To source, use expression JavaScript

    If ($v ("P2_TEST_1")! = null & $v ("P2_TEST_2")! = null)

    {

    parseInt ($v ("P2_TEST_1")) + parseInt ($v ("P2_TEST_2"));

    }

    ElseIf ($v ("P2_TEST_1")! = null & $v ("P2_TEST_2") == null)

    {

    parseInt ($v ("P2_TEST_1"));

    }

    ElseIf ($v ("P2_TEST_1") == null & $v ("P2_TEST_2")! = null)

    {

    parseInt ($v ("P2_TEST_2"));

    }

    on the other

    { 0; }

    That add another dynamic action on change POINT P2_TEST_1 and set even with the same expression JavaScrit action. but NOT fire on the load
    Do the same for the ARTICLE P2_TEST_2

    And the same for A times B but change + to *.

    Here, I did samples for you with this code.

    https://apex.Oracle.com/pls/apex/f?p=83519 demo/demo

  • A form of the APEX, the elements of the numbers go right margin.  If you change these elements to "view only", the margin moves to the left.  How can I set numbers to display with a right margin?

    A form of the APEX, the elements of the numbers go right margin.  If you change these elements to "view only", the margin moves to the left.  How can I set numbers to display with a right margin?

    You must use the attribute of the element of the element. Change the Horizontal/Vertical alignment to right.

    https://www.dropbox.com/s/gxn51e0steg482a/element.PNG

  • view the HTML source of a page of the apex

    Hello world

    I'm looking at how I can view the HTML source of a page of the apex and to be able to change it. That's why reading the html source code in the browser when the application runs don't suits me.

    Someone at - it an idea how it can it be possible?

    Best regards

    Hello

    Loga is correct on the use of firebug with firefox. However, if you use IE (version 8 or later), press f12 to switch to developer mode. For Chorme, click the right button of the mouse, you'll get a context menu, you can see "Inspect element", which will have the HTML for this object. Yes as Loga said, if you can simulate changes by using these three, you can bring the apex thro generator only changes required, applying changes to CSS, script, models etc. Hope it will be useful.

    Kind regards

    Natarajan

Maybe you are looking for