Inserting checkbox into a APEX select list

After aloooottt of time spend in google and script foruns, i found a way to transform the simple APEX select list into a multiselec combobox with checkbox inside. Its working prety cool, and its not so hard to implement.
I´m sry if someone alread post it before, but, due to the time spend it on it, i know that is a bit hard to found.
If someone is looking for that too, i can share all my work into this. I will be glad to help.
just send me a email [email protected] or ask here on forum.
Tnks to all who help me on this "quest" lol.

Good to hear. If you have an account on apex.oracle.com you can put your demo there for everybody to see. If not, just create an account.

Similar Messages

  • How do I insert checkboxes into a Pages document?

    I have been trying to insert checkboxes into a document I created using Pages version 2.4.2 on my iPad Air. I would like an actual checkbox (not just the image of an empty box) so that a checkmark will appear once it has been selected. I am able to do this with the "Numbers" app, but I cannot copy and paste those check boxes to a Pages document.
    I want to use this document as a form I can easily access and print with checkboxes. I have only found a way to insert bullets, but not checkboxes that you can click on with your finger and a check mark appears in the checkbox.
    Thank you!

    I think you are misunderstanding "Insert text at cursor". The ANNOTATIONS are not text editing tools, rather they are tools for people making comments to "mark up" documents. You use "Insert text at cursor" to tell the document author you want HIM OR HER to insert text at that point; the author reviews all the comments and changes the original.
    You need to use one of the OTHER methods mentioned to actually add text. Probably simplest is the typewriter tool, which in Acrobat X is under TOOLS > CONTENT and is called ADD OR EDIT TEXT BOX.

  • Get Apex Select List value

    Hello,
    I've used APEX_ITEM.SELECT_LIST_FROM_QUERY in one of my dynamically built report.
    SELECT 'Add' "Add",(SELECT APEX_ITEM.SELECT_LIST_FROM_QUERY (1,ENAME,'SELECT DISTINCT ENAME,EMPNO FROM EMP') FROM EMP WHERE ROWNUM=1) "SELECT",A.* FROM ('||OBJ_SQL||') A ORDER BY 2;
    OBJ_SQL we get from a table which contains a query. The query is different for each of the selection made in another region. Probably a select list with different countries and clicking on each country, the below dynamic report should be built. Each country will be having different columns. So we store all the countries and respective queries in a table. The report should appear as :
    Add is a link.
    Select is a select list with Employee Names.
    Some Other columns from the query corresponding to the country.
    My requirement is Whenever I click on Add link for any row, the different columns in each row should be inserted into a table. I tried using a javascript call to a function passing all the values like #COL2#,#COL3# etc. But for the select list, though I select SCOTT, the whole string (all employees are concatenated) is being sent.
    Is there a way we can pass only the selected value to the javascript function? How can we achieve this? Please help.
    The select list gets displayed perfectly.

    Hey.
    Somebody help me please.
    I have to get value from APEX_ITEM.SELECT_LIST_FROM_QUERY - column on a report.
    SELECT DISTINCT ROLE AS GET_ROLE,
    JOB AS GET_JOB,
    APEX_ITEM.SELECT_LIST_FROM_QUERY
    ( 1, '%', 'SELECT DISTINCT CODE c,
    MODE m
    FROM T2
    WHERE ROLE = ' || ROLE
    ) AS GET_CODE
    FROM T1
    WHERE AGE >30 AND
    SEX = 'M' ;
    I was trying to use javascript :
    for (var i = 0; i < selectlist_name.options.length; i++)
    if (selectlist_name.options[ i ].selected)
    result=selectlist_name.options;
    but I don't know what is the name of this APEX_ITEM.SELECT_LIST_FROM_QUERY and what "selectlist_name" must be there.

  • Dynamic Action in Apex - Select list to Text field

    Hi,
    I have two text items. Need to create dynamic action for the following,
    1. Order_type - Drop down values having CONSUMER & WHOLESALE.
    2. Order_number - Text field
    When a user selects CONSUMER, order number should automatically change to '1-' and user can enter only 14 characters (1-236666666666).
    When a user selects WHOLESALE, order number should automatically change to '2-' and user can enter only 12 characters (2-2155555555).
    Can someone please help to resolve this issue.
    Thanks in advance.

    Hi Gayathri,
    Gayathri Venugopal wrote:
    Thanks Kiran. Actually ,order number should be disabled. only on selection of  order type, order number should be enabled, how do I do that?can you please help
    I can do fire on page load and disable order number .But how do i enable it again on selection of order number
        Let's say '1-' is prefix for Order Number when Order Type is 'CONSUMER' and '2-' is the prefix for Order Number when Order Type is 'WHOLESALE'.
        So a solution to your issue would be:
    Go to Page Attributes -> CSS -> Inline CSS and add the following class:
    .item_disabled {
      cursor: default;
      opacity: 0.5;
      filter: alpha(opacity=50);
      pointer-events: none;
    Create three elements PXX_ORDERNUM_PRE, PXX_ORDERNUM_SUF(as text Items) and PXX_ORDER_NUMBER(as hidden. Set Value Protected -> No).
    Arrange the PXX_ORDERNUM_PRE and PXX_ORDERNUM_SUF on one row.
    Set the "HTML Form Element Attributes" for PXX_ORDERNUM_PRE to this:
    readonly="true"
    Set the "HTML Form Element CSS Classes" for PXX_ORDERNUM_PRE to this:
    item_disabled
        NOTE : The above two points are to make the PXX_ORDERNUM_PRE element readonly, because if we disable the element we can't assign it a value.
    On the change event of PXX_ORDER_TYPE select list create dynamic action to populate PXX_ORDERNUM_PRE (as mentioned earlier)
    var ordertype = $('#P11_ORDER_TYPE').val();
    if (ordertype === 'CONSUMER') {
      $('#P11_ORDER_NUMBER_PRE').val('1-');
    } else if (ordertype === 'WHOLESALE') {
      $('#P11_ORDER_NUMBER_PRE').val('2-');
    Create an on-submit computation to concatenate PXX_ORDERNUM_PRE and PXX_ORDERNUM_SUF into PXX_ORDER_NUMBER.
    Create validation on PXX_ORDERNUM_SUF, if PXX_ORDER_TYPE is 'CONSUMER' the length should be 12 characters, if 'WHOLESALE' the length should be 10 characters.(excluding 2 characters of prefix).
         So this covers the following:
    On change of Order Type, Order Number Prefix should be set.
    Order Number Prefix should be not able to be modified, but the rest of Order Number should be able to be entered by user.
    Order Number should be of specific length depending upon the Order Type.
         Hope this helps!
    Regards,
    Kiran

  • Apex Select List

    Hi,
    In my application. I have a requirement like the below
    one select list is there where iam displaying the country name returning country code.
    another select list i have a province name displayed returning the province code.
    Now my requirement is when i select country name another province select list should show only the province names belongs to that country dynamically,
    created dynamic action and wrote plsql function on change event to set value as follows but no luck please advice.
    IF :LANG_PREF_CD = 'E' THEN
    RETURN 'SELECT province_name
    , province_id
    FROM (SELECT E_province_name province_name
    , province_id province_id
    FROM province_table
    where province_table.country_id=:p1_country_name
    UNION ALL SELECT 0, '' '', NULL FROM DUAL )
    ORDER BY province_id;
    ELSE
    RETURN 'SELECT province_name
    , province_id
    FROM (SELECT f_province_name province_name
    , province_id province_id
    FROM province_table
    where province_table.country_id=:p1_country_name
    UNION ALL SELECT 0, '' '', NULL FROM DUAL )
    ORDER BY province_id;
    END IF ;
    can any one help where is the mistake please. thanks

    Hi,
    not sure for older versions but for > Apex 4.0 this is possible "out of the box".
    Define 1 list of values called country and set this as the LOV on your country field ( e.g. P11_COUNTRY ).
    Define a second field called P11_PROVINCE and set Cascading LOV Parent Item(s) to P11_COUNTRY, also set Page Items to Submit to P11_COUNTRY
    now define the list of values for the P11_PROVINCE in the List of values definition on the item page ( so not a named LOV since you shoudlk reference a page item ):
    select
         province,ID
    from provincelovtable
    where
    and country_id = :P11_COUNTRY
    The field country_id should contain the country id where the province is linked to.
    regards
    Bas

  • Procedure to insert data into table by selecting data from another table

    Hi all,
    I have to create a procedure where i have to select the data from one table and insert it into another table. Any help on this. And i have to update the 2nd table also when ever new records got inserted in the 1st table then.
    Regards

    Hi, you can try something like:
    CREATE [OR REPLACE] PROCEDURE procedure_name
    IS
    BEGIN
    INSERT INTO TABLE1
    VALUES (SELECT * FROM TABLE2);
    END;
    For the other part you may create a trigger on the first table AFTER INSERT to insert the values in the second table too.

  • Oracle apex select list display

    hi all:
    i have 2 select list ,1. select list1 and 2.select list 2 ok .in select list1 have items like A,B,C,D,E,F LIKE THAT AND select list2 aslo have item's like X,Y
    in select list1 i am trying to select B ..in select list2 it should be display only X..WHEN I am selecting other then B it's should be dispaly Y...ONLY....HOW WILL DO THIS GIVE ME SOLUTION .......

    You can do that using this example:
    http://htmldb.oracle.com/pls/otn/f?p=31517:119
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • ApEx2: Many-to-many with checkboxes or multiple select list?

    Hello all together
    I have the following specification:
    * a table for tool users: tool_users(tu_id, tu_name)
    * a table for groups: groups(gr_id, gr_name)
    * a table for the many to many relationship of tool users and groups: tool_users_to_groups(tu2gr_id, tu2gr_tu_id, tu2gr_gr_id)
    I'd like to have some checkboxes or a multiple select list in my "add/edit group" form where I can select which users belong to this group. The same vice versa for users to specify which groups they belong to.
    edit user
    (general details)
    Has to the following groups:
    [X] Group 1
    [ ] Group 2
    [ ] Group 3
    [X] Group 4
    [ ] Group 5
    After submitting the checked values should be insert into the many-to-many relationship table.
    How can I do that?
    Thanks a lot for any help,
    Josh

    Thanks for your kind help.
    I'll have to learn PL/SQL if I want to go on with my work in ApEx in future, I see this too.
    But at the moment there are just a few problems I got and I should get a small application up and running as soon as possible, so I'd be really thankful for some newbie help.
    My problem is now:
    I have created the process for my form page with the following code:
    declare
    v_list varchar2(200);
    begin
    for r in (select tu2gr_gr_id id
    from tool_users_to_groups
    where tu2gr_tu_id = :P3_TU_ID)
    loop
    v_list := v_list ||r.id|| ':';
    end loop;
    :P3_GROUPS := v_list;
    end;
    Sadly the code does not seem to be executed. I have changed the name from :P3_GROUPS to :P3_GROUPS2 (which doesn't exist and I'd expect the application to crash when loading the page). I have set the process to a Before Header process. What could I have done wrong?

  • Inserting items into List on a JSP

    I want to insert new items into a multiple select list from database
    on selecting an item from an existing list in a JSP.
    I am not sure how to do this.
    thanks

    This is basically performing partial page rendering. There is no way for HTML or JavaScript executing in a user's browser to communicate directly with Java or your database. You'll either have to "preseed" the values from the database into the HTML page using JavaScript, and then change the select list w/ JavaScript based on what the user selects (this is how it's usually done.)
    Or, you could do something like using a hidden IFrame as a data conduit to your JSP which sends JavaScript back to the browser and updates the select list with the new values. A little more tricky, and doesn't work w/ all browsers, but it would work better if the data in question can be arbitrarily large.
    Hope that helps.

  • By Default All Value Into Select List,If Select % In select List

    Hi ,
    i have created application process to extract state name in select list based on city name.
    Now i need if i don't have city name and i have select % into City Name select List then All State Name Should Come into Select List.
    Right Now if i select % into select List then It show me Blank In to state Name Select List.
    How can i extract All State Name if i select % Into Select List.
    My Application Process
    BEGIN
      OWA_UTIL.mime_header ('text/xml', FALSE);
      HTP.p ('Cache-Control: no-cache');
      HTP.p ('Pragma: no-cache');
      OWA_UTIL.http_header_close;
    htp.prn('<data>');
       HTP.prn ('<select>');
       FOR c IN (select S.NAME,S.CODE from STATE_MAS S,CITY_MAS C where C.STATE_CODE=S.CODE AND C.CODE =:SELECT5)
    LOOP
      HTP.prn ('<option value="' || c.CODE || '">' || c.NAME || '</option>');
       END LOOP;
       HTP.prn ('</select>');
    htp.prn('</data>');
    END;My City Name Table
    CREATE TABLE  "CITY_MAS"
       (     "CODE" VARCHAR2(3) NOT NULL ENABLE,
         "NAME" VARCHAR2(1000) NOT NULL ENABLE,
         "STATE_CODE" VARCHAR2(3) NOT NULL ENABLE
            )My State Name Table
    CREATE TABLE  "STATE_MAS"
       (     "CODE" VARCHAR2(3) NOT NULL ENABLE,
         "NAME" VARCHAR2(50) NOT NULL ENABLE
    /How can i do this.
    Thanks
    Edited by: 805629 on Jan 25, 2011 2:06 AM

    select S.NAME,S.CODE from STATE_MAS S join CITY_MAS C on (C.STATE_CODE=S.CODE)If you join two table you must have some equal data between this tables. and define it on your sql. Else you join will be cartesian join. if you dont want use this sql then create view
    create view TEST1 as (
    select S.NAME,S.CODE from STATE_MAS S,CITY_MAS C where C.STATE_CODE=S.CODE
    select * from test1 where  C.CODE =:SELECT5 OR :SELECT5 = '%' Edited by: Adigozalov Gurban on Jan 25, 2011 3:46 PM

  • How to display chart region based on select list in html region ?

    Hi all,
    i'm using 4.0.1.00.03 apex version,in a page i have 2 regions one is html and another one is Chart region.in html region i have a select list and button.when user sign into my application select list have some values in that page,user select's a value and clicks on the button then chart will be displayed.my query is when user first sign into my application i want to dispaly chart region when only select list is selected and clicks on the button.can any one guide me on this.
    thnx in Adv.

    Hi yann,
    thnx for ur reply,
    i have done what u have written but i didn't meet my requirement..
    let me explain what i need exactly
    as of now my application is like this..
    i have a html region in that i have select list(P6_LIST) and go button
    and chart region.
    chart query is like this..
    SELECT your_value
    FROM your_table
    WHERE your_value = :P6_LIST
    AND ...
    how it is working??
    when user sign into my application, user can see html region with 'select list and go button' and chart region with 'no data '.
    when user select a value in select list and click on go button automatically chart region will be dispalyed with chart.
    what i wanted to change is..
    when user sign into my application, user can see html region with 'select list and go button' and no chart region
    when user select a value in select list and click on go button then only user can see chart region with chart.
    plz help me how to do it.. :)
    thnx in Adv.
    Edited by: moulani on Nov 4, 2011 12:05 PM

  • Not Allowing a Value to be Selected in a Select List

    Version 4.1.1.00.23
    Hello,
    I've created a Select List to display Projects within a Department (we call them Groups).
    A Group will have Projects, however, more than one Group can have a Project with the same name.
    So my query for the Select List displays the data in a Hierarchical format like this:
    Group 1
        Proj Grp 1
        Proj Grp 1
        Proj Grp 1
        Proj Grp 1
        Proj Grp 3
    Group 2
        Proj Grp 1
        Proj Grp 1
        Proj Grp 2
        Proj Grp 2
    Group 3
        Proj Grp 1
        Proj Grp 2
        Proj Grp 3
    What I'm looking for is to NOT allow the 'Group' level to be selected within the list. Only allow the Project level values to be selected.
    The query is:
    WITH t
         AS (SELECT 'Group: ' || vg.group_name name
                   ,vg.group_id
                   ,NULL id
                   ,1 AS weight
             FROM   vertical_group vg
             WHERE (vg.group_id = :P100_GROUP OR :P100_GROUP = 0)
             UNION ALL
             SELECT '....' || project_name
                   ,group_id
                   ,project_id
                   ,2 AS weight
             FROM   tbs_projects
             WHERE  status IN ('Pipeline'
                              ,'Planned - Partially Funded'
                              ,'Planned'
                              ,'Execution') AND
                    ( :P100_RYG_PROJECT = 0 OR :P100_RYG_PROJECT = ryg_proj_id ) AND
                    ( group_id = :P100_GROUP OR :P100_GROUP = 0 ))
    SELECT name
          ,id
    FROM   t
    ORDER BY group_id
            ,weight
            ,name
    Can someone help me with this?
    Is there additional information I can provide?
    Thanks,
    Joe

    The HTML optgroup element is used to structure select lists in this way. Standard APEX Select Lists and LOVs do not have support for generating optgroup elements in option lists, but item plug-ins with this feature are available.
    See the documentation for more on using plug-ins.

  • Reset Select List in Form With Report

    Hi,
    i have Created Form with Report Page. I have three select List on this page.
    1-Market Name Select List with Redirect
    2-Customer Name Select List with Redirect
    3-Contect Person
    when i select market Name then Respective Customer name is select In to select List Customer Name.
    When i select Customer Name Then Contact Person is Select in Select List Contect Person.
    Problem is when i select Customer Name from Select List then Contact Person comes into Contact persion Select List But the value in select List Customer Name and Market Name is not dispaly , Display Only -Select Market - and -Select Customer Name- .
    I want when i select Customer NAme From Select List then value from MArket and customer Select List should not be reset.
    How can i do this.
    Thanks
    Edited by: 805629 on Jan 26, 2011 10:45 PM

    Try 'select list with submit', not "select list with redirect". Redirect usually doesn't save the values in session state so they are lost when the page repaints.

  • Similar to cascading select list...please give me some suggestions..

    Hi everyone,
    I had worked on cascading select lists where if i select a value in PARENT SELECT LIST,depend on the value of PARENT SELECT LIST the CHILD SELECT LIST will populate...
    i am trying to implement something similar..but i would like to have the CHILD as "CHECKBOX'S" instead of "SELECT LIST"
    ex:
    ==
    PARENT SELECT LIST (if i select a value depend on the value it should display "CHECKBOX's")
    CHILD CHECK BOX's
    Is it possible to do this with "AJAX" (I dont want to submit the page after i select a value in select list)
    Please help me to solve this..
    Thanks
    phani

    Hi phani,
    have you tried using Javascript to do this.
    Regards
    Rana

  • How to do dependent select list based on parent select list

    Hello... I have the following bit of code...
    *parent select
    htmldb_item.select_list_from_query(1,null,'select program_desc_eng, program_id from myfps_programs')
    * child select using parent value
    htmldb_item.select_list_from_query(2,null,'select sub_pgm_desc_eng, sub_program_id from myfps_sub_programs where program_id = <VALUE FROM ABOVE?>')
    I know this is easily done using the select list form items and such but I need to use the htmldb_item function. On screen when a user selects value from the parent select list, I want the child select list to use the value of the parent as a parameter into its own select list. How can I reference the parent? (ie can I use htmldb_application.g_f01(1) or something of this nature?) I realize I may need a bit of javascript to have it work correctly but I'm just wondering if its possible?

    This is not a trivial task.
    See http://forums.oracle.com/forums/thread.jspa?messageID=1241356

Maybe you are looking for