Setting default value in dynamic drop-down menu

Hi,
I created a simple drop-down menu that can be used to edit an
existing record or to create a new record.
When creating a new record, I'd like the drop-down menu to
display "Not specified" by default. Could anyone help me with this?
The "Not specified" option in the drop-down menu should refer
to record ID 11 in my database table entitled "names".
Here's what my code looks like so far.
The db queries:
<CFQUERY DATASOURCE="DATA" NAME="get">
SELECT *
FROM names
order by name
</CFQUERY>
<CFQUERY DATASOURCE="DATA" NAME="quo">
SELECT *
FROM quotes
WHERE quoteID = #quoteID#
</CFQUERY>
This part is for the existing database record:
<select name="frn_ID">
<cfoutput query="get">
<option value="#id#"<cfif id is quo.frn_ID>
selected</cfif>>#name#</option>
</cfoutput>
</select>
Here is where I'd like the ID with a default value of 11 to
be displayed:
<cfelse>
<select name="frn_ID">
<cfoutput query="get">
<option value="#id#">#name#</option>
</cfoutput>
</select>
</cfif>
Thank you for any help with this!
Luke

Thank you.
I added this line:
<CFSET ThisOne = 11>
and then edited the drop-down menu to appear like this:
<select name="frn_ID">
<cfoutput query="get">
<option value="#id#" <cfif ThisOne is ID>
selected</cfif>>#name#</option>
</cfoutput>
</select>

