Dynamic Select List / Radio Buttons triggering conditional display of field

Hi HTMLDB Team,
I wanted to mimic this very nice and useful HTMLDB 'select list feature' at the HTMLDB "Create Application ... from Application Export file " ... option .
ie when you hit the form that asks you to "install the application", i,e
Builder - Application >Export Import>Export Repository>Install Application
you have the the following radio Options :
Install As Application
X Reuse Application ID 401 From Export File
X Auto Assign New Application ID
X Change Application ID
New Application
The "New Application ID" field appears only when I select "Change Application ID" radio option. That great and that's exactly what I want.
How do you do that ?
I am currently using a select list instead of radio list. It's the same thing ... I
I tried " many options of the "select list with redirect .... with submit .... but I was not successfful. All I am trying to achieve is to offer a list of departments ... but when the user select "other", I want to show a text field for the user to type in the "other Department" ... without losing what I had already entered in the form previously and without actually Submitting the form . I still have other fields to enter after the select list .
Is that possible with pure HTMLDB ?
Or do I have to craft up some Javascript .
I'd prefer pure HTMLDB .. I do not want to use javascript, to avoin a maintenance nightmare once I submit the code to other developers ...
Can you pls help ?
Thanks a lot.

Hello,
Take a look at these built in javascript function
they should give you what you want.
http://htmldb.oracle.com/pls/otn/f?p=11933:39
CarlCarl,
if I understand it right, these functions are already built in Apex 2.2.1.
I need to show an item with label when user selects certain radio button. This sounds like the opposite to f_Hide_On_Value_Item_Row function.
Can this task be done with apex built-in javascript functionality at this moment?
Thanks

