Catching drop-down selection

I have a drop down (defines with Statuc text) plus 2 fills-ins on a page.
I want to pre-populate the fill=ins with ceratin calvulated values based on the secxetion in the drop down. I wqould like to do this as soon as the drop-down is selected.
Is this possible? Any recommendatinos on approaches, or location on where to look for more info?
_mike                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Hello,
You will need to use javascript on the items form attributes something like.
onchange="SetValue(this,'someitem')"
these examples do something like that http://htmldb.oracle.com/pls/otn/f?p=11933:65 but instead of enabling and disabling you'll just set it to set values.
Carl

Similar Messages

  • Is there a way to create form fields to tab into and type and or drop down selection fields in pages as you can with microsoft word?

    is there a way to create form fields to tab into and type and or drop down selection fields in pages as you can with microsoft word?

    No

  • Performing Calculation based on drop down selection

    I need help with simple calculation. Im building an estimate form, and have the fields:
    "Total"  (manually entered total amount)
    "GrandTotal" (automatically calculates Total*1.07 to add 7% NJ sales tax)
    Next I have 3 drop down boxes with payment options, and then text fields to receive $$ amounts based on drop-down selection:
    "1st Payment Option" (options: 50% down, 100% paid in full, custom entry)
    "2nd Payment Option" (options: 50% at completion, 25% in 14 days, custom entry)
    "3rd payment Option" (options: 25% completion, custom entry)
    For whichever options are selected in the drop-downs, i'd like the text fields to auto-fill.
    (Text fields are titled "1st Payment", "2nd Payment", "Final Payment".
    So how do I take the value from "GrandTotal" and get it to automatically be calculated by 50%, 25% or whatever and be filled into separate text fields?

    It can be done with proper form design. You can use the any of the 3 calculation options but some may require some extra form fields and you can specify a numeric value to a drop down option that is different from the displayed text.

  • Select customer name from a drop down Select List or be able to type it in

    Hi,
    Is there a way to allow my users to have an option to either select a customer name from a drop down Select List or be able to type it in...
    Thanks in advance

    This is an excellent option for another application but in this one I would prefer a drop down list to allow my users to see all the orders (to pick from the list) or type it in if they can't find it in the list...
    I know how to create a drop down select list but not sure what to do to allow users to be able to manually type in as well...
    Thanks

  • In Ver 4.0, what happened to the drop down selections for previous windows for the current tab?

    In the previous versions of Firefox, in any open tab that had multiple windows open, i. e. from a search where you would go to many different windows, there was a drop down selection to the right of the "back/forward" button that would let you select prior windows ... and always the first one. That is no longer there. It was extremely helpful and I used frequently. Can you add it?

    You can get the drop down list by either right-clicking on the back/forward buttons, or holding down the left button until the list appears.
    If you want the drop-down arrow you can add it with the Back/forward dropmarker add-on - https://addons.mozilla.org/firefox/addon/backforward-dropmarker

  • Drop down selection menu stopped working on Firefox 16

    Hi there,
    I have a drop down selection menu (<select></select>) on my website that triggers an ajax function to display a specific table using jquery's datatable. Prior to firefox 16, the selection menu worked fine. I clicked on the menu, and the options showed up. However, ever since I upgraded to firefox16, the selection menu doesn't work as expected anymore :S
    Here's the thing, first time I clicked on an option, selection menu expanded, and I can click on any option to trigger the table change function. Everything is working fine till that point.
    It's when I clicked on the selection menu the second time, the selection menu stopped working. It didn't even expand and show any options. I checked with firebug (No js error). I tried safemode/hardware acceleration option I read from another thread, it doesn't work either.
    I checked with the firebug console log and I noticed the click event was being triggered whenever I clicked on it, but my selection menu somehow just won't expand (The options are in the html). I checked with all the other browsers as well, and everything seems to be fine (Even the previous version of FF).
    Strangely enough, when I click on any other elements on the website and then go back to clicking that selection menu, the selection menu seems to have reset to my 1st step's state. (It stopped expanding as soon as I chose an option though and I will have to click on another element again.)
    Chuck

    See also [[/questions/935870]]

  • How do i populate one field based upon a drop down select from another field?

    Here is what I am trying to do:
    Field 1 is a drop down selection list that requires a user to make a mandatory selection which in this case is a list of apartment complexes. What I am trying to accomplish is once that user makes a selection from the drop down list (Field1) that it will populate Field 2 (standard txt) with the corresponding apartment complexes address.
    So I pick Talan Apartments from field 1, it would populate field 2 with Talan Apartments address. I tried messing around with calculation scripts but I'm fighting a loosing battle here. Some help would be greatly appreciated!

    Hi,
    Here is a sample: https://acrobat.com/#d=Hi0ZwVgVB1PWbxc6OJ0z4A where the script in the exit event of the dropdown sets the value of the address object.
    Good luck,
    Niall

  • How do I configure a dynamic table with Data-Drop Down selections to store separate values?

    I am attempting to use LiveCycle to create an Order Form that uses an ODBC to a SQL database. When a user makes a selection, a separate column in the table references the "Item #" associated in the SQL table, and generates a corresponding barcode.
    My problem is that when I select an Item from the drop down list, all the items in the table change. What am I missing here to separate the rows as different line items? I tried adding a [*] to the end of the connection string, and that allows me to select different options but does not generate the "Item #" or "Barcode" field.
    The screenshot below shows the basic form. When I select any of the data drop downs, all of the Items change.
    I used the auto generated script for the "Add Row +" button shown below. Is this my issue? Or do I need to alter the way I'm setting up the Data Binding in for my Data Drop Down?
    this.resolveNode('Table1._Row1').addInstance(1);
    if (xfa.host.version <8) {
      xfa.form.recalculate(1); }

    package pruebadedates;
    import java.sql.*;
    * @author J?s?
    public class ClaseDeDates {
        /** Creates a new instance of ClaseDeDates */
         * @param args the command line arguments
        public static void main(String[] args) {
            java.sql.Date aDate[] = null;       
            Connection con = null;
            Statement stmt = null;
            ResultSet rs = null;
            try{
                Class.forName("com.mysql.jdbc.Driver").newInstance();
                con = DriverManager.getConnection("jdbc:mysql://localhost/pruebafechas", "root", "picardias");
                    if(!con.isClosed()){
                    stmt = con.createStatement();
                    stmt.executeQuery ("SELECT dates FROM datestable");
                    rs = stmt.getResultSet();
                        while (rs.next())
                        aDate[] = rs.getDate("dates");
            catch(Exception e)
               System.out.println(e);
            //System.out.println(aDate);     
    }Hi, There is my code and the errors that I get are:
    found : java.sql.Date
    required: java.sql.Date[]
    aDate = rs.getDate("dates");
    Actually I have No idea as How to get a Result set into an ArrayList or Collection. Please tell me how to do this Dynamically. I have like 25 records in that Database table, but they will grow, so I would really appreciate to know the code to do this. I suspect my problem is in the bolded part of my code.
    Thank you very much Sir.

  • Drop down selection is not refreshing the page data correctly

    I have a drop down menu for a CREATE DATE. The record is based on a Identification ID. This identification ID can be in our system for multiple CREATE DATES. The CREATE DATE drop down is populated by checking how many different CREATE DATES there are for a particular identification ID.
    The last identification ID looks great. It populates all the fields. However if you select an older CREATE DATE, the page does not get populated with that CREATE DATES data. The whole page even looks different. It looks like an older version of the page before I added all the new fields.
    What is causing the older CREATE DATES not to look like the current create date.
    Please let me know if you need any additional information. Thank you!!
    Pattibz

    Thank you for your reply. Here are some details. Please let me know if I am not giving the information you need.
    One page item called CREATE_DATE displayed as a Select LIST with submit. The source type is a database column called ID_IDENT. The ID_IDENT is just a
    The List of Values is: Named LOV is the Select Named LOV. The list of values definition is a query against a table in our database:
    select CRE_DT, ID_IDENT from IDENT_TABLE where UNIQ_ID = :P3_UNIQ_ID
    ORDER BY CRE_DT DESC
    This is the date on which the ID_IDENT data was created. The date is displayed in a pull down menu, which allows you to select from a list of available "as of" dates when viewing the data. Only data on the most recent ID_IDENT record may be manually altered.
    I have a UNIQ_ID = '34587443'. It acutally has records in the database with that UNIQ_ID. The only difference is the create date. On record of 345778 was done on 10/1/2008 and the current date 10/13/2008.
    I see these two dates in the CREATE_DATE pull down menu. This is fine. The drop down orders the dates by DESC so I have the lastest date on top fo the pull down.
    If I want to pick the date of 10/1/2008, I need go into the web page, open the Create Date pull down and select the older date.
    When I pick the older date 10/1/2008, the page does not look the same as the defaul tor oldest time date and numbers.
    The page is different and most of the data on the webpage is there.
    What should have happened is that I choice the newer date from the drop down, the page refreshes with the data from 10/1/2008
    and all the parameters are displayed from the date of 10/1/2008. It isn't only part of the fields are being populated and the page itself doesn't refresh to the look of the original page. Thank you.
    Edited by: pattibz on Sep 12, 2008 11:15 AM

  • Different actions based on different drop down selection

    Hi,
    I am new to WebDynpro so still getting to used to the differences with what I am used to. My question is this:
    Is it possible to create a drop down list (by key) in a top view that allows the user to display one of three views in the bottom view? I know it is possible if I add a button, but I want it to look like one form so that the user is unaware of the difference. The "logical" way to me would be to have an action created for each option in the drop down list, but this does not seem possible. Any suggestions on how I could do this?
    Thanks,
    Helen

    As already explained by other posters, this is possible:
    Define an action with a parameter "selectedKey" of type string.
    Bind the DropDownByKey.onSelect event to this action.
    Map the event parameter "key" to the action parameter "selectedKey" by writing this line of code inside method wdDoModifyView():
    if (firstTime)
      IWDDropDownByKey dd = (IWDDropDownByKey) view.getElement("<ID of your drop-down>");
      dd.mappingOfOnSelect().addSourceMapping
        "key", /* event parameter name, see JavaDoc */
        "selectedKey" /* action parameter name */
    The effect of this mapping is that at runtime, the action handler parameter "selectedKey" contains the key that has been selected from the drop-down list.
    In the action handler, you can navigate to the view that corresponds to the selected key by calling the outbound-plug to this view. These firePlug* methods will be generated by the framework, if you have defined the corresponding navigation links in the view modeller.
    But: I would not use at all a drop-down list to switch views because this will not match most user's expectation. Links are more appropriate to indicate navigation to other views.
    Armin

  • Generic service issue-need to text value on drop down selection

    Hello,
    Below given is the problem scenario.
    I have a dropdown box, on the selection of which values should be filled to the next drop down box.
    It is working perfectly using generic service. When the second drop down box is selected, certain
    values should be shown on the screen. But the values are not appearing on the display texts.
    Let me know the possible causes.
    Thanks,
    Aravind

    solved

  • Drop down selection for a column in Table Control

    Hello,
    I have a table control where data is displayed. The user can fill data in one of the column and save. We want to have a drop down in that column where user can select a value. This column is a qunatity field.
    Please guide how it can be done.
    RR

    In SE51 screen editor, double-click on the editable field and set the dropdown listbox at listbox. As I don't think that you have domain value or table value for this field, set the field value list to "A" from program.
    Then in the PBO use the FM VRM_SET_VALUES to fill the list of allowed values. do this in a module called in the LOOP AT WITH CONTROL which fills the table control from the program data. (use a name like TC_XXXX_CHANGE_FIELD_ATTR)
    I'm not sure SE51 will allow you to use a quantity field in a listbox, so use a character field (check also right justified box on dynpro field attrinutes window), in VRM_SET_VALIUES parameters and in initial filling of the screen field use a WRITE xx UNIT yy to fill the screen field. Then a MOVE should perfect correctly when filling actual database/abap field by a move statement.
    Regards,
    Raymond

  • Customizing Drop Downs, Selection Widths larger than drop down box.

    I have a drop down menu that needs to be a certain width and, in the end, needs to contain a 5 digit value. But, that value is bound to a description, and I want the users to be able to select based on description.
    It's a data drop down, so it has the premade Javascript already and it has display and value bindings to an SQL database, so most of it is set up already, I just need two things:
    How can the selection list that appears be larger than the actual drop down box, so that it accomodates the descriptions instead of the numeric values?
    Can I cause the box to fill with the "value" instead of the "display text" after the description selection has been made?

    The width of the DD is set at design time. Not sure if you can change the width after the form has been rendered. If you can it will be complicated to cycle through each item in the list to get the right length.
    You can have the DropDown display description but submit or report the numeric values. Once that is set it cannot be changed. You can get either value back programatically but once it is set you cannte change it dynamically.

  • How to disable certain text fields in second tab based on the drop down selection from first tab?

    My first tab contains a drop down menu which has two options
    1. Personal info
    2. Office info
    The second tab contains all the information regarding Office and Personal Information. But I need to selectively disable certain fields based on the drop down in first tab.
    For example,
    The second tab consissts of all fields like
    Name,
    Age
    Job title,
    Office Location, etc.
    And i dont want office related details to be displayed if I am selecting personal info in the first tab.
    It would be really great if someone could send me the code for achieving this.
    Thanks in advance.

    Hi Vishnu
                  Can you check the List component in foundation/components ? I think "Build list using" works he same as your requirement. Check the listener they have used in dialog/items/list/items/ listFrom/listeners
    "selectionchanged"  : function(box,value){box.findParentByType('tabpanel').manageTabs(value);}
    here the ExtJs will find the tabpanel with value you are selecting fromdropdown. The title of each panel should match with the dropdown values
    Some queries
    Disable values means you have to remove it from your CRX?
    "values should become mandatory". for tab2? or tab3? - if tab2 and if it is a customized widget then u have to write it in your js only i think.
    Thanks
    Veena

  • How to pass drop down selection to pay pal when "Add to cart" is clicked

    I have a drop down that is populated from my items table..
    the drop down displays fine and you can pick from any of them
    items.. issue
    im having is that i need that value passed to pay pal.. but
    if i select any
    of the items and hit the add to cart, the value that is being
    passed is the
    first one in the list all the time.. ( actually its not even
    the first one
    in the list ) its selecting the 2nd option which as seen
    below woudl be 94
    MVP instead of the blank value for the Please Select
    Here is my drop down code:
    <select name="item_name" id="extra">
    <option value="">Please Select </option>
    <option value="94 MVP">94 MVP</option>
    <option value="94/95 Champs">94/95
    Champs</option>
    <option value="HOF 08">HOF 08</option>
    <option value="94 Finals MVP">94 Finals
    MVP</option>
    <option value="Top 50">Top 50</option>
    </select>
    Here is my paypal code:
    <form target="paypal"
    action="https://www.paypal.com/cgi-bin/webscr"
    method="post">
    <input type="hidden" name="cmd" value="_cart">
    <input type="hidden" name="add" value="1">
    <input type="hidden" name="business"
    value=Request.Form("email")>
    <input type="hidden" name="item_name"
    value=Request.Form("item_name")>
    <input type="hidden" name="item_number"
    value=Request.Form("item_num")>
    <input type="hidden" name="amount"
    value=Request.Form("price")>
    <input type="hidden" name="currency_code" value="USD">
    </form>
    I have removed our personal account information from the code
    but provided
    the pieces that deal with the selection i have problems
    with..
    Can anyone offer any suggestions on where to look or add to
    my code to
    capture that value?
    ASP, SQL2005, DW8 VBScript, Visual Studio 2005, Visual Studio
    2008

    Here is the actual recordset code for that drop down..
    <select name="extra_inscript" id="extra_inscript">
    <option value="" <%If (Not isNull("extra_descrip"))
    Then If (""
    = CStr("extra_descrip")) Then
    Response.Write("selected=""selected""") :
    Response.Write("")%>>Please Select a
    Inscription</option>
    <%
    While (NOT reInscrip.EOF)
    %><option
    value="<%=cStr(reInscrip.Fields.Item("extra_descrip").Value)%>"
    <%If (Not isNull("extra_descrip")) Then If
    (CStr(reInscrip.Fields.Item("extra_descrip").Value) =
    CStr("extra_descrip"))
    Then Response.Write("selected=""selected""") :
    Response.Write("")%>
    ><%=cStr(reInscrip.Fields.Item("extra_descrip").Value)%></option>
    <%
    reInscrip.MoveNext()
    Wend
    If (reInscrip.CursorType > 0) Then
    reInscrip.MoveFirst
    Else
    reInscrip.Requery
    End If
    %>
    </select>
    On the page the drop displays all the items as shown below..
    but no matter
    which on you pick the value never gets passed to the shopping
    cart.. its
    always picking up the first one in the recordset..
    Can anyone offer any suggestions on how to capture the true
    value onchange?
    or select or whatever i can do to get it before the data is
    sent to paypal..
    ASP, SQL2005, DW8 VBScript, Access
    "Daniel" <[email protected]> wrote in message
    news:[email protected]...
    >I have a drop down that is populated from my items
    table..
    >
    > the drop down displays fine and you can pick from any of
    them items..
    > issue im having is that i need that value passed to pay
    pal.. but if i
    > select any of the items and hit the add to cart, the
    value that is being
    > passed is the first one in the list all the time.. (
    actually its not even
    > the first one in the list ) its selecting the 2nd option
    which as seen
    > below woudl be 94 MVP instead of the blank value for the
    Please Select
    >
    > Here is my drop down code:
    > <select name="extra_inscript" id="extra_inscript">
    > <option value="">Please Select </option>
    > <option value="94 MVP">94 MVP</option>
    > <option value="94/95 Champs">94/95
    Champs</option>
    > <option value="HOF 08">HOF 08</option>
    > <option value="94 Finals MVP">94 Finals
    MVP</option>
    > <option value="Top 50">Top 50</option>
    > </select>
    >
    > Here is my paypal code:
    >
    > <form target="paypal"
    action="https://www.paypal.com/cgi-bin/webscr"
    > method="post">
    > <input type="hidden" name="cmd" value="_cart">
    > <input type="hidden" name="add" value="1">
    > <input type="hidden" name="business"
    value=Request.Form("email")>
    > <input type="hidden" name="item_name"
    > value=Request.Form("extra_inscript")>
    > <input type="hidden" name="item_number"
    value=Request.Form("item_num")>
    > <input type="hidden" name="amount"
    value=Request.Form("price")>
    > <input type="hidden" name="currency_code"
    value="USD">
    > </form>
    >
    > I have removed our personal account information from the
    code but provided
    > the pieces that deal with the selection i have problems
    with..
    >
    > Can anyone offer any suggestions on where to look or add
    to my code to
    > capture that value?
    >
    >
    > --
    > ASP, SQL2005, DW8 VBScript, Visual Studio 2005, Visual
    Studio 2008
    >

Maybe you are looking for