APEX_ITEM select_list is not working

Hi,
I am using the below query in my sql select statement .
select
htmldb_item.HIDDEN(1,ID) HIDDEN,
APEX_ITEM.SELECT_LIST(49,DECODE("VERSION",NULL,'-Select-',"VERSION"),decode(get_lov_values(PROD_LEVEL_1),null,'not available',get_lov_values(PROD_LEVEL_1))) "VERSION1"
from WIKI_PROD_CGBU_CUST
When i run the above query i get the output in the respective column as given below
hidden:
<input type="hidden" name="f01" value="7522" />
version1:
<select name="f49" ><option value="7.0" >7.0</option><option value="7.2" >7.2</option><option value="7.2.1" >7.2.1</option><option value="7.3" >7.3</option><option value="7.3.1" selected="selected">7.3.1</option><option value="7.4" >7.4</option><option value="Other" >Other</option></select>
PLease can anyone help me with this.
Thanks,
Vikas

Hi,
What does the function get_lov_values return?
The expected output for the APEX_ITEM.SELECT_LIST is a quoted comma separated list.
So, if you havn't already done it, try changing your return statement to look like this
-- here x is the comma separated list you constructed in the function
--change the line
return x;
--to
return dbms_assert.enquote(x);Regards,

Similar Messages

  • Apex_Item References don not work in operative application

    Good evening fellow Apex-Developers!
    I just started to import pages from a developer version into the operative version of an application. Everything seems to work except of the pages that contain reports with apex_item references in the queries. The pages are displayed but the reports don't show. In turn I receive the following error:
    ORA-20001: Query must begin with SELECT or WITH
    Of course the statement begins with Select:
    SELECT
    CASE WHEN z.disable_status = 1 then apex_item.hidden(5, cnt_matrix_custom_eval, 'disabled=true') else apex_item.hidden(5, cnt_matrix_custom_eval) end as cnt_matrix_custom_eval, z.lng_baumart, CASE WHEN z.disable_status = 1 then apex_item.select_list_from_lov(6, z.ba_kat, 'BA_KAT', 'disabled= true', 'class="combobox"') else apex_item.select_list_from_lov(6, z.ba_kat, 'BA_KAT','%',
    '%', null,null, null, 'class="combobox"') end as ba_kat, z.BA_GRUPPE, case when z.disable_status = 1 then apex_item.text(4, z.Bemerkung, 70, 256, 'disabled=true') else apex_item.text(4, z.Bemerkung, 70, 256) end as Bemerkung,
    z.LNG_GEBIET, z.LRT_CLASS, decode(z.ba_kat,'H',1,'N',2,'P',3,'S',4,'B',5,'hG',6,'nG',7) as CS, z.disable_status from
    vt_tbl_matrix_custom_eval z
    where lng_gebiet= :p2008_str_gebiet and lrt_class = :p2008_str_lrt and int_be = :p2008_be and int_wg = :p2008_wg and eval_type = 1
    order by csDo you have an idea what could be wrong with my operative application?
    Any help is greatly appreciated!
    Regards,
    Sebastian

    I found the bug!
    I forgot to copy or create an LOV that is being addressed in the sql_statement with "apex_item.select_list_from_lov" to Shared Components!
    As soon as created a list BA_KAT the query worked. Ouch...
    But it might help others too I guess!

  • Apex_item.hidden does not appear to be working correctly

    Hi,
    I am trying to build a manual MRU form based on the How to tutorial by Christina Cho.
    The differences are that I am using Apex 2.2 and thus apex_item functions and that I am putting the insertion row first before the existing rows (I want most recent records first).
    To simplify testing I removed the select for the existing records (there are none so far). I have the following select:
    select x.problem_id,
    x.person_id,
    x.probcode,
    x.resolved,
    x.diag_date,
    x.resolved_date,
    x.record_status
    from (
    select apex_item.hidden(1,null) problem_id,
    apex_item.hidden(2,:p235_person_id) person_id,
    apex_item.popupkey_from_query(3,null,
    'select probcode||'' - ''||description d,
    probcode from problist',75,75) probcode,
    apex_item.select_list(5, '1','-;1, Yes;2') resolved,
    apex_item.date_popup(6, null, null, :pick_date_format_mask, null, 12) diag_date,
    apex_item.date_popup(7, null, null, :pick_date_format_mask, null, 12) resolved_date,
    apex_item.hidden(8, 'ACT') record_status,
    apex_item.md5_checksum(null, null, null, null, null, null) cks
    from dual
    ) x
    With the apex_item.hidden, the counts apex_application.g_f01, apex_application.g_f02, and apex_application.g_f08 are equal to zero(0) when I submit the data entered. If I change the hidden functions to text functions then the counts are equal to one(1).
    The bad counts appear to be screwing up the collection creation procedure too; I expect it has to do with having a null for a loop end point..
    I expect that I can create a work-around with the text fields and not showing them in the report, but does the hidden function have a real bug?
    Also, for the collection creation routine, what can be done when there is nothing in the arrays? What is the value of the count?
    thanks,
    Peter

    Unchecking the Show checkbox in Report Attributes means you are asking the Apex reporting engine to not render that column on the report.
    If the column in question is a apex_item.hidden() call and it is shown (Show checkbox checked), it will display a "empty" column on the report, but the values will be posted to the g_fNN array you specify.
    I agree it is a little non-intuitive, that is why I always "piggyback" the apex_item.hidden() API call with a column that is going to be rendered on the report.
    Something like
    select
    apex_item.hidden(...)||apex_item.select_list...()
    ...

  • Button based on data is not working in form/ report / region

    create or replace procedure "BUT2"
    is
    begin
    declare
    cursor c1 is select plot_id,plot_status from re_plot;
    tno number;
    v1 varchar2(500);
    c2 c1%rowtype;
    begin
    open c1;
    loop
    tno := nvl(tno,0) + 1;
    fetch c1 into c2;
    exit when c1%notfound;
    if c2.plot_status='BLOCKED' then
    v1 := v1 || ' ' ||'<input inline type =submit style="color:BLUE;background-color:RED" value='||c2.plot_id||'>';
    else
    v1 := v1 || ' ' ||'<input inline type =submit style="color:ORANGE;background-color:GREEN" value='||c2.plot_id||'>';
    end if;
    if mod(tno, 4)= 0 then
    --v1 := v1 || '<br/>' || ' ';
    htp.p(v1);
    v1 := null;
    end if;
    end loop;
    close c1;
    htp.p(v1);
    end;
    end;this above procedure works fine in SQL Command browser. I am unable to make it as page form / report.
    My requirement is i want to bring this images in form / report. Based on click button, the value need to be parsed to other page?
    how to do it?
    yours
    andi_raj

    is not working Insufficient information. In what way is it "not working"? The page doesn't render as required? There's an error message? The browser crashes? The server room has been trampled into dust by a herd of buffalo?
    >
    I am unable to make it as page form / report.
    v1 := v1 || ' ' ||'<input inline type =submit style="color:BLUE;background-color:RED" value='||c2.plot_id||'>';
    ...It is not possible to generate form elements in an APEX page in this way. The [APEX_ITEM API|http://download.oracle.com/docs/cd/E14373_01/apirefs.32/e13369/apex_item.htm#CACEEEJE] is the only way to create APEX items in PL/SQL. However it contains no procedures to generate button items, so an alternative design is required in this case, e.g. a report with links.
    (Also what is the intention of "inline" in the above code? [There is no *inline* attribute|http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#h-17.4].)

  • Update process does not work on Tabular Form

    Hello,
    I have 2 tabular forms on one page, which are using manual update processes.
    First form is created using wizard, and therefore works perfectly.
    The update process is as follows:
    DECLARE
      lc_string VARCHAR2(4000);
    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_f01.COUNT
      LOOP
         lc_string := lc_string|| '[' ||APEX_APPLICATION.G_f*03*(i) || '|' || APEX_APPLICATION.G_f*04*(i) || ']';
      END LOOP;
      --Database processing using the concatenated string here
    END;Second form is created manually, using the following code:
    SELECT apex_item.checkbox (30,
                               '#ROWNUM#',
                               'onclick="highlight_row(this,' || '#ROWNUM#'|| ')"',
                               NULL,
                               'f30_' || '#ROWNUM#'
                              ) delete_checkbox,
           CATALOG_ID,
              apex_item.hidden (31, CATALOG_ID)
           || apex_item.text (32,
                              LANG,
                              80,
                              100,
                              'style="width:100px"',
                              'f32_' || '#ROWNUM#'
           || apex_item.hidden (33, wwv_flow_item.md5 (LANG, DESCRIPTION)) LANG,
           apex_item.text (34,
                           DESCRIPTION,
                           80,
                           100,
                           'style="width:255px"',
                           'f34_' || '#ROWNUM#'
                          ) DESCRIPTION
      FROM V_CATALOGS
    UNION ALL
    SELECT     apex_item.checkbox
                              (30,
                               TO_NUMBER(9900 + LEVEL),
                               'onclick="highlight_row(this,' || '#ROWNUM#' || ')"',
                               NULL,
                               'f30_' || TO_NUMBER (9900 + LEVEL)
                              ) delete_checkbox,
               NULL,
                  apex_item.hidden (31, NULL)
               || apex_item.text (32,
                                  NULL,
                                  80,
                                  100,
                                  'style="width:100px"',
                                  'f32_' || TO_NUMBER (9900 + LEVEL)
               || apex_item.hidden (33, NULL) LANG,
               apex_item.text
                                               (34,
                                                NULL,
                                                80,
                                                100,
                                                'style="width:255px" '  ,
                                                'f34_'
                                                || TO_NUMBER (9900 + LEVEL)
                                               ) DESCRIPTION
          FROM DUAL
         WHERE :P18_TEMP = 'ADD_ROWS1'
    CONNECT BY LEVEL <= 1However, the update process does not work on this form.
    I created it using the first one as an example, but with the id's of the second form:
    DECLARE
      lc_string VARCHAR2(4000);
    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_f*30*.COUNT
      LOOP
         lc_string := lc_string|| '[' ||APEX_APPLICATION.G_f*32*(i) || '|' || APEX_APPLICATION.G_f*34*(i) || ']';
      END LOOP;
      --Database processing using the concatenated string here
    END;Also, both forms are opening in a modal pop-up dialog window.
    I use a Dialog Region plug-in for that.
    Please advise, what is causing a problem with update?

    Sloger,
    if this is your tabular form
    SELECT apex_item.checkbox (30,
    ...and this is your update statement
    FOR i IN 1..APEX_APPLICATION.G_f*30*.COUNT
    ...Then you will only ever update records that have been checked. Unchecked checkboxes are not passed back in the global array. You need to have a hidden column with the ID's for the record and loop through that when you are updating/inserting. That is why the built in tabular form has a MRU and a MRD. the MRU loops through the hidden ID column. The MRD loops through the checkbox.
    Thanks,
    Tyson Jouglet

  • Role based data visibility is not working in Round manager

    I am looking for role based data visibility in Syclo round manager application where technician will see the data which is assigned to his name only (not all the data)  I have created one custom role in SAP system and it's working fine .It's showing the below message :
    Now I want to implement the same in syclo round manager .So I went to the SAP configuration panel and set the same user role on the security setting in class handler .Z_SYCLO_RM_ROLE is the custom role which I mentioned earlier .I tried with different option in this tab but it's not working .
    Please let me know if I missed something to mention or is there any other process I need to follow .
    Tags edited by: Michael Appleby

    is not working Insufficient information. In what way is it "not working"? The page doesn't render as required? There's an error message? The browser crashes? The server room has been trampled into dust by a herd of buffalo?
    >
    I am unable to make it as page form / report.
    v1 := v1 || ' ' ||'<input inline type =submit style="color:BLUE;background-color:RED" value='||c2.plot_id||'>';
    ...It is not possible to generate form elements in an APEX page in this way. The [APEX_ITEM API|http://download.oracle.com/docs/cd/E14373_01/apirefs.32/e13369/apex_item.htm#CACEEEJE] is the only way to create APEX items in PL/SQL. However it contains no procedures to generate button items, so an alternative design is required in this case, e.g. a report with links.
    (Also what is the intention of "inline" in the above code? [There is no *inline* attribute|http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#h-17.4].)

  • Layout Options - Page Order Does Not Work Correctly

    I have a Photosmart C7280 All-in-One printer.  The Layout Option - Page Order does not work as expected.  The User Guide (page 95) states that the default for a multiple page document is to print first page first.  The manual states that to print last page first requires one to change the Page Order to "Back to Front".  For my Excel, Word, Internet Explorer and PDF pages, I need to leave the Page Order as "Front to Back" if I want the last page to print first.  This makes no sense.  In addition, I can't get my Quicken reports to print last page first no matter what I try.  Does anyone no why the Page Order does not work as expected for Excel, Word, IE and PDF, and does not work at all for Quicken?

    Keisha,
    If you uncheck the "show" option, then the corresponding HTML for that item is not rendered on the page. Thus, when you try to inspect that item via APEX_APPLICATION.G_F02, it simply doesn't exist.
    One trick that I use when I want to have hidden items on the page, but not make them take up any space, is to concatenate them to items that will be visible.
    Using your query as an example, I would re-write it like this:
    SELECT APEX_ITEM.CHECKBOX(1,ROWNUM,'CHECKED')ATTENDED,
    APEX_ITEM.HIDDEN(2,C.PARTY_ID)
      || APEX_ITEM.HIDDEN(3,C.PARTY_TYPE_CODE)
      || C.PARTY_TYPE_CODE PARTY_TYPE_CODE,
    S.PERSON_ID,
    S.PERSON_FIRST_NAME AS NAME,
    C.PARTY_CASE_ID
    FROM CASE.PARTY C
    INNER JOIN DN.PERSON S
    ON C.PARTY_ID = S.PERSON_ID
    WHERE C.PARTY_CASE_ID = :P18_CDBCASE_ID
    AND C.PARTY_SEQ_NO = :P18_SEQThus, the second APEX report column will contain the HTML for the hidden items PARTY_ID & PARTY_TYPE_CODE, as well as the value for PARTY_TYPE_CODE. When you submit the page, you should not encounter any issues.
    Thanks,
    - Scott -
    http://sumnertechnologies.com/
    http://spendolini.blogspot.com/

  • Updating a table through a manually created tabular form does not work.

    Hi Friends,
    I don't know why the "On submit - After computations and validations" process does not update the referenced table. May I miss something. Here is my source :
    select
    apex_item.hidden(1,eqp_id) id,
    apex_item.hidden(2,tcs_tcs_id) tcs,
    apex_item.text(3,eqp_equip_name,50) name,
    apex_item.text(4,eqp_equip_ident,50) ident,
    apex_item.text(5,eqp_equip_type,15) type
    from equip_physical
    where tcs_tcs_id = :P1_TCS_ID
    and here is the process source
    FORALL i IN 1..apex_application.g_f01.count
    UPDATE equip_physical
    SET eqp_equip_name=apex_application.g_f03(i),
    eqp_equip_ident=apex_application.g_f04(i),
    eqp_equip_type=apex_application.g_f05(i)
    WHERE eqp_id=apex_application.g_f01(i);
    No error message is displayed and my success message associated to the process is displayed. But the modified text field value is erased and the database table is not updated.

    I'd call it a bug/missing feature.
    It appears that within a Basic report, sorting on a column created using APEX_ITEM.DATE_POPUP2() does not sort by date.
    I'd file this with Oracle Support and see what they say.
    Include a link to this thread and your workspace login information.
    I got something to work by: (probably not what you want.)
    using the C004 column directly. (I just added it to the SQL code)
    setting the column's attribute "Display As" to "Date Picker"
    setting the column's attribute "Number /Date Format" to DD-MM-YYYY
    I suspect: since you don't start with p_idx => 1, this column becomes "1" ==> g_f01
    MK

  • Sorting on date (date_popup2) in manual tabular form does not work

    Hi All,
    I created a manual tabular form (based on a collection) with 1 date_popup2 field in it. This field is defined in the query as follows:
    ,      apex_item.date_popup2( p_idx                   => 18
                                , p_value                 => c004
                                , p_date_format           => 'dd-mm-yyyy'
                                , p_item_id               => 'f18_' || lpad (rownum, 4, '0')
                                , p_item_label            => 'Start date'
                                ) as tf_br_start_date
    In the report attributes I marked this column to be sortable.
    However, in the page the sorting is not working. It looks like it's always sorted in the order  of the seq_id.
    Can anyone tell me how to solve this?
    Regards,
    René

    I'd call it a bug/missing feature.
    It appears that within a Basic report, sorting on a column created using APEX_ITEM.DATE_POPUP2() does not sort by date.
    I'd file this with Oracle Support and see what they say.
    Include a link to this thread and your workspace login information.
    I got something to work by: (probably not what you want.)
    using the C004 column directly. (I just added it to the SQL code)
    setting the column's attribute "Display As" to "Date Picker"
    setting the column's attribute "Number /Date Format" to DD-MM-YYYY
    I suspect: since you don't start with p_idx => 1, this column becomes "1" ==> g_f01
    MK

  • Tabular Form - new row at top not working

    I'm trying to add a new row to the top of a tabular form (not manual) vs the bottom using Denes example - http://apex.oracle.com/pls/otn/f?p=31517:215 but it's not working. I absolutely need the records to sort on the date and time, but when I add a hidden column and sort it in descending order, then sort the date and time both in descending order, it doesn't sort correctly. I tried using the primary key field of the table as the hidden column, sorting nulls first, but the new record opens at the bottom (If I have "sorting nulls first" selected and at the time a new row is added the primary key field is null, why doesn't the new row open at the top?). I added a new field (date field with timestamp) to the query, then deselected "show" in the column attributes...that didn't work. I then selected "show", and changed the tabular form element display as to "Hidden", but then I got an error when I clicked "Add New", and I also added a column to my query via apex_item.hidden but no luck there either. What's the best way to go about this, but still maintain the date and time sort?
    Thank you,
    Tammy

    We did that. It didn't resolve it...
    Also, I compared the images directory from the complete apex 4.1.1. installation and compared it to patch 13331096 (latest 4.1.1 patch). They are identical.
    Any other ideas I can try out?

  • Date Picker on Manual Tabular form not working on 4.1 upgrade from 4.0

    Hi
    my application is upgrade from Apex 4.0 to 4.1 .
    Oracle DB is 11g.
    I have a manual tabular form with a date field:- apex_item.text(12,null,15,15,'class="datepicker3"') as end_date, After upgrade to 4.1 it's not working .
    I changed the code to:- apex_item.date_popup2(12,null,15,15) as end_date, still not working .
    I have to use apex_item.date_popup2 .
    Thanks in advance !!!
    -Amu

    Hi Diana,
    Is this you are trying to achieve:
    piepdate = startdate + typeduration
    The id attribute of the items in normal or APEX_ITEM based tabular form are of the type:
    fxx_xxxx
    For example: f10_0001, f10_0002, ..., f10_0010.
    So, correct the vRow variable accordingly
    >
    // get row
    var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
    >
    Hope it helps!
    Regards,
    Kiran

  • Not work tablet UI on Prestigio 5080 PRO tablet

    I read that browser.ui.layout.tablet = "1" can fix this problem. But it not works. I can work only in pnone interface that is not good for my 8'' tablet.

    Would it be possible for you to share the problematic pdf and OS information  with us at [email protected] so that we may investigate?
    Thanks,
    Adobe Reader Team

  • Why self-defined access sequences of free goods can not work?

    Hi gurus,
    I have maintained access sequences of free goods self-defined.but when i creat the SO it does not work!
    when i used the standard access sequences ,it is OK .
    Can anybody tell me why?
    thanks in advance

    Dear Sandy,
    Go to V/N1 transaction select your self defined access sequence then go in to the accesses and fields and check all fields are activated.
    Make sure that these fields are flowing in your sales order.
    I hope this will help you,
    Regards,
    Murali.

  • Adobe bridge raw not working with windows vista in photoshop cc, why?

    adobe bridge raw not working in photoshop cc, is there a fix?

    Your sure your using photoshop cc on windows vista?
    I was under the impression that photoshop cc would not even install on windows vista.
    What version of camera raw do you have?
    In photoshop under Help>About Plugin does it list Camera Raw and if so which version is it?
    (click on the words Camera Raw to see the version)
    Camera raw doesn't work if it's a camera raw file or some other file type such as jpeg or tif?
    What camera are the camera raw files from?
    Officially camera raw 8.3 is the latest version of camera raw that will work on windows vista.

  • Adobe Bridge CS5 in windows 7 not working?

    Adobe Bridge CS5 in windows 7 not working. I was using bridge perfectly for last 2 years. It stops working since 3 days. I tried to install updates. Showing some error to install.
    Tried to install creative cloud..again some error. Error code : 82
    Could you please advice how I can fix my adobe bridge.

    https://www.youtube.com/watch?v=xDYpTOoV81Q&feature=youtu.be
    please check this video I uploaded..this is what happens when I click adobe bridge.. just blinks and go off. bridge not working on task manager

Maybe you are looking for