"Headers" or disabled items in select list.

This used to work...
SELECT d, r
FROM (SELECT tr.description d, TO_CHAR (tr.ID) r,
tgr.description grouporder, tr.description toolorder
FROM hr.bi_tools_reg tr JOIN hr.bi_tools_group_reg tgr
ON tr.GROUP_ID = tgr.ID
WHERE tr.ID NOT IN (
SELECT brc.comp_id
FROM hr.bi_register_competence brc
WHERE brc.user_name = :app_user
AND brc.comp_type_id = 2
AND brc.comp_id IS NOT NULL)
UNION
SELECT '   ---' || tgr.description || '---' d, ID || '" disabled="disabled' r,
tgr.description grouporder, 'a' toolorder
FROM hr.bi_tools_group_reg tgr)
ORDER BY grouporder, toolorder
Creating a list of greyed-out ---Description--- in the second select and the selectable items in the first select and then merging them into one list in the proper order. Resulting in a list with headers that are non-selectable and a number of selectable items below each of them...
Suddenly It doesn't work anymore (with ie 8.0.7600 and APEX 4 as opposed to working in 8.0.6001 and APEX 3.2.1)
the workin header rows look like this in the html source
<option value="3" disabled="disabled">   ---Microsoft---</option>
and in the newer ie they look like this:
<option value="3&quot; disabled=&quot;disabled">&amp;nbsp;&amp;nbsp;&amp;nbsp;---Microsoft---</option>
Any ideas on how to get around this?

This is due to select list <tt>option</tt>s now being HTML-escaped in APEX 4.0. See +{thread:id=2126522}+
Use the -capable select list plug-in<tt>optgroup</tt>-capable select list plug-in instead.
(When posting code, please \...\wrap it in <tt>\...\</tt> tags.)