Similar Messages

  • Default values for dependent drop down menu

    Hi!
    I did create an insert record page that lets the user put in information using text fields. In addition the form has a dependent drop down menu for a category and then depending on the chosen category, the user is presented with choices in a second drop down menu for subcategories.
    The insert of the record itself works fine.
    The records are then listed in a table. A link to a details page should then list all fields of a chosen record. I have another form sporting them dependent drop down menus again. Since I retrieve a record from the database I would like to have the drop down menus default to the values stored in the database.
    But whatever I tried the menus always default to the respective first entries in each menu.
    I tried to use the "select value equal to" field in the "insert record" for the category and the "Default detail value" field in the dependent drop down item for the subcategory field.
    Any pointers anybody?
    Thanks in advance
    Juergen

    Hi there I cannot understand your request fully but I think I understand....
    I think I have done nearly exactly what you need
    I will try to explain
    for a start I am working on a art gallery site that has many different artists and many different paintings
    I am able to add a new artist and have that artist name appear automatically in a dropdown menu on my add painting form page so that when I add a new painting I do not have to type the arrtists name every time
    I am not sure this is what you need but I think maybe....
    (i have another site that displays different categories of jewellry... with a form that has same dropdown and can choose product category.... but the process is the same)
    the way I did it was to first create an 'artist_info' table in my database and an 'add artist page' pretty simple
    Then an painting_pnt table in my database and an 'add painting' page with a form that contains a dropdown menu that is dynamically populated from the artist_infotable... label from the artist_name field value from the artist_id field so the form uses two recordsets.......
    Then in my painting_pnt table I have a field that stores the artist_id
    So when I add a new artist..... the name automatically appears in the dropdown menu when I add a new painting I choose the artist name and then later I can filter recordsets on my detail pages using the id_artist....
    there is a lot more to it as well but that should get you started
    I hope this helps
    If you have any questions at all I will try to explain better
    takiteasy

  • How to set default value for a drop down in Mobile Application Studio

    Hi,
    We have a requirement in which for a drop down - Transaction type (Activities), the value should be defaulted to 'Visit' and the Activity Category should be 'Sales Visit'. I tried debugging the code and got the piece of code where this value is referred, but i'm unable to find out the location where this value is picked from. Also while opening up the properties corresponding to this, there is a default value tab in the properties pane. I tried by giving this default value, but didn't work. When I'm trying to revert the changes i've made in the property, it is showing up an error.
    Any pointers on this would be of great help.
    Thanks in advance,
    Rasmi.

    Hi Rasmi,
    You can default the process type field of BOACTIVITY by different ways-
    1.In BOL, business object BOACTIVITY loaded event, check the parameter bIsNew and then default the value of process type if you want it only for new activities.
    Other attributes currently get defaulted in the attributechanged event of BOACTIVITY where field is processtype.So if processtype is defaulted it will try to default other attributes based on that.It will pick values from the customizing maintained in SPRO->CRM->Transactions->Basic Settings->Define Transaction Type->Customizing Header.
    2.You can also do defaulting in the UI.If you want to default one field based on a value selected for drop down, then write the code in the onselected2 event of the drop down.
    In your specific case, best way is to use option 1.
    Regards
    Vivek

  • How to set a Default Value in the drop down on Account Creation ?

    Hi,
    i have to set a default value in the drop down as soon as a User in a particular business role clicks on New Account. I have written the following code in do_prepare_output method. But this code is executed in the 2nd server round trip after entering some value or pressing enter. so i am not getting as soon as user clicks on the New Account.
    How to set that default value when user clicks on New Account ? and where should i code ?
      IF lv_icwc_profile = 'ZCSALESPRO' or lv_icwc_profile = 'Z_SALESPRO' .
      try.
                  lr_entity ?= me->typed_context->header->collection_wrapper->get_current( ).
                  lv_current = lr_entity->create_related_entity(
                                                  iv_relation_name = 'BuilRolesRel' ).
                                 lv_current->set_property(
                                    iv_attr_name = 'PARTNERROLE'
                                    iv_value     =  'BUP002' ).
                   CATCH cx_sy_ref_is_initial cx_sy_move_cast_error
                   cx_crm_genil_model_error.
                   return.
            ENDTRY.
    Thanks and Regards
    Raman Khurana

    Hi,
    I have some idea abt it, it is also used in account life cycle.
    Please refer SAP note 1097651, Defaulting a life cycle stage.
    Let me know if useful.
    rgds,
    Vinay

  • Dynamic Drop-Down Menu Solution

    Hi All,
    After spending a lot of time trying to find a good solution for a dynamic drop-down menu, I end up writing my own.
    The solution is for a list of items, having ITEM as the primary key of the table and ITEMDESCRIPTION as the list of options for the user to select.
    The steps are:
    1) JavaBean to return a ResultSet;
    2) A custom tag to build a HTML SELECT;
    3) A .tld file to declare the custom tag;
    4) web.xml where the custom tag mapping resides;
    4) A JSP to illustrate how to call the custom tag;
    Hoping this will save lots of time to others
    Cheers
    Trajano Roberto
    1) Custom tag
    package com.amstras.maintenance.customtags;
    * Title: erp
    * Description:
    * Copyright: Copyright (c) 2001
    * Company: amstras
    * @author Trajano Roberto
    * @version 1.0
    import javax.servlet.jsp.tagext.*;
    import javax.servlet.jsp.*;
    import java.sql.*;
    import com.amstras.maintenance.javabeans.*;
    public class listitemmaster extends TagSupport {
    private itemmaster itemmaster = new itemmaster();
    private ResultSet rs = null;
    private String parametername = null;
    public int doStartTag() throws JspException {
    try {
    itemmaster.connect();
    rs = itemmaster.listitemmaster();
    pageContext.getOut().print( "<select name = \"" + parametername + "\">" );
    catch ( Exception e ) {
    throw new JspTagException( e.getMessage() );
    finally {
    return EVAL_BODY_INCLUDE;
    public int doAfterBody() throws JspException {
    try {
    if( rs.next() ) {
    pageContext.getOut().print( "<option value = \"" + rs.getString( "ITEM" ) + "\">" + rs.getString( "ITEM" ) + "&nbsp&nbsp&nbsp" + rs.getString( "ITEMDESCRIPTION" ) + "</option>" );
    return EVAL_BODY_AGAIN;
    else {
    pageContext.getOut().print( "</select>");
    itemmaster.disconnect();
    return SKIP_BODY;
    catch ( Exception e ) {
    throw new JspTagException( e.getMessage() );
    public void setParametername( String sPARAMETERNAME ) {
    parametername = sPARAMETERNAME;
    2) JavaBeam where the method to return the ResultSet resides
    public ResultSet listitemmaster() throws SQLException, Exception {
    if( con != null ) {
    try {
    String sSQL = null;
    sSQL = " SELECT ITEM, ITEMDESCRIPTION FROM ITEMMASTER ORDER BY ITEM ";
    ps = con.prepareStatement( sSQL );
    rs = ps.executeQuery();
    catch( SQLException sqle ) {
    error = "SQLException: list item master failed possible record does not exist. ";
    error += sqle.toString();
    throw new SQLException( error );
    catch( Exception e ) {
    error = "An exception occured while listing item master record. ";
    error += e.toString();
    throw new Exception( error );
    finally {
    return rs;
    else {
    error = "Exception: Connection to database was lost.";
    throw new Exception( error );
    3) extract from the .tld file where the custom tag is declared
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
    "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
    <tlib-version>1.0</tlib-version>
    <jsp-version>1.2</jsp-version>
    <short-name>itemmaster</short-name>
    <description>item master</description>
    <tag>
    <name>viewitemmaster</name>
    <tag-class>com.amstras.maintenance.customtags.viewitemmaster</tag-class>
    <attribute>
    <name>item</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    <description>item</description>
    </attribute>
    </tag>
    <tag>
    <name>listitemmaster</name>
    <tag-class>com.amstras.maintenance.customtags.listitemmaster</tag-class>
    <attribute>
    <name>parametername</name>
    <required>true</required>
    <rtexprvalue>true</rtexprvalue>
    <description>parameter name</description>
    </attribute>
    </tag>
    </taglib>
    4) web.xml mapping for the custom tag
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <servlet>
    <servlet-name>debugjsp</servlet-name>
    <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
    <init-param>
    <param-name>jspCompilerPlugin</param-name>
    <param-value>com.borland.jbuilder.webserverglue.tomcat.jsp.JasperSunJavaCompiler</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>debugjsp</servlet-name>
    <url-pattern>*.jsp</url-pattern>
    </servlet-mapping>
    <taglib>
    <taglib-uri>erp/maintenance/itemmaster</taglib-uri>
    <taglib-location>/WEB-INF/itemmaster.tld</taglib-location>
    </taglib>
    </web-app>
    5) JSP call to the custom tag
    <%@ page errorPage="billofmaterialErrorPage.jsp" %>
    <%@ taglib prefix = "im" uri = "erp/maintenance/itemmaster" %>
    <html>
    <head>
    <title>CSI - ERP - add bill of material</title>
    <link rel = "stylesheet" href = "/erp/erpstyle.css">
    </head>
    <body>
    <h1>Add Bill of Material</h1>
    <form action = "billofmaterialcontroller.jsp" method="post">
    <table>
    <tr>
    <td align = "LEFT"><font color = blue>Parent Item:</font></td>
    <td><im:listitemmaster parametername = "parameter1" /></td>
    </tr>
    <tr>
    <td align = "LEFT"><font color = blue>Child Item:</font></td>
    <td><im:listitemmaster parametername = "parameter2" /></td>
    </tr>
    <tr>
    <td align = "LEFT"><font color = green>Qty Per:</font></td>
    <td><input type = "text" name = "parameter3" size = "5" maxlength = "5" /></td>
    </tr>
    </table>
    <p>
    <input type="submit" name="submit" value="Add">
    <input type="reset" value="Reset">
    </p>
    <input type = "hidden" name = "Action" value = "Add">
    </form>
    Click <a href = "billofmaterial.jsp">here</a> to go back.
    </body>
    </html>

    This is a very helpful execellent sample code.
    However, If I'm using Model-View-Control approach, then what's the way of applying these codes
    to each indivisual file? Say, I have 20 files and only 4 of the 20 need to be treated as they like
    to have drop down menu in particular column(s)??? How could the custom tag be applied as the
    controller tells the view to present these special treat? or it is not possible (I have to treat each
    file, filtered by controller -- one by one as it encounters the special need)?
    Thx, Tzae

  • Can we set default value to dynamic parameter?

    <font size="3"><font face="Times New Roman">Hi,</font></font><font size="3"><font face="Times New Roman"><span> </span>I am using BO XI and CR XI.</font></font><font size="3"><font face="Times New Roman"><span> </span>I want to set default value for dynamic cascading parameters as &#39;ALL&#39; when i open report in BO Xi INFO view.</font></font><font size="3"><font face="Times New Roman">I think is not possible.</font></font><span style="font-size: 12pt; font-family: &#39;Times New Roman&#39;">can anybody know solution for this. </span>

    Hi,
    I cannot imagine why you would want to do this. The nextvalue from sequence would just the next available number from the sequence, the numbers wouldn't necessarily even be sequencial. So not very useful as a parameter to a report.
    Rod West

  • --urgent Can I use table data to create a dynamic drop down menu?

    Hi,
    I am asked to investigate the possibility of using APEX to create a table driven dynamic drop down menu? The deadline is tomorrow but I have spent quite a bit of time but still have not any clue. Can any one have such experience to point me a way to focus on?
    Many thanks.
    Jennifer

    Thanks you very much for the help Kevin.
    Currently my company is using htp.p style to create web app and using the dynamic menu in a similar way as you explained. Now they want to move to Apex and still keep dynamic menu functionality. After reading your response and research I have done I think I can embed it into Apex application by creating the similar table and PL/SQL package and let Apex to call the PL/SQL package when the application is first called. However may I ask you a question about how to call such pl/sql procedure in Apex? .
    The current application has the following URL, from which the procedure pkg_main.print_menu is called and html home page with dynamic menu is displayed.
    Http://app server:1234/pls/applicationname/pkg_main.print_menu?p_new_window=N
    BUT what about the Apex? The Apex URL format is like the following, where 11563 and 1 is application id and page number. Assume that 1 is home page, but HOW the procedure is called, from WHERE?
    http://apex.oracle.com/pls/apex/f?p=11563:1:3397731373043366363
    Jennifer

  • Dynamic Drop Down Menu from an Access Database

    Hello Everyone,
    I am user Adobe Designer 7 to create a fillable PDF, and I would like to get the options for a drop down menu from my MS Access database. Basically I would like to populate the drop down menu with the names in the Access database. There i Have a table called PhoneNumbers and it contains the names of all the people I want to appear in the drop down menu that I just created.
    This is what I did:
    I created a drop down menu and then I clicked on Object > Binding > under "Default Binding (Open, Save, Submit)" choose "New Data Connection"
    then connect to the database using a fileDSN. I opened the table where with the "names" column (PhoneNumbers)
    and under the "Query," option, I wrote:
    select * from PhoneNumbers
    Then it gave me all the fields from the table and I dragged the "Last name" field over the drop down menu. I will need to find a way to get the "First Name" field to join the Last Name field to create one name that looks like this: Hill, Angie
    The problem is that even though it shows the name from the Access database, it does not give me a list of all the names when I open the form in Reader 7...
    No matter how much I click that drop down arrow, the name does not change...
    It's almost as if it gets to the databse and gets the data from the database, but it cannot loop through it...
    It's almost as if it's missing the code to loop through it...
    Why is this? Any ideas how to fix it so it gives me a list of ALL the names, when I click on the drop down button?
    After that, how can I add the first name to it?
    The form would look like this:
    Angie H. 202 641 2055
    Right now it does look like that, but I cannot change to another name when I click the drop down menu. For the code to be working when I change to another name, the phone number also changes to the phone number of that person:
    Barry S. 703 555 1258
    The name is in a drop down menu, the phone number is in a textbox.
    Can you help me with this?

    ANGELA,<br /><br />Well, the good new is that you are not far off...What you need is to insert the following code using Java Script under the Initialize function.  Just replace the Connection name,  The Hidden Value, and the Display Text with your information.  This is a function is 8.0 but will work with 7.0<br /><br />/*     This dropdown list object will populate two columns with data from a data connection.<br /><br />     sDataConnectionName - name of the data connection to get the data from.  Note the data connection will appear in the Data View.<br />     sColHiddenValue      - this is the hidden value column of the dropdown.  Specify the table column name used for populating.<br />     sColDisplayText          - this is the display text column of the dropdown.  Specify the table column name used for populating.<br /><br />     These variables must be assigned for this script to run correctly.  Replace <value> with the correct value.<br />*/     <br /><br />var sDataConnectionName = "DataConnection";     //     example - var sDataConnectionName = "MyDataConnection";<br />var sColHiddenValue = "CAT_Corp_SeqNo";               //     example - var sColHiddenValue = "MyIndexValue";<br />var sColDisplayText = "CAT_Corporate";               //     example - var sColDisplayText = "MyDescription"<br /><br />//     Search for sourceSet node which matchs the DataConnection name<br />var nIndex = 0;<br />while(xfa.sourceSet.nodes.item(nIndex).name != sDataConnectionName)<br />     {<br />          nIndex++;<br />     }<br /><br />var oDB = xfa.sourceSet.nodes.item(nIndex);<br />oDB.open();<br />oDB.first();<br /><br />//     Search node with the class name "command"<br />var nDBIndex = 0;<br />while(oDB.nodes.item(nDBIndex).className != "command")<br />     {<br />          nDBIndex++;<br />     }<br /><br />//     Backup the original settings before assigning BOF and EOF to stay<br />var sBOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("bofAction");<br />var sEOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("eofAction");<br /><br />oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayBOF", "bofAction");<br />oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayEOF", "eofAction");<br /><br />//     Clear the list<br />this.clearItems();<br /><br />//     Search for the record node with the matching Data Connection name<br />nIndex = 0;<br />while(xfa.record.nodes.item(nIndex).name != sDataConnectionName)<br />     {<br />          nIndex++;<br />     }<br />var oRecord = xfa.record.nodes.item(nIndex);<br /><br />//     Find the value node<br />var oValueNode = null;<br />var oTextNode = null;<br />for(var nColIndex = 0; nColIndex < oRecord.nodes.length; nColIndex++)<br />     {<br />          if(oRecord.nodes.item(nColIndex).name == sColHiddenValue)<br />          {<br />               oValueNode = oRecord.nodes.item(nColIndex);<br />          }<br />          else if(oRecord.nodes.item(nColIndex).name == sColDisplayText)<br />     {<br />          oTextNode = oRecord.nodes.item(nColIndex);<br />     }<br />}<br /><br />while(!oDB.isEOF())<br />{<br />      this.addItem(oTextNode.value, oValueNode.value);<br />       oDB.next();<br />}<br /><br />//     Restore the original settings<br />oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sBOFBackup, "bofAction");<br />oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sEOFBackup, "eofAction");<br /><br />//     Close connection<br />oDB.close();

  • How to remove values from a drop down menu with personalizations

    I have been unable to find any examples of removing values from a dropdown menu using forms personalizations. We have a specific responsibility that we would like to limit the actions that they can carry out on the person form. I have tried setting default values, setting the object to update_allowed = false, and have been unable to come up with a solution. The examples I have found do not show this type of personalization so I am unsure if it can be done. If anyone has done a personalization like this, please post the steps to reproduce or a link to an example. Thanks.

    DineshS wrote:
    Which dropdown menu you want to customized ?The specific menu we would like to customize is the 'Action' menu on the Person form that usually contains 'Create Employment' and so on. We have a specific recruiter responsibility that we would like to limit to 'Create Applicant'. I have been unable to come up with a combination of steps in personalizations that sets that value in the dropdown and allows it then be unchangeable. If you have any suggestions, please let me know. I would prefer not to create a custom form but without personalizations, I might have to.

  • Filter query based on a value from a drop down menu

    I am using ADFBC/JDev 10.1.3/ADF-faces (JSPX)
    I would like to display a table of data based on a view object and have a drop down menu of values that the user can select from which would filter the table of data. The filter would be applied to a field in the VO. For example, have a JSPX page that shows all employees and have a drop down menu that filters the employees by a specific department with an option to show all departments too in the drop down. I'm not sure if Steve Muench's example #76 (http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html) would serve as a basis for this requirement or not.
    Can anybody give me high level guidance on how to do this? Both declaratively and programmatically would be great.
    Thanks,
    Quoc

    I can't get the JSPX page to display the correct data. It's displaying the entire VO and when you try to select Yes or No or All from the drop down menu, it just changes the Active Flag column in the table to whatever you select for the first row only and still displays the rest of the rows in the VO.
    Here's my JSPX code:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces"
              xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
              xmlns:cust="http://xmlns.oracle.com/adf/faces/customizable">
      <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
                  doctype-system="http://www.w3.org/TR/html4/loose.dtd"
                  doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <afh:html>
          <afh:head title="showEmployees">
            <meta http-equiv="Content-Type"
                  content="text/html; charset=windows-1252"/>
          </afh:head>
          <afh:body>
            <af:messages/>
            <h:form>
              <af:panelForm>
                <af:selectOneChoice value="#{bindings['bind_active_flag1'].inputValue}"
                                    label="#{bindings['bind_active_flag1'].label}">
                  <f:selectItems value="#{bindings['bind_active_flag1'].items}"/>
                </af:selectOneChoice>
                <af:commandButton actionListener="#{bindings.ExecuteWithParams.execute}"
                                  text="ExecuteWithParams"
                                  disabled="#{!bindings.ExecuteWithParams.enabled}"/>
              </af:panelForm>
              <af:table value="#{bindings.EmployeesView.collectionModel}" var="row"
                        rows="#{bindings.EmployeesView.rangeSize}"
                        first="#{bindings.EmployeesView.rangeStart}"
                        emptyText="#{bindings.EmployeesView.viewable ? 'No rows yet.' : 'Access Denied.'}">
                <af:column sortProperty="EmployeeId" sortable="true"
                           headerText="#{bindings.EmployeesView.labels.EmployeeId}">
                  <af:outputText value="#{row.EmployeeId}">
                    <f:convertNumber groupingUsed="false"
                                     pattern="#{bindings.EmployeesView.formats.EmployeeId}"/>
                  </af:outputText>
                </af:column>
                <af:column sortProperty="FirstName" sortable="true"
                           headerText="#{bindings.EmployeesView.labels.FirstName}">
                  <af:outputText value="#{row.FirstName}"/>
                </af:column>
                <af:column sortProperty="LastName" sortable="true"
                           headerText="#{bindings.EmployeesView.labels.LastName}">
                  <af:outputText value="#{row.LastName}"/>
                </af:column>
                <af:column sortProperty="ActiveFlag" sortable="true"
                           headerText="#{bindings.EmployeesView.labels.ActiveFlag}">
                  <af:outputText value="#{row.ActiveFlag}"/>
                </af:column>
              </af:table>
            </h:form>
          </afh:body>
        </afh:html>
      </f:view>
    </jsp:root>Here's the bindings page:
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
                    version="10.1.3.41.57" id="showEmployeesPageDef"
                    Package="view.pageDefs"
                    MsgBundleClass="view.pageDefs.showEmployeesPageDefMsgBundle">
      <parameters/>
      <executables>
        <iterator id="EmployeesViewIterator" RangeSize="10" Binds="EmployeesView"
                  DataControl="AppModuleDataControl"/>
        <variableIterator id="variables">
          <variableUsage DataControl="AppModuleDataControl"
                         Binds="EmployeesView.variablesMap.bind_active_flag"
                         Name="EmployeesView_bind_active_flag" IsQueriable="false"/>
        </variableIterator>
        <iterator id="DropDownIterator" RangeSize="-1" Binds="DropDown"
                  DataControl="AppModuleDataControl"/>
      </executables>
      <bindings>
        <table id="EmployeesView" IterBinding="EmployeesViewIterator">
          <AttrNames>
            <Item Value="EmployeeId"/>
            <Item Value="FirstName"/>
            <Item Value="LastName"/>
            <Item Value="Email"/>
            <Item Value="PhoneNumber"/>
            <Item Value="HireDate"/>
            <Item Value="JobId"/>
            <Item Value="Salary"/>
            <Item Value="CommissionPct"/>
            <Item Value="ManagerId"/>
            <Item Value="DepartmentId"/>
            <Item Value="ActiveFlag"/>
          </AttrNames>
        </table>
        <action id="ExecuteWithParams" IterBinding="EmployeesViewIterator"
                InstanceName="AppModuleDataControl.EmployeesView"
                DataControl="AppModuleDataControl" RequiresUpdateModel="true"
                Action="95">
          <NamedData NDName="bind_active_flag" NDType="java.lang.String"
                     NDValue="${bindings.EmployeesView_bind_active_flag}"/>
        </action>
        <attributeValues id="bind_active_flag" IterBinding="variables">
          <AttrNames>
            <Item Value="EmployeesView_bind_active_flag"/>
          </AttrNames>
        </attributeValues>
        <list id="bind_active_flag1" IterBinding="EmployeesViewIterator" StaticList="false"
              ListOperMode="0" ListIter="DropDownIterator" NullValueFlag="1"
              NullValueId="bind_active_flag1_null">
          <AttrNames>
            <Item Value="ActiveFlag"/>
          </AttrNames>
          <ListAttrNames>
            <Item Value="Value"/>
          </ListAttrNames>
          <ListDisplayAttrNames>
            <Item Value="Description"/>
          </ListDisplayAttrNames>
        </list>
      </bindings>
    </pageDefinition>Any ideas?

  • I'm using Firefox 5.0 and I cannot type a value into a drop down menu.

    There is a webpage with a drop down menu box.
    When I open the page with IE, I can choose from the listed values OR type my own value,
    When I open the page with Firefox, I can only choose from the listed values BUT CANNOT type my own value.
    The page is on my company and so I am sorry that I cannot show it to you guys at the moment.
    Is there anything I can try modifying so that I can make the box typable?

    Go to Options > Advanced > General and uncheck the "Use hardware acceleration when available"
    Hope this will solve your problem :)

  • Utilizing Custom Tags to create a dynamic drop-down menu

    Hi to all,
    I am looking to create a dynamic .jsp to display to the user a drop-down list. This list is based upon data in database. The data will be passed as an application bean. This list will vary depending on application criteria.
    I would like to use a custom tag to create the drop-down menu. I am attempting to keep the .jsp page strictly .jsp, no Java. (I have been successful in creating & using an iterator tag.)
    Can someone point me in the right direction, or give me an example?
    thanks!
    Susie in Virginia Beach

    What exactly is it you don't know how to do? Write a custom tag or write database access code?

  • How to make dynamical drop down menu?

    I am trying to make a drop down menu which is dynamical in dreamweaver? is there a way to do that? i am not good at programming.

    Here are links to a couple of tutorials for this:
    http://www.roscripts.com/Building_a_dynamic_drop_down_menu-216.html
    http://www.finalwebsites.com/tutorials/dynamic-navigation-list.php

  • How to set a default value for a drop down list box and then apply cascading based on the default value in Infopath 2010.

    Hello Everyone
    I have two drop downs. Both are coming from look up fields from two lists. i want to set a default value(first list item) for the first drop down list box and then apply cascading based on the default value for the next drop down list box. I found one article(http://www.bizsupportonline.net/infopath2010/display-first-item-drop-down-list-box-infopath-2010.htm)
    where in i can set a default value but i can't apply cascading based on that default value. Any suggestions would be highly appreciated.
    Thanks
    Ramanjulu Naidu N

    Hey Ramanjulu,
    Take a look at the below article which I believe will answer your question.
    http://basquang.wordpress.com/2010/03/29/cascading-drop-down-list-in-sharepoint-2010-using-infopath-2010/
    Daniel Christian (MCTS)

  • How to make default value in a drop down list

    Hi,
          I have created a drop down list using Selection-Screen code. I have three values in it. I would like to make one of the option as a default value. How to achieve it?
    I am working on module pool program. I have few screens as a part of my program. I have created print button on tool bar of one screen but that print button is appearing on the other screens too. How to avoid it?
    Help would be appreciated...
    Thanks
    Edited by: mohammed ibrahim on Oct 10, 2008 8:43 PM

    1) let drop down box be g_dd.
      if g_dd is initial.
      g_dd = option2.
      endif.
    2)
    by default same pf-status is used by all the screens in the same program
    if sy-dynnr = 'screen_no'. " for screens for which you do not want button to come
    set pf-status 'abc' excluding 'fcode_of_button'
    endif.
    or
    data: git_fcode type sy-ucomm with header line.
    git_fcode = 'fcode_of_button'.
    append git_fcode.
    if sy-dynnr = 'screen_no'. " for screens for which you do not want button to come
    set pf-status excluding git_fcode
    endif.
    Edited by: Amit Gupta on Oct 11, 2008 11:36 AM

Maybe you are looking for