Similar Messages

  • Dynamic select list with display,return val & join condition issue.

    hello,
    I am having a dynamic select list with display, return value
    say for example my select statement is
    select distinct dname d, deptno r
    from dept dt
    right join emp e on (e.deptno=dt.deptno)
    where (condition)
    when i tried this query for my select list, it is not working. It saying that
    " 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. "
    I am not able to understand the problem. Can anyone help me out with this issue?
    thanks.

    Shouldn't your join have dept as the driving table?
    select distinct dname d, deptno r
    from dept dt
    right join emp e on (dt.deptno = e.deptno)
    where (condition)
    Or using older Oracle standard join
    select distinct dname d, deptno r
    from dept dt, emp e
    where (dt.deptno (+) = e.deptno) AND (OTHER WHERE condition)
    OR
    (Since a right join is just getting the values from the driving table that are NOT in the associated table)
    select distinct dname d, deptno r
    from dept dt
    WHERE dt deptno NOT IN (SELECT deptno FROM emp) AND (OTHER where condition)
    Thank you,
    Tony Miller
    Webster, TX

  • Is it possible to make a fillable form have variable fields - so if you select a radio button it triggers a different form field to be seen depending on which radio button is selected??

    Is it possible to make a fillable form have variable fields - so if you select a radio button it triggers a different form field to be seen depending on which radio button is selected??

    Yes, one needs to use some custom JavaScript code to control the other fields' properties.
    Disabling (graying-out) Form Fields by Thom Parker

  • Connecting selection of radio button to a text or numeric field

    Hi. I am using LiveCycle Designer 8.0 and I am trying to define object properties that will allow the selection of a radio button to populate in a numeric data field at the bottom of the page. I was able to write the script to have that happen with drop-down lists, but I can't figure out how to write the script for the radio button. I also don't know if the script is supposed to apply to the radio button itself or the numeric field where I want the result to show-up. Can you please help me with some sort of an example script? Thanks.

    Hi Jen,
    I would recommend that you amend your workspace in Designer. You can show/hide palettes from the Window menu.
    Here are some pointers (which are optional):
    This is the hierarchy palette and is very handy when working with forms. You can select objects quickly and drag objects around.
    This is the Object palette, which makes it easy to drag objects onto the page.
    The main space with tabs for Design View, Master Pages, XML Source (you should not need this) and Preview.
    You can select objects in EITHER the page or the hierarchy view and then change properties in other palettes.
    The Script Editor is very important when you start to add functionality to your form. It is visible on your screen shot, but it is limited to one line in height. So I would recommend that you drag this down so that you can see a few lines of script. The Show dropdown in the Editor allows you to look at the script in various events. In the example I posted, there is script in the click event.
    Object palette (and Font & Paragraph palettes). These will allow you to make changes to various properties, depending on the object that is selected.
    You will see from the screenshot that you can position and stack the palettes to suite your screen and workflow.
    Now, in relation to your screenshot:
    You have selected a single radio button in your group. You need to select the whole exclusion group, this is easy in the hierarchy palette.
    In the Object > Binding palette you have ticked the Specify Item Values (good), but you need to edit the values to match the Display Items. For example for item "$85", the specified value should be "85".
    For starters, I would recommend that you open a few of the palettes and then have a look at my example and the screenshots. Hopefully that will clear it up for you.
    Niall

  • Dynamic table with radio buttons

    I need to load a dynamic table with radio buttons that allow
    the user to select an item in the table. I need to have it add a
    radio button with a unique identifier for each table item.
    For example: the table will load all of the seminars
    locations available in a certain state, the radio button will allow
    the user to select the city in which they would like to attend and
    that value will get passed to the registration page. The value of
    each radio button would be equal to the location_id in the database
    for each of the locations in the table (The table includes the
    date, day, venue, address, hotel info, etc. details for each city.)
    When I add dynamic radio buttons and set the value to the
    location_id in the database, it allows the user to select multiple
    radio buttons. I cannot find any information on how to
    resolve.....??
    Any help is appreciated.

    beanieboo wrote:
    > I need to load a dynamic table with radio buttons that
    allow the user to select
    > an item in the table. I need to have it add a radio
    button with a unique
    > identifier for each table item.
    >
    > For example: the table will load all of the seminars
    locations available in a
    > certain state, the radio button will allow the user to
    select the city in which
    > they would like to attend and that value will get passed
    to the registration
    > page. The value of each radio button would be equal to
    the location_id in the
    > database for each of the locations in the table (The
    table includes the date,
    > day, venue, address, hotel info, etc. details for each
    city.)
    >
    > When I add dynamic radio buttons and set the value to
    the location_id in the
    > database, it allows the user to select multiple radio
    buttons. I cannot find
    > any information on how to resolve.....??
    > Any help is appreciated.
    Give each radio button the same name
    <input type="radio" name=theLocation" value="<?php
    $recordset['location_id'] ?>">
    Mick

  • Dynamic Select List in Reports

    Hi,
    I have come across solutions to implement dynamic Select Lists. But can the same be implemented in a report.
    I have a report of 2 columns which are select lists. The Value of one depends of the other.
    Can this be done?
    Thanks in Advance

    Hi Abdullah,
    Thanks for the Tip. However, couple of queries.
    1) The first modification involves changing the query to : select lov_pkg.savekey() , colA, colB, ... But the function savekey takes a value.
    Ideally, I need this function to be called while loading and when the first select list is changed. How can this be done.
    2) Also, To make this change in query, I had to use (Use Generic Column Names (parse query at runtime only)) option. Now my Add Row button doesnt work? Can you tell me how that can be customized.
    Thanks,
    Sunil

  • Creating dynamic select list

    I have a dynamic select list populated by site names and URLs from a map; when a user clicks on an entry the site name and URL will fill two text boxes. There are also buttons to add, update, and delete entries. These buttons lead to actions within my JPF file.
              When I select an entry to delete, the script runs a delete SQL statement again my Ora db instance, then the page content is repopulated. I want to know how come when I do that I always get the sequence ID of the just deleted entry at the end of my select list.
              Here is a snippet of what I've got:
              JSP:
                        <netui:select
                dataSource="{actionForm.siteList[0]}"
                optionsDataSource="{actionForm.itemOptions}"
                size="4"
                tagId="siteList">
              <netui:textBox
                dataSource="{actionForm.title}"
                size="30" maxlength="200" tagId="title"/>
              <netui:textBox
                dataSource="{actionForm.url}"
                size="30" maxlength="200" tagId="url"/>
              <netui:hidden dataSource="{actionForm.key}"
                tagId="key"/>
              <script language="javascript">
                <!--
                <%=session.getAttribute("jsArray")%>
                  function siteClicked()
                    var index =
                      document[getNetuiTagName("process",this)]
                      [getNetuiTagName("siteList",this)][
                        document[getNetuiTagName("process",this)]
                        [getNetuiTagName("siteList",this)]
                        .selectedIndex]
                      .value
                    document[getNetuiTagName("process",this)]
                    [getNetuiTagName("key",this)].value
                      = index;
                    document[getNetuiTagName("process",this)]
                    [getNetuiTagName("title",this)].value
                      = siteArray[ index ][0];
                    document[getNetuiTagName("process",this)]
                    [getNetuiTagName("url",this)].value
                      = siteArray[ index ][1];
                -->
              </script>
                                  JPF:
                        Connection conn = null;
              query = "delete from stlnt_other_ref_sites " +
                      "where stlnt_ors_site_id = " + form.getKey();
              try {
                pstmt = conn.prepareStatement( query );
                pstmt.executeUpdate();
              } catch (SQLException ex) {
              try {
                Map map = new LinkedHashMap();
                while ( rs.next() )
                  map.put(new Integer(rs.getInt(1)), rs.getString(2));
                  jsArray += "siteArray[" + rs.getInt(1)
                    + "]=new Array(\"" + rs.getString(2)
                    + "\",\"" + rs.getString(3) + "\");";
                  hasResults = true;
                options = map;
                getSession().setAttribute("jsArray",jsArray);
                getSession().setAttribute("hasResults",
                  String.valueOf(hasResults));
              } catch (SQLException ex) {
              

    OK I got it working... Mostly... I don't know if it was a combination of changes that made the difference, but I'll put down what I did. First, I switched my select object in the form bean into just a string type from a string array (it was allowing the selection of one entry anyways). Second, rather than just blanking out the options map, I also blanked out the select object [eg form.setSelect("")].
              Now when I select an entry and click delete, the resulting select list is short one visible element. However, you can still select the blank spot where that last entry used to be. However, this is not a huge issue for me now; I will investigate this at a later time.

  • 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

  • File name should change by selecting the radio buttons

    Hi all,
    PARAMETERs: p_file LIKE rlgrap-filename.
    PARAMETERS: p_app RADIOBUTTON GROUP rg DEFAULT 'X',
                             p_pre RADIOBUTTON GROUP rg.
    this is to download the ITAB data to presentation and application servers depending upon the radio button selected.
    if i select p_pre , then default download path is : 'C:/ download.txt'.
    if i select P_app , default download path is : '\usr\sap\EBG\SYS\profile\DOWN.TXT'.
    how the file name should change by selecting the radio buttons ?
    Thanks
    KR

    Hi,
    DATA: c_x VALUE 'X'.
    selection-screen begin of block input with frame title text-000.
    parameters :desktop     radiobutton group rg_f user-command rg_f,
                       in_file type ibipparms-path modif id ps DEFAULT 'C:/ download.txt',
                menu     radiobutton group rg_f ,
                       sys_file type ibipparms-path modif id as default  '\usr\sap\EBG\SYS\profile\DOWN.TXT' .
    selection-screen end of block input.
    at selection-screen output.
      if desktop is initial and menu is initial.
        desktop = c_x.
      endif.
      perform f_toggle_finputs.
    form f_toggle_finputs.
    loop at screen.
        if screen-group1 = 'PS'.
          if desktop = c_x.
            screen-input    = 1.
    *         sys_file = c_server_path.
          else.
            screen-input    = 0.
          endif.
        endif.
        if screen-group1 = 'AS'.
          if menu = c_x.
            screen-input    = 1.
    *        clear: in_file.
          else.
            screen-input    = 0.
          endif.
        endif.
        modify screen.
      endloop.
    endform. "f_toggle_finputs
    Hope this helps u.
    Thanks.

  • Creating a dynamic Selection List based on a View Object

    Hello,
    I'm new to JDeveloper and I would like to create a JSP Page with dynamic Selection List based on a runtime query or based on a view object (BC4J). The selection made by an user should serve another dynamic query with the necessary parameters that I built using createViewObjectFromQueryStmt(). By now I tried this using the InputSelectLOV from the Component Palette in JDeveloper. But without success. By the way: the selection list is not very large (5 values), so it's not necessary to have a form finding the desired value.
    Maybe someone had experience about creating this already. Please give me a tip or a little example.
    Thanks.

    http://otn.oracle.com/products/jdev/howtos/jsp/renderers.html

  • Dynamic forms using radio buttons, any ideas?

    Hello;
    I am writting a multi-form section in a web site. I have the
    form built up to the point where it sends the email. I have some
    issues I am trying to figure out and need some help. First let me
    show how this is set up, then the questions:
    The set up:
    Page 1 personal info
    <cfform action="PT2.cfm" method="post"
    enctype="application/x-www-form-urlencoded" name="sponsorOrder"
    enablecab="no">
    all the form fields that need to be filled for contact info
    here
    <input type="reset" name="Reset" value="Reset">
    <input type="submit" name="Submit" value="Proceed to Step
    2">
    </cfform>
    PAGE 2:
    <cfform action="SENDMAIL.cfm" method="post"
    enctype="application/x-www-form-urlencoded" name="sponsorOrder"
    enablecab="no">
    <input name="Fname" type="hidden"
    value="<cfoutput>#form.Fname#</cfoutput>">
    <!-- all the other hidden fields from page 1 go here
    --->
    <input type="radio" name="sponsor" value="1">
    <input type="radio" name="sponsor" value="2">
    <!-- there are 7 radio buttons to select from on this
    page. All with the same name="sponsor" -->
    <input type="reset" name="Reset" value="Reset">
    <input type="submit" name="Submit" value="Submit">
    </cfform>
    SENDMAIL page:
    <cfset subject = "Sponsorship Order">
    <cfset email = "#form.email#">
    <!----------------------------------------------------------------------->
    <cfmail to="[email protected]"
    cc="[email protected]"
    from="#form.email#"
    subject="Custom Order Request"
    server="mail.myserver.com"
    port=25
    type="HTML">
    <font face="Verdana, Arial, Helvetica, sans-serif"
    color="##000000" size="2">
    <b>Collected information</b><br>
    <b>Customer First Name:</b>
    #form.Fname#<br>
    <!-- all the rest of the collected contact info goes here
    -->
    <!-- HOW do I bring in the radio button choice here? Is
    this the right way? -->
    <cfif "form.sponsor" = "1">
    <b>Selection 1:</b> the info they get from
    selection 1 here <br>
    </cfif>
    <cfif "form.sponsor" = "2">
    <b>Selection 2:</b>The info that goes with
    selection 2 goes here<br>
    </cfif>
    <!-- there are 5 more if statements that need to run here
    for the rest of the radio selections -->
    </cfmail>
    <cfinclude template="thankyou.cfm">
    THANK YOU PAGE:
    Now on this page is where I get lost. I need to bring the
    selection from the radio buttons over to here and serve up a button
    according to the radio button selected back on page 2. Is this how
    I do that? The same as I did in the sendmail?
    <cfif "form.sponsor" = "1">
    they get this button and info
    </cfif>
    <cfif "form.sponsor" = "2">
    they get this button and info
    </cfif>
    <!-- and it goes on for 5 more selections -->
    Those are my questions, as well as this.
    On page 2 I need to make it impossible to pass that page
    without making a selection. How do I do that with radio buttons?
    Can anyone help me?
    Thank you.
    Phoenix

    Irish-Phoenix wrote:
    > Hello;
    > I am writting a multi-form section in a web site. I have
    the form built up to
    > the point where it sends the email. I have some issues I
    am trying to figure
    > out and need some help. First let me show how this is
    set up, then the
    > questions:
    >
    > The set up:
    > Page 1 personal info
    >
    > <cfform action="PT2.cfm" method="post"
    > enctype="application/x-www-form-urlencoded"
    name="sponsorOrder" enablecab="no">
    >
    > all the form fields that need to be filled for contact
    info here
    >
    > <input type="reset" name="Reset" value="Reset">
    > <input type="submit" name="Submit" value="Proceed to
    Step 2">
    > </cfform>
    >
    > PAGE 2:
    >
    > <cfform action="SENDMAIL.cfm" method="post"
    > enctype="application/x-www-form-urlencoded"
    name="sponsorOrder" enablecab="no">
    > <input name="Fname" type="hidden"
    value="<cfoutput>#form.Fname#</cfoutput>">
    > <!-- all the other hidden fields from page 1 go here
    --->
    > <input type="radio" name="sponsor" value="1">
    > <input type="radio" name="sponsor" value="2">
    > <!-- there are 7 radio buttons to select from on this
    page. All with the same
    > name="sponsor" -->
    > <input type="reset" name="Reset" value="Reset">
    > <input type="submit" name="Submit" value="Submit">
    > </cfform>
    >
    > SENDMAIL page:
    > <cfset subject = "Sponsorship Order">
    > <cfset email = "#form.email#">
    >
    <!----------------------------------------------------------------------->
    > <cfmail to="[email protected]"
    > cc="[email protected]"
    > from="#form.email#"
    > subject="Custom Order Request"
    > server="mail.myserver.com"
    > port=25
    > type="HTML">
    > <font face="Verdana, Arial, Helvetica, sans-serif"
    color="##000000" size="2">
    >
    Collected information<br>
    >
    Customer First Name: #form.Fname#<br>
    > <!-- all the rest of the collected contact info goes
    here -->
    >
    > <!-- HOW do I bring in the radio button choice here?
    Is this the right way? -->
    > <cfif "form.sponsor" = "1">
    >
    Selection 1: the info they get from selection 1 here
    <br>
    > </cfif>
    > <cfif "form.sponsor" = "2">
    >
    Selection 2:The info that goes with selection 2 goes
    here<br>
    > </cfif>
    > <!-- there are 5 more if statements that need to run
    here for the rest of the
    > radio selections -->
    > </cfmail>
    > <cfinclude template="thankyou.cfm">
    >
    > THANK YOU PAGE:
    >
    > Now on this page is where I get lost. I need to bring
    the selection from the
    > radio buttons over to here and serve up a button
    according to the radio button
    > selected back on page 2. Is this how I do that? The same
    as I did in the
    > sendmail?
    >
    > <cfif "form.sponsor" = "1">
    > they get this button and info
    > </cfif>
    > <cfif "form.sponsor" = "2">
    > they get this button and info
    > </cfif>
    > <!-- and it goes on for 5 more selections -->
    >
    > Those are my questions, as well as this.
    > On page 2 I need to make it impossible to pass that page
    without making a
    > selection. How do I do that with radio buttons?
    > Can anyone help me?
    > Thank you.
    >
    > Phoenix
    >
    hi phoenix!
    ok, let's see...
    your "thank you" page is cfincluded in the "sendmail" page,
    so it will
    have all the passed form vars available to it, which means
    you do not
    have to store the radio button selection in the session scope
    or
    anywhere else...
    i think a cfswitch/cfcase construct to check for selected
    radio button
    will serve you better than lots of cfif/cfelseif/cfelse...
    as for preventing submission of page2 without selecting a
    radio button
    first:
    a) pre-select one
    b) use client-side javascript to make sure one is selected
    (use an
    onsubmit event in the form tag or onclick event in the button
    - you will
    have to change the button type from submit to button, and
    change its
    name from submit to something else - there are possible
    issues with
    having a button named submit in your form if you are
    suibmitting the
    form through js...
    c) you could also use server-side cfml to check that a radio
    button is
    selected but it requires a lot of extra code and changes to
    your
    forms/pages...
    Azadi Saryev
    Sabai-dee.com
    Vientiane, Laos
    http://www.sabai-dee.com

  • Dynamic Select List - XML and umlaut

    Hi, I've recently implement a dynamic select list as per [this thread|http://forums.oracle.com/forums/thread.jspa?threadID=327306], however it seems to break if I have any words containing an umlaut. I've tried setting the header on the Application Process to UTF-8 (OWA_UTIL.mime_header ('text/xml', FALSE, 'utf-8');) but it doesn't seem to make any difference. The word in particular giving me problems is Kühne - it's the only non english entry so far, but I would expect others in the future.
    Does anyone have any ideas how to allow this character to be parsed correctly? Short of using replace to check for this and every other possible character I'm not sure what else to do.
    Thanks

    Pete88 wrote:
    Hello
    I would like to create a dynamic select list where you can start entering a name and select list reduces with each character entered.
    E.g. A list of towns in the UK where you want to select London. This list is delay as normal and as start typing by the time you have entered “Lon” the list only has few names starting with “Lon”
    I expect I need a JavaScript to active this?Not in APEX 4.x. Use a Text Field with autocomplete item.

  • Dynamic select list crashes with php

    HI All,
    I can't seem to get a dynamic select list to work in
    dreamweaver. It completly crashes everytime I try adding it to my
    page. I found someone else in the forum who had the same problem
    but no one ever responded. I've tried several things including
    putting just the record set and dynamic select on it's own page
    with no other code on it. It still crashes DW. I also tried coding
    it myself by making a listmenu and modifying it so that the option
    value equals a PHP echo of a value. It crashed there too. Does
    anyone have a piece of code with a working dynamic select list that
    uses a record set that I could look at? That way I can see where
    I'm going wrong. All I'm trying to do is get a simple drop down
    select list of employee names so someone can choose their name to
    get commission. It's a one table, 2 fields (first & last name)
    record set.
    Using DW CS3, php & MySQL.,windows XP Pro
    Any help would be really appreciated!

    AthroughZ wrote:
    > I can't seem to get a dynamic select list to work in
    dreamweaver. It
    > completly crashes everytime I try adding it to my page.
    It looks as though you have a corrupt cache file. Follow
    troubleshooting
    step 4 in the following technote:
    http://www.adobe.com/go/tn_19105
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS4",
    "PHP Solutions" & "PHP Object-Oriented Solutions"
    http://foundationphp.com/

  • Dynamic select list: link to another page

    Hi
    Have following dynamic select list at the bottom in "product.php" page (www.dolls.com.sg)
    <div id="selectcat">
      <select name="Categories">
        <?php
    do { 
    ?>
        <option value="<?php echo $row_rsCategories['categoryName']?>"<?php if (!(strcmp($row_rsCategories['categoryName'], $row_rsCategories['categoryName']))) {echo "selected=\"selected\"";} ?>><?php echo $row_rsCategories['categoryName']?></option>
        <?php
    } while ($row_rsCategories = mysql_fetch_assoc($rsCategories));
      $rows = mysql_num_rows($rsCategories);
      if($rows > 0) {
          mysql_data_seek($rsCategories, 0);
       $row_rsCategories = mysql_fetch_assoc($rsCategories);
    ?>
      </select>
    My target is, whenever a visitor clicks on a category in the pull down menu, he is forwarded to the respective "categories.php" page.
    How can I do that?
    Thanks
    Helmut

    Change your code to this:
    <div id="selectcat">
    <form method="get" action="categories.php">
      <select name="Categories">
        <?php
    do { 
    ?>
        <option value="<?php echo $row_rsCategories['categoryName']?>">
        <?php echo $row_rsCategories['categoryName']?></option>
        <?php
    } while ($row_rsCategories = mysql_fetch_assoc($rsCategories));
      $rows = mysql_num_rows($rsCategories);
      if($rows > 0) {
          mysql_data_seek($rsCategories, 0);
       $row_rsCategories = mysql_fetch_assoc($rsCategories);
    ?>
      </select>
      <input type="submit" value="View Dolls">
    </form>
    </div>
    In categories.php, use $_GET['Categories'] to filter the recordset.

  • Default value dynamic select list

    Hi everybody,
    I have a question concerning dynamic select lists.
    I have a report of a table that shows some records. Each record has different versions of data. So when you click on a record you get to another page where you get some information about this record and where you can select the version of this information (with the help of a select list).
    The select list works fine and is defined dynamically as follows:
    select distinct a.name display_value,
    a.version_id return_value
    from cn_pl_version a,
    cn_pl_std_peplanung b
    WHERE a.version_ID = b.version_id AND
    b.pe_id = '&P6_HELP_PRODET.'
    order by a.version_id desc
    My problem is that when I click on a record I always get the report filled with the oldest version of the current record, so I always have to choose the newest version in the select list manually. I would prefer always to have the newest version in the report.
    The query for the report is as follows:
    select
    (select sum(stunden) from cn_pl_std_peplanung t02
    where abt_id = '10'
    and t02.pe_id = t1.pe_id
    and t02.version_id = t1.version_id
    and t02.idee_id = t1.idee_id) stunden_ir,
    (select name from cn_pl_version u01
    where u01.version_id = t1.version_id) Version
    from cn_pl_std_peplanung t1, cn_pl_projektelemente z1, cn_pl_version u1, cn_pl_projektidee s1
    where t1.version_id = '&P6_VERSION_WAHL.'
    and t1.pe_id = z1.pe_id
    and z1.pe_id='&P6_HELP_PRODET.'
    group by t1.pe_id, t1.version_id, t1.idee_id
    '&P6_VERSION_WAHL.' is the item of the select list
    '&P6_HELP_PRODET.' is the ID of the current record
    I'm not sure if you understood my problem, my english isn't the best...
    Thanks for any kind of help!!
    Patrick

    Hi Patrick,
    what value does you select list show, when you branch to the page? Is it the correct one?
    If not you should change your select list, that the correct version is selected as default. You can define a "default value" when you set the source of the element.
    Otherwise you can maybe set up an example application at http://apex.oracle.com.
    Best Regards
    chrissy

Maybe you are looking for