Similar Messages

  • How to create a report  based on selected item from Select list?

    Hi,
    I have created a tables_LOV based on:
    select table_name d, table_name r from user_tab_cols
    where column_name like '%_type%'
    Then I created a page item ListOfTables,  Display as select list and pointing to tables_LOV.
    I run the page, and i can select the table i want from the drop down list.
    How to create a report  based on the selected item? (ex: select * from selected_table)
    many thanks in advance
    Salah

    Hi Salah,
    Allright, have a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report
    I think that simulates what you're trying to accomplish. I've set up the simplest method I could think of.
    The report is based on an apex collection. If you are not familiar with that, you should study the documentation: APEX_COLLECTION
    To recreate my example you should:
    1) create an (interactive) report on your collection
    SELECT *
       FROM APEX_collections
    WHERE collection_name = 'MY_COLLECTION'
    2) create a page_item select list for the tables you want to display (in my case this is called "P38_TABLES" )
    3) create a dynamic action that triggers on change of your select list page_item. The dynamic action must be a PL/SQL procedure perfoming the following code:
    declare
      l_query varchar2(4000);
    begin
      l_query := 'select * from '||:P38_TABLES;
      if apex_collection.collection_exists
            ( p_collection_name => 'MY_COLLECTION' )
      then
        apex_collection.delete_collection
          ( p_collection_name => 'MY_COLLECTION' );
      end if;
      apex_collection.create_collection_from_query
        ( p_collection_name => 'MY_COLLECTION'
        , p_query           => l_query
    end;
    Make sure you add your page_item to the "Page Items to Submit" section.
    4) Add an extra true action that does a refresh of the report region.
    Here are two pictures describing the da:
    http://www.vincentdeelen.com/images/otn/OTN_COLLECTION_REPORT_DA1.png
    http://www.vincentdeelen.com/images/otn/OTN_COLLECTION_REPORT_DA2.png
    Good luck and regards,
    Vincent
    http://vincentdeelen.blogspot.com

  • Keeping cursor in same item where Select List with Submit is ued

    Hi,
    I am using Select List with Submit and when I do this and redirect to same page, cursor focus goes to first item in region or page.
    How to keep the cursor in same item?
    Pl Help as I am not very sure to it in Java Script and i am having such items more than 50 per page.

    APEXDeveloper,
    Try this:
    Suppose ur select list with submit is "P1_SELECT" and the item to set focus on is "P1_MAIN".
    In ur page HTML Footer, use something like:
    <script language="javascript">
    if($x('P1_SELECT').value!="")   ---> when a value is selected in the select list (assuming that the select list can also display a null value)
    {$x('P1_MAIN').focus();}
    </script>Hope this at least gets u started.

  • How To Dynamically Set Selected Item in SELECT List in DW Object

    Hi!
    I hope I can explain this situation halfway decently...
    I am creating a DW Object that captures specific metadata. In
    this case, in the form I have a HTML <SELECT> list of
    languages. When the language metadata attribute is first captured
    in the form, the application adds the metadata
    <meta name=language content="EN">
    to the DW document correctly.
    Now suppose the user wants to update their metadata.in order
    to change the language attribute. I would like the metadata form
    when it redisplays to have "EN" selected in the language attribute,
    so that the user knows what the current value of the language
    attribute is. If the user changes the language attribute to,say,
    Japanese, the next time the metadata form displays, I would like
    have "JP" selected in the form, again so the user knows what the
    current value of the attribute is.
    I looked at several of the well-known metadata extensions for
    DW, but none of them exhibit the behavior I am looking for (usually
    they have English as the default in the form)
    This is probably easy, but I am just not seeing it. Thanks
    for any help!
    Kat---

    Hi Envision3D
    Thank you for your reply. Unfortunately, none of this
    information is stored in a database. It simply gets written as
    <meta> tags in an HTML file. When the object is used again,
    it reads the HTML file and pre-populates the form for the benefit
    of the user. The application pre-populates the text-type inputs
    correctly. It does not pre-populate the <select> inputs
    correctly. It just leaves them blank. I was hoping to be able to
    pre-populate the <select> form element with the selection
    that is currently found in the <meta> tag.
    <meta name="program" content="HR"> <==== meta tag
    found in HTML file
    Program: +-----------+
    | HR | <==== pre-populated <select> form field
    +-----------+
    Thanks again!
    Kat---

  • How to acquire display value of selected item on select list? Or...

    I have a select list generated from a SQL query that I need to get the display value from.
    Ideally, the display value and the submitted value of the select list would have been the same, but I can't seem to get APEX to allow populating a select list's display value and submitted value fields with the same database column.
    If you have any idea how to do either of the above, I'd love to hear from you here!
    Cheers,
    Ben

    you forgot the extra quotes I guess:
    declare
    l_sql VARCHAR2(4000);
    begin
    l_sql := 'SELECT product_name,project_name,information_access_system,dataset_name FROM v_dms_product WHERE product_name = ''' || :P24_CHOOSEPRODUCT || ''' GROUP BY product_name,project_name,information_access_system,dataset_name';
    return l_sql;
    end;

  • Yone Tooltip for each item of select-list

    Could an

    To set the tooltip for each value selected from Drop Down list - means value is selected in drop down list and the mouse over on the field (i thought this way, if its not correct ignore the same.
    For the above case check the selected drop down value on change event and set the desired text as tooltip.
    For example
    if(xfa.event.newText == "One")
    this.assist.toolTip.value = "You Selected Choice " +xfa.event.newText;
    Thanks,
    Raghu.

  • Item(select list) with LOV and Report with link = changed value item

    Hello,
    On one page I have:
    - Item 'P_name' (select list) with LOV to select name of a person;
    - Items 'factory' and Report 'factory'(standard created with 'Form with Report' on the same page).
    Situation:
    All works fine. I selected first a LOV Item 'P_name' (say 'Jane'). But....
    Only when I select a record (to change the values) from the report 'factory' then LOV Item 'P_name' become empty. Report used a link to the same page to fill the report items 'factory' and make also the LOV item empty.
    Question:
    I have made a process that write the name 'Jane' to table.
    I see two possibilities:
    - LOV Item value => fill the LOV item with 'Jane' from the table before region. Is this possible?
    - Report => What is the buttonname of reportlink? I can use this name in the processes.
    Thanks Walter!

    1) what i meant was for you to test this ridiculously huge LOV outside of htmldb, but it occurred to me last night that you could, in fact, be hitting a limit of ours. after some poking around, i have confirmed that. select list items in htmldb are currently limited to 10,000 rows. this was initially done for performance reasons, but they're now opening up the restriction. if you really need to work with that many rows where the user is allowed to pick from a set of values, consider using a popup item type instead. it'd help your app performance as well (in my test cases, it stank to have to wait for my 10k select list rows to come down to my browser).
    2) sorry to not have been more clear about this, but when you set your item's "Source Type" back to "Database Column", you'd have to specify that column in the "Source or value expression" field. also, you can't put a sql query into that "Post Calculation Computation" field. as i said before, "you can take a look at the attribute-level help for that field to see implementation examples."
    3) stick with "Always..." for now if you're using our auto-dml process(es)
    regards,
    raj

  • Checked some items of multiple-selection list box when form loaded in infopath

    Hi
    I customize sharepoint list with infopath. I have multiple-selection list box and want to checked some items of that automatically when form loaded. how can do this?
    Thanks.

    Hi,
    According to your description, my understanding is that you want to pre-select some items in the Multiple-Selection List Box.
    I recommend to follow the steps below to achieve this goal:
    Click Default Values under Data tab in InfoPath, expand the dataFields and navigate to the Multiple-Selection List Box field.
    Set the Default Value of the Multiple-Selection List Box field.
    Right click the field under the Multiple-Selection List Box group, then select Add another Value Below and set the Default Value for this field.
    Repeat step3 based on the number of the items that you want to be pre-selected.
    More information are provided in the link below:
    http://www.bizsupportonline.net/infopath2010/pre-select-items-multiple-selection-list-box-infopath-2010.htm
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Refresh PL/SQL Report Region (not Page) using Select List value

    Hi,
    I've got a report region based on a 'PL/SQL function body returning a SQL query'which gets generated on selecting a value from a Select list item, The Select List action is 'Redirect and Set value' but this causes the whole page to refresh rather than just the report region. I've tried to refresh the report only using a dynamic action on the Select List item (Action now reset to  'None') but now the report is not appearing on choosing from the List. Can anyone suggest a solution that will allow me to refresh this report without refreshing the page? I am using APEX 4.2.2 and the report syntax is as follows:
    DECLARE
      v_statement VARCHAR2(500);
    BEGIN
      SELECT query_text
        INTO v_statement
       FROM sql_queries
       WHERE query_id = :P2_QUERY ;
       RETURN v_statement ;
    END ;
    where P2_QUERY is Select List Item,
    regards,
    Kevin.

    KevinFitz wrote:
    The report region being displayed is conditional on P2_QUERY item being NOT NULL. I assume the region not appearing is because the Action for the Select List Item is set to None and so P2_QUERY is always NULL.
    No, the region is not appearing because it is conditional on P2_QUERY being NOT NULL. This means that the report region never exists on the page shown in the browser, so it can't be dynamically refreshed. (Dynamic refresh doesn't evaluate region conditions, and it only re-renders the report content, not the entire region.)
    Remove the condition on the report region, check the refresh is working, then reconsider exactly what the requirements here are. If you want the region to appear only when P2_QUERY has a value, and you want it to be refreshed without submitting and re-rendering the page, then the region needs to be hidden rather than conditionally rendered, and shown via a dynamic action when P2_QUERY gets a value.
    I tried adding an additional Set Value True Action for the DA event but got an error as listed above,
    All irrelevant if Page Items to Submit on the region is used properly.

  • Unable to create LOV (Select List)

    As per the dev. guide, I am trying to create a Parameterized Report. When I tried the example given in the guide it works for the sample application. But when I try for my application (based on HR data) it does not work.
    The steps I am following are same as dev. guide.
    a) Create a New Page
    b) Create the Query Region
    Here I am giving the following query :
    Select e.first_name,e.last_name,e.salary,e.job_id,d.department_name
    from employees e, departments d
    where e.department_id = d.department_id
    and ( d.department_name = :P700_SHOW or :P700_SHOW = 'ALL' )
    c) Adding an Item
    But here when I select an Item as "Select List" and when I move to the page "Identify List of Values", here for the field Named LOV, it does not populate with any value, like it does for the sample application.
    Also if i try giving the above query in the text box (List of Values query), it does not allow me to move ahead and throws follo. error:
    " LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query."
    Can some help me on this? And also I am not able to understand, that for this exercise (parameterized report) why they have taken only sample application and not helped the dev. to create its own.

    Hi,
    You need to set up a "Named LOV" - go to Shared Components=>Lists of Values to create a LOV for the departments. This should be a "Dynamic" LOV, using the following SQL:
    select department_name d, department_id r
    from departments
    order by 1
    Give it a name like "DEPTS_LOV" and this will then be available for your select list.
    Regards
    Andy

  • How to go to a certain page based on user's selection from a select list

    On the very first page of my application, I have one item - a select list. Based on what they select from the list, how do I go to the corresponding page? For instance, if the user selects 'Metal', how do I go to the Metal page?

    Hello,
    Assuming the answer to Sergio is "yes" …
    First, you should make sure that the returned value from your select list is the corresponding page number or page alias for the user selection. Using your terms – "Metal" should return the page number/alias of the page where you want to implement "Metal".
    Then, on your first page, you can define a "Branch to Page Identify by Item". The parameter should be your select item name.
    Regards,
    Arie.

  • How to submit a multiple-selection list box in an Infopath Sharepoint form as multiple entries on a Sharepoint list?

    I would like to be able to submit an Infopath form with a multiple selection list box in Sharepoint as multiple entries on a Sharepoint list.
    For example, a user has to complete the following fields:
    First Name:
    Last Name:
    Favorite Color (can select more than one):
    [] Blue
    [] Red
    [] Yellow
    [] Green
    If the user picks blue AND red and submits the form, the Sharepoint list would feature TWO entries, both with their first and last names, but with different colors in the "Favorite Color" column.
    Please let me know if there is a way to do this. Any guidance would be helpful!

    Hi redhotc,
    According to your description, my understanding is that you want to set multiple default values for a multiple checkbox list in InfoPath form.
    I did a test with SQL database table. I set three default values for the checkbox list by adding three values field under the group field(Data->Default values), each value field is for a default value. Then publish it to my SharePoint site, everything
    was fine.Please have a try as the below link:
    http://www.bizsupportonline.net/infopath2010/pre-select-items-multiple-selection-list-box-infopath-2010.htm
    Note: if you are using SQL databse table, you may need to enable ‘Allow cross-domain data access for user form templates that use connection settings in a data connection file’ in CA. More information, please refer to:
    http://answers.flyppdevportal.com/categories/sharepoint2010/sharepoint2010customization.aspx?ID=418b9423-a96c-4e5e-91f9-6a1b010ebb69
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Select list display value in javascript function

    Hi All,
    I have a select list in a tabular form having a display value & return value.
    I am using $x(var_name).value or $v(var_name) for retreving return value of the select list in a javascript function.
    Can anyone let me know how can I get the display value of the select list in a javascript function? Im using Apex 3.2
    Thanks & Regards,
    Sandeep

    What if the select list is not an item. Select list I am talking about is in a tabular form.Regardless of how they're generated in APEX, in JavaScript they're all DOM nodes. There are many ways of accessing the node of the required element. Consider the Items for Order... tabular form on page 29 of the Sample Application:
    var productNameLOV = document.wwv_flow.f04[0] // select list containing name of product on first order line
    var productNameLOV = $x("f04_0001") // another way of accessing the same node, using the ID attribute generated by apex_itemWe can see this using the Safari console:
    => productNameLOV = document.wwv_flow.f04[0]
        <select name="f04" id="f04_0001" autocomplete="off">…</select>
    => productNameLOV = $x("f04_0001")
        <select name="f04" id="f04_0001" autocomplete="off">…</select>Once you've got the node&mdash;however you get it&mdash;you then use the methods shown above:
    => i = productNameLOV.selectedIndex
        3
    => productNameLOV.options.text
    "Business Shirt [$50]"
    So it appears you would use:var item = document.wwv_flow.f01[i];
    var selected = item.selectedIndex;
    var selectedOption = item.options[selected].text;
    This is meaningless:...
    var my_var = document.wwv_flow.f01[i].id; // f01 is tabular column of select list
    if ($x(my_var) == 'display_value') //$x(my_var) is having return value, but i need display_value there
    <tt>$x(my_var)</tt> returns a DOM node object, whilst <tt>'display_value'</tt> is a string: they are not comparable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Select list with submit issue when they are referred in report region query

    I have a page with a reporting region. Same region also has 3 different list items and depending on the value selected in each item, the report is refreshed. All the 3 list items are "Select list submit with submit"
    Out of 3 items, 2 (say item2 and item3) are populated through dynamic LOV using the value in item1.
    Additionally, when I select a default "ALL" value in in item1, I ignore values in item2 and item3.
    With this background, I am a following issue:
    1. I select a value other than Default value in item1 which filters the report.
    2. Then I select some value in item2 which further shrinks the reports.
    3. Now if I go back to item1 and select the default "All" value, the report is not refreshed with the new values of item1, item2 and item3. But it still shows the report based on value of item2 that I selected in step2.
    How do I set the value of item2/item3 to null if value of item1 is default which is "All"
    Any word of advise will be a great help!
    Thanks,
    Girish

    Hi,
    Make two computations each with the computation text NULL; or
    Make one process with code like:
    BEGIN
    :P1_ITEM2 := NULL;
    :P1_ITEM3 := NULL;
    END;With the condition "Value of Item in Expression 1 = Expression 2"
    Expression 1: P1_ITEM1
    Expression 2: ALL
    (or whatever the return value of ALL is...remember that this is case sensitive)
    Mike

  • On button click of Infopath forms select multi select list box values...

    Hi,
    We have multi select list box on one of the info path forms. We have placed on button on this form. If user clicks on this button we want to select some of the values in Multi select list box (check box).
    Is it possible if yes how can we achieve it?
    Thanks.
    Regards,
    Amit Chhatbar

    Hi Amit,
    From your description, you would like to check items in a multi-selection box when a button is clicked.
    I’d recommend you make use of rules in InfoPath form, i.e. when button is clicked, then set a field’s value.
    However, if you are using multi-selection box, then you could only set the value of one item at a time. If you want to select several items at once, then we could use code. For more information:
    http://www.bizsupportonline.net/blog/2009/07/understanding-multiple-selection-list-box-infopath/
    http://www.bizsupportonline.net/infopath2007/programmatically-select-all-items-multi-select-list-box.htm
    If you are using several check boxes to replace multi-selection box, then it will be more easy. The rule could be that when this button is clicked, set a field’s value (check box field) to true and repeat it.
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

Maybe you are looking for

  • Difficulty adding complete instruments

    I keep getting a message that says I have already downloaded in-app purchase of complete Garageband instruments and loops, but I have greyed out instruments and loops galore. Meanwhile, I have tried everything I've seen from using the Terminal to pus

  • Jtree Inside a Jtree

    Can i embed a Jtree inside a Jtree? Is it possible to link two different Jtree's? both of them implementing a different renderer and model ?

  • Deserialization problem

    My web service returns a custom complex type. I want to know how I can read it in my java client. Right now, I am getting deserialization errors. Do I have to write my own Deserializer? Or can I use the SOAPMappingRegistry and use mapTypes ? My compl

  • Since I updated my iphone4 to iOS 6.0 I cannot log onto my home wifi

    Since I updated my iphone4 to iOS 6.0 I cannot log onto my home wifi

  • Simple Question: What does the "SD" in "Macbook Pro 17/SD" mean?

    I recently order a brand spanking new MBP with a 17-inch Hi-res glossy display. When I go to track my order, it is listed as a Macbook Pro 17/SD, which would lead me to believe that SD stands for Standard Definition. But that can't be the case as I o