Select list in radiogroup options

Is there any way to achieve the following layout
o Radiogroup Option 1 [Select List] o Radiogroup Option 2Yes, I can easily do
o Radiogroup Option 1 [Select List]
o Radiogroup Option 2which is close enough, but just wondering if the other one was possible.
Thanks

The best I could come up with was to use the second layout I mention and then add some Javascript on the page to do something like
<style type="text/css">
label.l {position:absolute;top:100px;left:210px;}
input.i {position:absolute;top:100px;left:200px;}
</style>
<script type="text/javascript">
var f=$x('P1_RADIO');
var l=f.getElementsByTagName('label')[1];
var i=f.getElementsByTagName('input')[1];
l.className += "l";
i.className += "i";
</script>Basically, it takes that "Radiogroup Option 2" and the form input field and uses absolute CSS positioning to place it to the right of the Select list.
Works great in FF (as usual), but the usual IE inconsistencies with CSS box model rear their ugly head. Looks terrible in IE, totally mis-aligned.
Any other ideas?
Thanks

Similar Messages

  • Select list in JSP (Options from database)

    I am developing a web application on struts.
    I am having problem with my JSP.
    I have a form from where users input the keywords for search
    and when they click on a database query is performed and
    result is shown on the screen.
    Where i am stuck is that in the display screen, i wanna have one
    set of result in the drop down list (same as select in html).
    If the result from the database search is 1 i want the first option of
    select to be Yes and if its 0 then i want the first option of select to be
    No.
    what i have in JSP is following
    <select name="attt" size="2"><option value="<bean:write name="sList" property="att"/>">Yes
    <option value="<bean:write name="sList" property="att"/>">No
    Where I am stuck is that I dont know where to perform whether the
    result from database is 1 or not. Can someboday help me on how
    to solve this or get this done? Am i right so far?
    thanx in advance

    The best I could come up with was to use the second layout I mention and then add some Javascript on the page to do something like
    <style type="text/css">
    label.l {position:absolute;top:100px;left:210px;}
    input.i {position:absolute;top:100px;left:200px;}
    </style>
    <script type="text/javascript">
    var f=$x('P1_RADIO');
    var l=f.getElementsByTagName('label')[1];
    var i=f.getElementsByTagName('input')[1];
    l.className += "l";
    i.className += "i";
    </script>Basically, it takes that "Radiogroup Option 2" and the form input field and uses absolute CSS positioning to place it to the right of the Select list.
    Works great in FF (as usual), but the usual IE inconsistencies with CSS box model rear their ugly head. Looks terrible in IE, totally mis-aligned.
    Any other ideas?
    Thanks

  • Select option in select list and navigate to different page

    Hello,
    I have a tabular form.One of the item is a select list with 2 options. Selecting option one should take the user to page10(just an example) and display all the values of that particular row. Similarly selecting option 2 should take the user to page 20 and display all the values of that row.
    Can some one guide me how to do above mentioned job.
    Thanks in advance.
    Pravish

    @Avinash
      if f_cat-seltext_m = 'Select'.
        f_cat-col_pos = 1.
        f_cat-seltext_l = 'EDIT'.
        f_cat-Checkbox = 'X'.
        f_cat-EDIT = 'X'.
      endif.
    I am already passing f_cat-checkbox = 'X'.
    Thanks
    Kumar.

  • Select list pagination not working for big tables

    Hi,
    i am trying to view a table with large amount of data using tabular form. the pagination using select list is not working in this page. i have selected select list kind of pagination but it is showing "row range 1-15 16-30(with set pagination)' type of pagination. when i lowered the amount of data in the table the pagination type will automatically change to select list pagination. could you please tell me why this happens and any possible work around if any.
    Thanks,
    Jo

    Hi Jo,
    I don't know what you call a large amount of records, but the effect you describe might be intentional by apex.
    The select list pagination would generate a selection tag with (number of records in table/15) options in your page HTML.
    Although there isn't a hard limit to the number of options a select list can have there certainly is a limit to what your browser/pc can render.
    Think about it
    Let's say you table contains a million rows. this would result to a select list with 66666 options. Which your browser won't handle :)
    I very possible the apex team resolved this by simply reverting to row range pagination when the number of select options would grow to large.
    Geert

  • Dynamic select list as APEX plug-in custom attribute?

    I'm developing a region plug-in in APEX 4.0.1. I wanted to make one of the custom attributes a select list where the options offered were the current application list templates (queried from the <tt>apex_application_temp_list</tt> view: the rendered plug-in region should be styled using a standard list template from the current theme). However, the Select List plug-in custom attribute type only appears to support static lists. Can anyone confirm that I've not missed anything and that this is indeed the case?
    If so, it seems that the plug-in will have to rely on developers typing a list template name into a text box, which is far from ideal. (Unless anyone can suggest a workaround?)
    Component specific templates can be applied to several built-in component types&mdash;lists, calendars, reports&mdash;so it would make sense for there to be a similar capability for plug-ins where these are congruent with an existing template type, e.g. by providing a Template Picker plug-in custom attribute type.

    Hi,
    you have not missed anything. Plug-in attributes of type "Select List" just support static values. And I'm not sure if a query based Select List would really help, because what happens if the template is deleted. Or in the reports where it shows if the template is in use.
    So I think your second approach to extend plug-in attributes to link to certain shared components (Lists, Templates) is the better way forward, because that will also allow us to know what you are actually referencing and we can use that information in reports, delete operations, ...
    Will add it to possible enhancements for 4.1
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • $x_Hide/Show/Toggle works on a button, how about select list or tabs

    ** After looking at the issue for days I think everyone must know what I am trying to do and a Carl pointed out they don't so here is the Readers Digest Condensed version.
    I want have a single page that displays or hides regions depending on what the user want to do. So there is a single region that provides summary data and multiple regions for updates or reports that only show when that option is selected. I have got it working with buttons, thanks to Carl for his examples and numerous posts.
    Now the powers that be see that as too much clutter on the screen and want a select list for the options, as there may be 10 or 12 options on a single "page." Hopefully this clarifies what I am trying to do.
    I don't see anyway for it to work on tabs, at least not the tab sets in ApEx but select list have a "Display As" option for "Select List Returning URL redirect."
    This sounds like the button "Optional URL Redirect" property. I have the code working on buttons on the same page so I added a select list and tried it.
    The #REGION_STATIC_ID# is set up on the template of the region type being used and the regions hide and show as expected with the buttons.
    So I set up an item on the page as a "Select List Returning URL redirect"
    I created a static select list as:
    STATIC2:Option1;javascript:$x_Hide('REGION1');$x_Hide('REGION2');$x_Show('REGION3')
    I tried it with single quotes around the returning URL, and got
    mod_plsql: /pls/htmldb/'javascript:$x_Hide('COBORROWER');$x_Hide('PROPERTY');$x_Show('BORROWER')' HTTP-400 Name "'javascript:$x_Hide('COBORROWER');$x_Hide('PROPERTY');$x_Show('BORROWER')'" is longer than 30 chars
    without single quotes and got
    New, blank screen with REGION3
    mod_plsql: /pls/htmldb/'javascript:$x_Hide('REGION1');$x_Hide('REGION2');$x_Show('REGION3')' HTTP-400 Name "'javascript:$x_Hide('REGION1');$x_Hide('REGION2');$x_Show('REGION3')'" is longer than 30 chars
    I took out the java stuff and put www.yahoo.com and got
    Not Found
    The requested URL /pls/htmldb/WWW.YAHOO.COM was not found on this server.
    So the URL is being appended to the /pls/htmldb...
    Hmm... I also removed "javascript:" and tried with and without single quotes... no luck... still appending the returning URL to /pls/htmldb/.
    Tabs would be best but a drop down list is cleaner than 8 buttons.
    Ideas? Spare change?
    I may need it :)
    Sam
    Message was edited by:
    slavanaway
    Message clarified by:
    slavanaway

    What a difference a day and a pointer make.
    I created a test function in the page html header
    <script type="text/javascript">
    function test(){
    window.alert('Function test');
    </script>
    Changed the static list to
    static2:Option1;javascript:test(),Option2;javascript:test()
    and the function worked. I then changed the function to
    <script type="text/javascript">
    function test(){
    $x_Toggle('REGION1');
    </script>
    and the region toggled on and off.
    I then changed the select list to
    static2:Option1;javascript:test(),Option2;javascript:$x_Toggle('REGION2')
    and region1 toggled while Option 2 produced a blank browser page with the "REGION2" in the upper left hand corner.
    I made functions for Option1, 2 and 3 with the appropriate $x_Hide/Show for each region and the select list now acts like the buttons.
    Thanks for the help. I guess the call has an issue with the functions that are not on the page or ???. Maybe Carl can help, but since I needed more complex functions anyway this does not represent any more work while allowing me the option of a single page with multiple forms and reducing the complexity of the UI.
    Score...

  • How to create dependent Select Lists?

    Hi,
    Found in the documentation that to create dependent select list we have to do these 3 things:
    1. In the parent select list, choose the option "select list with submit".
    2. Defining a branch that branches back to the current page.
    3. In the child select list sql, use the value of the parent (eg. :P6_PARENT_SELECT_VALUE).
    When I change the value of parent select list the page is getting submitted and its going to the parent page. I've a branch that goes to the parent page but how to create a branch that comes back to the same page and then use it in parent select list?
    Thanks,
    Hozy

    Hi Hozy,
    1. Make the branch conditional...
    2. Create a new branch while will run when you make a selection in parent select list.
    Also check this site to create dependent select list without sumbitting the page....
    http://www.dba-oracle.com/t_html_db_apex_ajax_application_express.htm
    Regards,
    Shijesh

  • How to populate 'Select List' based on Radiogroup selection?

    Hi,
    I've a Radiogroup and on the selection of any of its item, I've to populate a 'Select List' from DB, what is the best way to do this?
    I'm on APEX 2.1.0.00.39, and the Radiogroup & Select List are part of a Form Region.
    To be honest, I don't even know whether to use Radiogroup with submit or redirect :-)
    Thanks for the help,
    -Hozy

    Hi,
    I have never worked on ver 2 of APEX so i dont know wheter these functionality will work or not..
    Option 1)
    1) Make the Radiogroup as Radiogroup(with submit)
    2) Create a select list with query something similar to
    select display_value d , return_value r from myTable where someColumn = :P1_MY_RADIO_BUTTON;
    Option 2) Use AJAX.. htmldb_Get()
    Regards,
    Shijesh

  • Can a Link be attached to a select list option?

    Here is some code for a select list that pulls its data from a database:
    <select name = "sid" height = "1"class="dropit" >
    <?PHP while ($row = $result ->fetch_assoc())  {   ;
        echo '<option value='. ($row['id']);
        if (!(strcmp($row['id'], $row['id']))) {echo "selected=\"selected\" ";}
         ?>><?php echo $row['type']?>
    <?PHP } ?>   
    </select>
    This works fine with a form. It is fast, and you can jump to an option just by typing its first letter.
    I would like to code it so that the options have a link to another page attached to them without the need for a form.
    It would show the selected item, and next to it would be a link attached to the word "Update"
    The link would be similar to this: <a href="update.php?id=<?php echo $row['id']; ?>">Update</a>
    It is quite easy to do in a table, with the <a ref in one td and the name field in another like so:
    <table>
    <?php while($row = $result->fetch_assoc()) { ?>
      <tr>
        <td><?php echo $row['id']; ?></td>
        <td><?php echo $row['type']; ?></td>
        <td><a href="update.php?id=<?php echo $row['id']; ?>">EDIT</a></td>
       </tr>
      <?php } ?>
    </table>
    but it does not allow key navigation, and as I have a growing list of over 6000 items,it is becoming painfully slow to use.
    Is it possible to include a URL within the option,
    Or allow the option to be selected with the URL alongside it within the select list?
    Its part of a management system that I am updating.
    For searches on the live web I am able to filter the results in a better way, using a word search system..
    All help appreciated.
    Howard Walker

    Thanks Bregent. I never studied Jump Menus before today.
    A jump menu works to a degree, but unless I have made a coding error, it is not possible to jump to an item in the list by hitting a letter key while the list is active.
    Here is my code using a database table with an id and a single field:
    <script type="text/javascript">
    function MM_jumpMenuGo(objId,targ,restore){ //v9.0
      var selObj = null;  with (document) {
      if (getElementById) selObj = getElementById(objId);
      if (selObj) eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
      if (restore) selObj.selectedIndex=0; }
    </script>
    <form name="form" id="form">
      <select name="jumpMenu" id="jumpMenu">
                 <?PHP while ($row = $result ->fetch_assoc())  { ;?>
                  <option value=<?PHP echo"update2.php?id=".$row['id'] ?> ><?PHP echo $row["id"]." - ";?><?PHP echo $row["field_value"];?></option>
               <?PHP }   ?>
      </select>
      <input type="button" name="go_button" id= "go_button" value="Go" onClick="MM_jumpMenuGo('jumpMenu','parent',1)">
       </form>
    Unless every option has a different link, I can see little use for it.
    Seems little different to a standard form with a drop down menu and a GO button, and that does not need any javascript!
    It does give a workable example of how to populate a jump menu from a database, which I was unable to find on the web.
    Comments welcome.
    Howard

  • Hiding of Select Options in screen based on selection in selection list box

    Hi People,
             I have a screen where i have put a selection list box, it is pre-filled with values, Now based on the value which user selects, I want to show/hide some select-options fields. I have declared the select options in the top include of my program,
    SELECT-OPTIONS: so_user FOR ls_rsp_user-user_id MODIF ID 222,
                    so_userg FOR ls_rsp_usergrp-user_grp_id MODIF ID 333,
                    so_ccode FOR ls_vdmp-bukrs MODIF ID 444,
    then in the PBO of my screen, I have written a module, set screen in which I loop over screen & check the group id's
    LOOP AT SCREEN.
        IF screen-group1 = '111'.
          IF gv_hier_resp_fields_flag IS NOT INITIAL.
            screen-active = 1.
          ELSE.
            screen-active = 0.
          ENDIF.
        ELSEIF screen-group1 = '222'.
          IF gv_user_fields_flag IS NOT INITIAL.
            screen-active = 1.
          ELSE.
            screen-active = 0.
          ENDIF.
        ELSEIF screen-group1 = '333'.
          IF gv_user_group_fields_flag IS NOT INITIAL.
            screen-active = 1.
          ELSE.
            screen-active = 0.
        ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    I am setting some flags based on the value which user selects in the selection list box, When I debugged I found that the flags were being set correctly, but the screen group value never set to '222' or '333', these are id's i have used for select options. Hence I am unable to hide/show the select options fields.  Kindly suggest some solutions for this.
    Thanks & Regards,
    Deepak

    then in the PBO of my screen
    Your SELECT-OPTIONS are defined in a SELECTION-SCREEN so the PBO actions must be maintained in a AT SELECTION-SCREEN OUTPUT block.
    I suppose the selection-screen is a subscreen, if you dont want to get unwanted interactions with a main selection-screen of the report, check sy-dynnr
    AT SELECTION-SCREEN OUTPUT.
       CASE sy-dynnr.
         WHEN '1000'. " main screen of report
         WHEN '0100'. " selection-screen defined as subscreen
           LOOP AT SCREEN.
             CASE SCREEN-GROUP1.
               WHEN '111'.
             ENDCASE.
           ENDLOOP.
       ENDCASE.
    Regards,
    Raymond

  • Multiple select list selected options

    Hello ;
    how can i get the selected options of my multiple selected List
    Thankyou

    Multiple select list is a concatenated double quote delimited string
    value_1:value_2:value_3
    Where do you (how do you) want to "get" the selected options? You want to use
    the selected value where?
    I have couple of demonstrations on how to handle multi-select lists:
    http://htmldb.oracle.com/pls/otn/f?p=31517:84
    http://htmldb.oracle.com/pls/otn/f?p=31517:87
    Denes Kubicek

  • Multiple Selection not working on List Box Properties/Option Screen

    When I select multiple selection on the List Box Properties/Options tab, I get no difference from the single selection default. It still highlights only the last of the multiple entries (like a single selection) and displays only the last entry. Is there something else I need to do?
    Thanks for your help.

    To select multiple items, you need to hold down the Ctrl key when clicking additional items.

  • Dynamic select list with one static 'not_listed" option

    Hi guys,
    I want to create a dynamic select list with one static 'not_listed' option.
    One possible alternative is to add the 'not_listed' record into database, but I really dont want to go that way unless there is no other way around.
    Can anyone shed some lights on this?
    Many thanks,
    William

    As usual : "It depends"...
    If you have a foreign key defined on that field, Scott's reply won't work - unless you define '0 - Not listed' in the database. You can use selec 'not listed' d, to_number(null) r from dual though...
    Another - more declarative way - is in the on 'Edit Page Item' page, in the 'List of Values' region set 'Display Null' to 'Yes' and 'Null Display Value' to ' - Not listed - '.
    Roel

  • Reducing Select list options with keyboard actions - JavaScript help

    ApExperts,
    My users want a select list with similar functionality to one in MS Access. They want to put the focus on it, then start typing and have their keystrokes 'search' the options. For example, if the select list contains the following entries:
    11111
    12345
    22222
    33333
    44444
    55555
    and they type 1 then 2 then 3, they want the element 12345 to be selected, however, an HTML select list widget selects 11111 then 22222 and finally 33333.
    I'm hoping JavaScript might be able to do this but I don't know how to code it. I've searched this forum and other web sites but have found nothing useful.
    So, is it at all possible and, if so, can you give me an idea of what triggering event to code for and what code to use?
    Thanks,
    X

    BTW, that thread continued - with more options - here:
    AJAX, Javascript or just good coding? LOV that filters as you type??
    If the select list is fixed, you don't need to pull results back from the server as the user types. Then you could try something like this:
    http://www.oreillynet.com/pub/a/javascript/2003/09/03/dannygoodman.html
    Doug
    Message was edited by:
    dccase

  • JavaScript Radiogroup/Select List

    Hi,
    I would to multiple the values of a radiogroup and a select list.
    This is what I have so far:
    <script type="text/javascript">
      function sumItems(){
        function getVal(item){
       if(document.getElementById(item).value != "")
         return parseFloat(document.getElementById(item).value);
       else
         return 0;
        document.getElementById('P1_TOTAL').value =
           getVal('P1_RADIO') * getVal('P1_SELECT');
    </script>
    I get a NaN error; I assume that is because of the radiogroup and/or select list.
    Is this a correct assumption?
    Thanks
    VC

    Hello,
    The following is a very simple example of the technique I offered you - http://apex.oracle.com/pls/apexbeta/f?p=10:30 . You can adapt it to any specific select lists you are using, and to any number of them.
    I defined 3 hidden items on the page:
    - P30_ORIGINAL – holds the original value of the select list
    - P30_FLAG0 – set to ‘true’ if a select list value set to 0. Init value 'false'
    - P30_FLAG2 – set to ‘true’ if a select list value set to 2. Init value 'false'
    The following is the JavaScript code:
    <script type="text/javascript">
    function saveOriginalValue(pItem){
      $x('P30_ORIGINAL').value = pItem.value;
    function validate_Selected_Value(pItem){
      if ($x('P30_ORIGINAL').value == 0 && pItem.value != 0) {
        $x('P30_FLAG0').value = 'false';
      if ($x('P30_ORIGINAL').value == 2 && pItem.value != 2) {
        $x('P30_FLAG2').value = 'false';
      if (pItem.value == 0) {
        if ($x('P30_FLAG0').value == 'true'){
          alert("You can't choose 0 as a value");
          pItem.value = '%';
          return;
        $x('P30_FLAG0').value = 'true';
      if (pItem.value == 2) {
        if ($x('P30_FLAG2').value == 'true'){
          alert("You can't choose 2 as a value");
          pItem.value = '%';
          return;
        $x('P30_FLAG2').value = 'true';
    </script>For each select list item I’m using the following events (in the ‘HTML Form Element Attributes’ field):
    onfocus="saveOriginalValue(this)" onchange="validate_Selected_Value(this);"As you can see, this code is generic, so you can use it with as many select lists you need on your page.
    Regards,
    Arie.

Maybe you are looking for

  • Start Up & Sleep Problem, considering graphics card upgrade, Leopard?

    Hi All, I've searched at length for this problem, and as a user rather than a tech have suspicions, rather than certainty. Have been suffering with my Mac Pro going intermittently to shutdown rather than sleep for a while, I've been living with that.

  • Can't access blackberry app world- please help

    Hi Blackberry users,  I've just received my blackberry bold 9900 on ebay. Everything seems to be working fine. However, I can't seem to open the app world? I haven't put a simcard in yet, however, I am using my home Wi-Fi connection.  When I try to e

  • ITunes shuts down when computer sleeps

    My computer falls asleep when I'm playing music on iTunes. I guess my computer thinks that there's no activity. I've tried tweaking with the energy saver settings, but it's still happening. It does the same thing when I'm watching videos on iTunes.

  • Problem in syncing the Apps version 5.0.1

    Hi there First: actually my problem is that after the syncing of my iphone the Apps not transfering to it!!! it said that it is synced  but nothing appear in my iphone??! any body know what is the problem that happened specifically after the updating

  • Need help to find technical char for an field

    Hi Guys,             I have to do some abap work for that i got some table in BW now how to find the technical characteristic for the fields of that table i want to know the field length what does that field stand for like what type of data it stores