Need Info on Drop Dwon box

Hi i have requirement where user can select  the Year like
2000-2001
2001-2002
2002-2003
it can either f4 help or Drop down box.
How can i achieve this? Could anybody help me out
Thanks in Advance

Hi,
Try like this:
TYPE-POOLS: VRM.
DATA: NAME  TYPE VRM_ID,
      LIST  TYPE VRM_VALUES,
      VALUE LIKE LINE OF LIST.
PARAMETERS: PS_PARM(10) AS LISTBOX VISIBLE LENGTH 15 DEFAULT '1'.
AT SELECTION-SCREEN OUTPUT.
NAME = 'PS_PARM'.
VALUE-KEY = '1'.
VALUE-TEXT = '2000 - 2001'.
APPEND VALUE TO LIST.
VALUE-KEY = '2'.
VALUE-TEXT = '2001 - 2002'.
APPEND VALUE TO LIST.
VALUE-KEY = '3'.
VALUE-TEXT = '2002 - 2003'.
APPEND VALUE TO LIST.
CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
Regards,
Bhaskar

Similar Messages

  • Advice needed on the Drop-down box description.

    There are lots of postings on how to get the drop-down box working and there's even a How-to guide called Dropdown boxes. However, I have a field (defined using the AET tool) which has an Search help assigned, so the drop-down list is automatically displayed for me. Having said that I'm still bemused as to how it works as there's no code in the P and V Getter methods.
    Anyway, that aside, the dropdown box is working fine, as mentioned, but I also have the description field to populate with the description of the value returned by the drop-down box. In my case it's a Department code and associated description.
    Initially, I inserted code in the SET_DEPT method to lookup the description (using a SELECT statement) and place the result in the DEPT_DESC field. However, this method is not being called, I don't think, or at least my break point is not being reached.
    So I'm looking for somewhere to place the code which will be called when the DEPT field changes value, and I can then lookup the description and populate the DEPT_DESC field.. Both the DEPT and DEPT_DESC fields are in the same context node by the way.
    It's a real pity that when you create new fields in the AET tool you can't relate one field to another or somehow use a search help and say that the source is another field and this field will hold the result, or something like that.
    Jason

    Hi,
    It was said that the SET_* method will be called when you press enter on the view to trigger a server round trip.
    For your case, I'd like to suggest you take standard coding for example.
    That is the categorization in service ticket view in IC_AGENT role.
    When select the first category, if the second category only has one value, it will be automatically set. which should be similar to your requirement.
    component view GSMCDDLB/DropDownList
    call stack is
    METHOD SET_FIELDS      CL_GSMCDDLB_DROPDOWNLIST_IMPL=CP
    METHOD EH_ONCATCHANGE  CL_GSMCDDLB_DROPDOWNLIST_IMPL=CP
    METHOD DO_HANDLE_EVENT CL_GSMCDDLB_DROPDOWNLIST_IMPL=CP
    when a value is selected in the first dropdown, an event is triggered, you may debug and find out your event, and make the codings in EH_* method.
    set value for other field is some what simple also, like that in
    METHOD SET_FIELDS      CL_GSMCDDLB_DROPDOWNLIST_IMPL=CP
    CALL METHOD lr_dropdownlist->if_bol_bo_property_access~set_property
    If the first field is not a dropdown, for example a field with F4 help, after select the value from the popup, there will be event SELECT_OBJECT triggered for the view I tested.
    You may put breakpoint in do_handle_event for the controller class and observe what event was triggered.
    Then make the relevant coding.
    Hope could do help!
    Hongyan

  • Need to sort drop-down box list

    How do we go about sorting in ascending/decending order a drop-down box list of text/name items?

    Christian,
    Thanks for pointing this out. It looks like Acrobat 8.0 broke something that prevents my sample form from working correctly.
    It has to do with the call to
    resolveNodes("#items[*]")
    Fortunately, the bug will be fixed in Acrobat's next release.
    As a workaround, I would encourage you to have a look at the
    new list object properties and methods now available in Acrobat 8.0. You should be able to use a combination of those new properties/methods along with some of the original script in this sample in order to come-up with an update solution that works.
    Stefan
    Adobe Systems
    More answers on
    FormBuilder.

  • Help needed on linking drop down boxes

    Hello there,
    I am using adobe life cycle designer 8 to make forms. These forms are usesd to collect information on persons working in the healthcare industry.
    I want to use drop down lists that are "connected". Depending on the choice made in the first dropbox, the user will get new options in the second dropbox.
    Example:
    Dropbox 1
    Values
    - value 1
    - value 2
    - value 3
    Dropbox 2
    If user choses value 1, they can chose the following values in dropbox 2:
    - Value A
    - Value B
    If user choses value 2, they can chose the following values in dropbox 2:
    - Value C
    - Value D
    If user choses value 3, they can chose the following values in dropbox 2:
    - Value E
    - Value F
    I have been puzzeling for a while, but cannot find the solution for this.
    THank you in advance
    Daniel

    Hi,
    1. You create the first dropdown, for example with the following entries:
        123
        456
        789
    2. You create a second dropdown which is empty.
    3. Then you have to copy the follwoing script in the change-event of the first dropdown:
    switch (xfa.event.newText)
        case "123":
            DropdownListe2.clearItems();
            DropdownListe2.addItem("Please select a value");
            DropdownListe2.addItem("456");
            DropdownListe2.addItem("789");
            DropdownListe2.selectedIndex = 0;
            break;
        case "456":
            DropdownListe2.clearItems();
            DropdownListe2.addItem("Please select a value");
            DropdownListe2.addItem("123");
            DropdownListe2.addItem("789");
            DropdownListe2.selectedIndex = 0;
            break;
        case "789":
            DropdownListe2.clearItems();
            DropdownListe2.addItem("Please select a value");
            DropdownListe2.addItem("123");
            DropdownListe2.addItem("456");
            DropdownListe2.selectedIndex = 0;
            break;
        default:
            break;
    That's all.
    In your case you  have to change "123", "345", "678" in "value 1", "value 2", "value 3".
    In the first case "value 1" you have to change in the first case "value 1": the DropdownListe2.addItem("123"); to DropdownListe2.addItem("Value A"); ...
    I hope it's helpful for you,
    kind regards,
    Mandy

  • HELP need info about drop-down navigation menu

    Hi everyone,
    I was wondering if I could get some input. I have just
    re-designed our magazine's site, www.easternsurf.com
    I used Pop-Up menu function in Fireworks 8 to generate our
    Navigator bar. For the most part everything has been working well,
    BUT we've had a couple of complaints that the navigator bar's
    pull-down menus get stuck behind the photos/banner ads/etc. instead
    of in front of them when viewing in Internet Explorer. I'm on the
    Mac platform (OSX Tiger/Macromedia Studio 8) and have seen no
    problems viewing in Safari, Firefox and Netscape. The only
    complaints have come from Internet Explorer users. A couple of
    people updated their browser to the newest version and the problem
    disappeared, however we've still had a couple of people that have
    written in that the newest version of IE is still not displaying
    properly.
    Also we've got a strip of button ads running down the left
    hand side of each page and I've also seen another issue that's
    common on sites of this type...when the pulldown menu overlaps with
    a Flash element, there is a problem with the screen re-draw. I've
    seen this on several other sites and know it's a common problem,
    but does anyone know of a workaround where this won't happen? I
    just noticed that signing on to Adobe's site, there almost seems to
    be a command where the menu keeps re-drawing at a very rapid rate
    so this won't happen.
    Any input would be greatly appreciated, although I'm Mac all
    the way, we are a business and have to get this site visible for
    everyone!
    Thanks!

    Read my response to your previous post.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "webmasterinflorida" <[email protected]>
    wrote in message
    news:[email protected]...
    > Hi everyone,
    >
    > I was wondering if I could get some input. I have just
    re-designed our
    > magazine's site, www.easternsurf.com
    >
    > I used Pop-Up menu function in Fireworks 8 to generate
    our Navigator bar.
    > For
    > the most part everything has been working well, BUT
    we've had a couple of
    > complaints that the navigator bar's pull-down menus get
    stuck behind the
    > photos/banner ads/etc. instead of in front of them when
    viewing in
    > Internet
    > Explorer. I'm on the Mac platform (OSX Tiger/Macromedia
    Studio 8) and
    > have
    > seen no problems viewing in Safari, Firefox and
    Netscape. The only
    > complaints
    > have come from Internet Explorer users. A couple of
    people updated their
    > browser to the newest version and the problem
    disappeared, however we've
    > still
    > had a couple of people that have written in that the
    newest version of IE
    > is
    > still not displaying properly.
    >
    > Also we've got a strip of button ads running down the
    left hand side of
    > each
    > page and I've also seen another issue that's common on
    sites of this
    > type...when the pulldown menu overlaps with a Flash
    element, there is a
    > problem
    > with the screen re-draw. I've seen this on several other
    sites and know
    > it's a
    > common problem, but does anyone know of a workaround
    where this won't
    > happen?
    > I just noticed that signing on to Adobe's site, there
    almost seems to be a
    > command where the menu keeps re-drawing at a very rapid
    rate so this won't
    > happen.
    >
    > Any input would be greatly appreciated, although I'm Mac
    all the way, we
    > are a
    > business and have to get this site visible for everyone!
    >
    > Thanks!
    >

  • Need help in this select drop down box

    Hi i had a drop down box written with select and i had many options , when user selects the option it will insert this to database and when user goes to the edit form the preselected value has to be populate automatically in dropdown , but the last option is populating everytime when uses edit form.
    below is the code:
    insert page:
                <select name="council" id="council" name="Please select Council from dropdown box">
                    <option  value="Division">Division</option>
                    <option  value="Facility">Facility</option>
                    <option  value="District D">District D </option>
                    <option  value="District E">District E </option>
                    <option  value="District J">District J </option>
                    <option  value="District K">District K </option>
                    <option  value="District L">District L </option>
                    <option  value="District M">District M </option>
                    <option  value="District N">District N </option>
                    <option  value="District O">District O </option>
                    <option  value="District Q">District Q </option>
                    <option  value="District S">District S </option>   
                    <option  value="District T">District T </option>
                    <!--- Below code  is added just for temporary case ,for this drop down we need to pull all these data from databse--->
                    <option  value="D 506">D 506</option>                                            
                    <option  value="D 524">D 524</option>
                    <option  value="D 525">D 525</option>
                    <option  value="D 530">D 530</option>
                    <option  value="D 531">D 531</option>
                    <option  value="D 536">D 536</option>
                    <option  value="D 549">D 549</option>
                    <option  value="D 558">D 558</option>
                    <option  value="D 562">D 562</option>
                    <option  value="D 581">D 581</option>
                    <option  value="D 583">D 583</option>
                    <option  value="D 597">D 597</option>
                    <option  value="D 598">D 598</option>
                    <option  value="D 599">D 599</option>
                    <option  value="D 628">D 628</option>
                    <option  value="D 686">D 686</option>
                    <option  value="D 698">D 698</option>
                    <option  value="D 848">D 848</option>
                    <option  value="D 862">D 862</option>
                    <option  value="D 870">D 870</option></select>
    this is edit page code:
                       <select name="council" id="council">               
                   <cfoutput query="getdata">               
                    <option  value="Division" <cfif council IS "#getdata.council#"> selected</cfif>>Division</option>
                    <option  value="Facility" <cfif council IS "#getdata.council#"> selected</cfif>>Facility</option>
                    <option  value="District D" <cfif council IS "#getdata.council#"> selected</cfif>>District D </option>
                    <option  value="District E" <cfif council IS "#getdata.council#"> selected</cfif>>District E </option>
                    <option  value="District J" <cfif council IS "#getdata.council#"> selected</cfif>>District J </option>
                    <option  value="District K" <cfif council IS "#getdata.council#"> selected</cfif>>District K </option>
                    <option  value="District L" <cfif council IS "#getdata.council#"> selected</cfif>>District L </option>
                    <option  value="District M" <cfif council IS "#getdata.council#"> selected</cfif>>District M </option>
                    <option  value="District N" <cfif council IS "#getdata.council#"> selected</cfif>>District N </option>
                    <option  value="District O" <cfif council IS "#getdata.council#"> selected</cfif>>District O </option>
                    <option  value="District Q" <cfif council IS "#getdata.council#"> selected</cfif>>District Q </option>
                    <option  value="District S" <cfif council IS "#getdata.council#"> selected</cfif>>District S </option>   
                    <option  value="District T" <cfif council IS "#getdata.council#"> selected</cfif>>District T </option>                   
                    <option  value="D 506" <cfif council IS "#getdata.council#"> selected</cfif>>D 506</option>                                            
                    <option  value="D 524" <cfif council IS "#getdata.council#"> selected</cfif>>D 524</option>
                    <option  value="D 525" <cfif council IS "#getdata.council#"> selected</cfif>>D 525</option>
                    <option  value="D 530" <cfif council IS "#getdata.council#"> selected</cfif>>D 530</option>
                    <option  value="D 531" <cfif council IS "#getdata.council#"> selected</cfif>>D 531</option>
                    <option  value="D 536" <cfif council IS "#getdata.council#"> selected</cfif>>D 536</option>
                    <option  value="D 549" <cfif council IS "#getdata.council#"> selected</cfif>>D 549</option>
                    <option  value="D 558" <cfif council IS "#getdata.council#"> selected</cfif>>D 558</option>
                    <option  value="D 562" <cfif council IS "#getdata.council#"> selected</cfif>>D 562</option>
                    <option  value="D 581" <cfif council IS "#getdata.council#"> selected</cfif>>D 581</option>
                    <option  value="D 583" <cfif council IS "#getdata.council#"> selected</cfif>>D 583</option>
                    <option  value="D 597" <cfif council IS "#getdata.council#"> selected</cfif>>D 597</option>
                    <option  value="D 598" <cfif council IS "#getdata.council#"> selected</cfif>>D 598</option>
                    <option  value="D 599" <cfif council IS "#getdata.council#"> selected</cfif>>D 599</option>
                    <option  value="D 628" <cfif council IS "#getdata.council#"> selected</cfif>>D 628</option>
                    <option  value="D 686" <cfif council IS "#getdata.council#"> selected</cfif>>D 686</option>
                    <option  value="D 698" <cfif council IS "#getdata.council#"> selected</cfif>>D 698</option>
                    <option  value="D 848" <cfif council IS "#getdata.council#"> selected</cfif>>D 848</option>
                    <option  value="D 862" <cfif council IS "#getdata.council#"> selected</cfif>>D 862</option>
                    <option  value="D 870" <cfif council IS "#getdata.council#"> selected</cfif>>D 870</option>
    </cfoutput>               
                </select>
    i dont know where i am making mistake and i observered one behavoir that if i have less options it is working but not with many why like that , please help me in this
    Thanks

    Seems to me your conditionals should look something like this:
    <option value="Division"<cfif getData.council is "Division"> selected="selected"</cfif>>Division</option>
    <option value="Facility"<cfif getData.council is "Facility"> selected="selected"</cfif>>Facility</option>
    Your condition is the same for every option, and would likely never evaluate to true:
    <cfif council IS "#getdata.council#"> selected</cfif>
    getData.council will be "Division" or "Facility" or "District D" or ...
    ... but it would never be "council".
    HTH.
    Charlie

  • Create a dynamic form where selected text boxes appears, based on options chosen in a drop-down box

    HELP!!! Can anyone please provide some guidance on how to create a dynamic form where selected text boxes appears, based on options chosen in a drop-down box.
    I have a form which – based on the department that's selected from a drop-down box – will have different form fields/text boxes, etc, made available.
    Is this possible in LiveCycle, if so, can you please provide the script/info - as needed.
    Thanks,

    In the preOpen event of the second dropdown list you put something like (in formCalc):
    if (dropdown1 == 1) then
    $.clearItems()
    $.setItems("Year, 2 Year,  3 Year")
    elseif (dropdown1 == 2) then
    $.clearItems()
    $.setItems("3 Year,  4 Year")
    endif

  • My Firefox drop down box located in the upper left hand corner is no longer there. How do I get it back

    The only thing that appears above is the URL and the tabs that have been open. I have no other bars across the top of the screen. I especially need the Firefox Box in the left hand corner which includes commands to print, commands to bookmark a page, commands to clear History.

    Hi,
    Enabling / disabling the '''Menu Bar''' via '''View''' ('''Alt '''+ '''V''') > '''Toolbars''' alternates between the Firefox drop down box and the menu bar. To temporarily view the menu bar after the Firefox drop down box is activated, press '''Alt''' or '''F10'''.
    Useful links:
    [https://support.mozilla.com/en-US/kb/Options%20window All about Tools > Options]
    [http://kb.mozillazine.org/About:config Going beyond Tools > Options - about:config]
    [http://kb.mozillazine.org/About:config_entries about:config Entries]
    [https://support.mozilla.com/en-US/kb/Page%20Info%20window Page Info] Tools (Alt + T) > Page Info, Right-click > View Page Info
    [https://support.mozilla.com/en-US/kb/Keyboard%20shortcuts Keyboard Shortcuts]
    [https://support.mozilla.com/en-US/kb/Viewing%20video%20in%20Firefox%20without%20a%20plugin Viewing Video without Plugins]
    [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder & Files]
    [https://developer.mozilla.org/en/Command_Line_Options#Browser Firefox Commands]
    [https://support.mozilla.com/en-US/kb/Basic%20Troubleshooting Basic Troubleshooting]
    [https://support.mozilla.com/en-US/kb/common-questions-after-upgrading-firefox-36 After Upgrading]
    [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode]
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20plugins Troubleshooting Plugins]
    [http://kb.mozillazine.org/Testing_plugins Testing Plugins]

  • Has Photoshop CS5 Extended added a "Behind" and "Clear" in MODE drop down box?

    Hi Guys,
    I am not sure what just happened with my PS. Was downloading and installing some custom patterns and brushes from the net last night. And when I went to try them out I noticed the drop down box had 2 new added effects ( Behind and Clear ) which I was not able to even access because they were not live. It is the drop down box which has the normal, dissolve, darken, multiply etc. etc. up on the top left hand bar. I was going to upload a picture but I keep getting a message saying this file is forbidden, even after I scaled the image down to the required fields. I was wondering if some one can help. I hope it wasn't a virus from the internet files I downloaded.
    Many thanks, Grace.

    They are brush blend modes.  To use you need to have the brush tool selected.  Open a new layer and paint with any colour.  Chose another colour and make the blend mode Behind.  I bet you know what will happen now? ;-)
    Clear works pretty much the same as the Eraser tool as far as I can tell.  Might need to actually read the manual to get more info on that.

  • How to insert drop-down box into the already set-up table ?

    if i have a table already set up, and i do want to add the drop-down box into each column like in the excel. how would i do that ? this drop-down box would allows me to specifically select the data as shown on the screen.

    Hi Bondwaan,
    I am not sure wht you are asking but I suspect it has to do with a popup menu. If that is the case, a popup menu is a formatting choice.
    If you need more info, you will need to ask a more specific question.
    quinn

  • How to get values from a multiple drop-down box.

    On my first page, I have a multiple drop-down box as the following code.
    <select name="selInterMethod" class="textbox" multiple>
    <option selected value="CH">Chicago</option>
    <option value="NY">New York</option>
    <option value="SF">San Francisco</option>
    </select>
    On my second transaction page, I need to save "CH-NY" into my Database column: city if the user selected Chicago and New York.
    How can I accomplish this in JSP?
    Thanks for your help.

    I figured out the solution. Here it is. FYI
    String inter_method = "";
    String Inter_Method[]=request.getParameterValues("selInterMethod");
         if( Inter_Method.length > 0 ) {
              for (int i = 0; i < Inter_Method.length; i++) {
                   inter_method = inter_method + '-' +Inter_Method;
              inter_method = inter_method.substring(1,inter_method.length());
              System.out.println("trx inter_method = " + inter_method);

  • How to create a drop down box and text box in screen painter?

    Hi i am totally new to this concept of screen painter..please can any tell me
    how to create drop down box in screen painter?
    How to create or display default date and time values?
    How to create text box for giving comments?
    How to store the records that we are entering in a table?
    Please can any one send me the procedure for creating all these its very urgent useful information will be surely rewarded.

    Hi,
    Check all these.
    1.how to create drop down box in screen painter?
    To get Drop Drown Box on screen .
    Follow these steps.
    1.
    Go to T.Code SE51 and Select Laypout for the Screen.
    2.
    Double click on the field for which u want Dropdown box.
    3.
    Then U will see Name ,Text ,DROPDOWN.Click on that and select List Box or ListBox with key . Better to to select first one.
    4.
    Save and Activate ur screen .
    5.
    Enter the following piece of code in the PBO of the screen.(Change for ur requirement).
    6.
    The following code should be written under PROCESS BEFORE EVENT in the MODULE.
    TYPE-POOLS :vrm.
    DATA:
      i_natio TYPE vrm_values, "-->Table that is passed through FM vrm_set_values
      w_natio LIKE LINE OF i_natio.
    DATA:
    BEGIN OF i_t005t OCCURS 0,
        land1 TYPE t005t-land1,
        natio TYPE t005t-natio,
    END OF i_t005t.
    IF i_t005t[] IS INITIAL.
      SELECT land1 natio
         FROM t005t
           INTO TABLE i_t005t
       WHERE spras = sy-langu.
      IF sy-subrc = 0.
      LOOP AT i_t005t .
          w_natio-key = i_t005t-land1.
          w_natio-text = i_t005t-natio.
          APPEND w_natio TO i_natio.
          CLEAR w_natio.
      ENDLOOP.
      ENDIF.
    ENDIF.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING
                          id = 'I_IT0002-NATIO' "-->Field for which dropdown is needed.
                    values = i_natio
    EXCEPTIONS
       id_illegal_name = 1
                OTHERS = 2.
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    2.1.How to create or display default date and time values?
    1.
    create input field for DATE and TIME on screen.ex. DATE1 and TIME1 are screen field names .
    2.
    Just assign SY-DATUM to DATE1 and SY-UZEIT to TIME1 under PROCESS BEFORE EVENT.
    3.How to create text box for giving comments?
    1.
    Define one variable in the TOP include with type STRING means Global variable.
    2.
    Create one input field by giving screen field name which u have defined in the above step.
    4.How to store the records that we are entering in a table?
    For this case.. Create one table control. you can select one record and create record in the Z table by pressing button on Application toolbar..
    Check the following steps to handle Table control.
    1).
    U should take one variable in your internal table or in structure which
    is used for table control fields
    ex :
    data :
    begin of itab occurs 0 ,
        mark type c , "This is to select the record.
        matnr like mara-matnr ,
        matkl like mara-matkl,
        maktx like makt-maktx,
    end of itab .
    Controls: TABC types TABLEVIEW using screen 100.
    2).
    This mark variable should be given in Table control properties.
    follow the path
    double click on the table control-->attributes .->select
    w/SelColumn and in that itab-mark. Check in the figure.
    [Table control properties screen|http://bp2.blogger.com/_O5f8iAlgdNQ/R99gOUH8CXI/AAAAAAAAA9I/d3gOum1fJ6s/s1600-h/pic28145-796618.jpg]
    3).
    After that. Take this example.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_0100.
    LOOP AT ITAB WITH CONTROL tabc
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE CANCEL AT EXIT-COMMAND.
    LOOP AT ITAB.
       Module read_table_control.
    ENDLOOP.
    module user_command_0100.
    In this Module read_table_control, You should write the following code
    MODULE read_table_control INPUT.
    MODIFY itab INDEX tabc-current_line."( This will update the
    "ITAB table MARK field with 'X ' whatever we have selected
    "on table control.)
    ENDMODULE.
    4)
    If you want to Delete some of the records from Table control
    follow this code …Create one pushbutton and give Fucnction code to that
    and write below code
    CASE OKCODE.
    WHEN 'CREATE'.
    LOOP AT itab WHERE mark = 'X'.
    "Use UPDATE statement to create new record.
    ENDLOOP.
    ENDCASE.
    I hope that you will get something.
    Regards,
    Venkat.O

  • Fetching values from database into a drop down box

    in my JSP page there are 3 drop down boxes for date of birth......
    what i need is i want to get the values from database into that drop down box when i access the JSP page.......
    session is there....'m getting all other values.......
    I will attach the JSP page.....
    Please help me...........
    Thanks in Advance......
    <%@ taglib uri='/WEB-INF/taglib/struts-bean.tld' prefix='bean'%>
    <%@ taglib uri='/WEB-INF/taglib/struts-logic.tld' prefix='logic'%>
    <%@ taglib uri='/WEB-INF/taglib/dyna.tld' prefix='dyna'%>
    <%@ taglib uri='/WEB-INF/taglib/struts-html.tld' prefix='html'%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title><bean:message key="page_title"/></title>
    <link href="<bean:message key="context"/>/CSS/default.css" rel="stylesheet" type="text/css" />
    <script src="<bean:message key="context"/>/js/AC_RunActiveContent.js" type="text/javascript"></script>
    <link href="<bean:message key="context"/>/CSS/screen.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <%!
    Membership mShip = null;
    %>
    <script language="javascript" >
    function checkDate(Form){
    var d;
    d = Form.year.value+"-"+Form.month.value+"-"+Form.day.value;
    alert("Date is:"+d);
    Form.dob.value = d;
    </script>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td>
         <jsp:include flush="true" page="../templates/header.jsp"/>     </td>
    </tr>
    <tr>
    <td class="menuTD">     
         <jsp:include flush="true" page="../templates/menu.jsp"/>     </td>
    </tr>
    <tr>
    <td class="sub_menuTR"> </td>
    </tr>
    <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td class="column" valign="top" width="170"><jsp:include flush="true" page="../templates/left_panel.jsp"/></td>
    <td valign="top" align="left">
              <dyna:message error="error" warning="warning" message="message"/>
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td width="80%" valign="top" align="left">
                   <%
                   if(session != null){
                   mShip = (Membership)session.getAttribute("member");
                   %>
                        <form action="updateContactDetails.dy" method="post" name="form1">
                        <input type="hidden" name="m" value="<%=request.getParameter("m")%>" />
                             <table width="100%" border="0">
                             <tr>
                                  <td>First Name</td>
                                  <td><input name="first_name" type="text" id= "first_name" value = "<bean:write name = "member" property = "first_name" />" /></td>
                             </tr>
                             <tr>
                                  <td>Last Name </td>
                                  <td><input name="last_name" type="text" id="last_name" value = "<bean:write name = "member" property = "last_name" />" > </td>
                             </tr>
                             <tr>
                                  <td>Address</td>
                                  <td><input name="address1" type="text" id="address1" value = "<bean:write name = "member" property = "address1" />" ></td>
                             </tr>
                             <tr>
                                  <td> </td>
                                  <td><input name="address2" type="text" id="address2" value = "<bean:write name = "member" property = "address2" />" ></td>
                             </tr>
                             <tr>
                                  <td>Suburb/City </td>
                                  <td><input name="city" type="text" id="city" value= "<bean:write name = "member" property = "city" />" ></td>
                             </tr>
                             <tr>
                                  <td>State/Territory</td>
                                  <td><input type="text" name="state" value = "<bean:write name = "member" property = "state" />" ></td>
                             </tr>
                             <tr>
                                  <td>Postcode</td>
                                  <td><input type="text" name="postcode" value = "<bean:write name = "member" property = "postcode" />" ></td>
                             </tr>
                             <tr>
                                  <td>Contact Phone</td>
                                  <td><input type="text" name="home_phone" value = "<bean:write name = "member" property = "home_phone" />" ></td>
                             </tr>
                             <tr>
                                  <td>Mobile</td>
                                  <td><input type="text" name="mobile" value = "<bean:write name = "member" property = "mobile" />" ></td>
                             </tr>
                             <tr>
                                  <td>Date of birth</td>
                                  <td nowrap="nowrap"><select name="day">
    <option>Day</option>
    <option value="01">1</option>
    <option value="02">2</option>
    <option value="03">3</option>
    <option value="04">4</option>
    <option value="05">5</option>
    <option value="06">6</option>
    <option value="07">7</option>
    <option value="08">8</option>
    <option value="09">9</option>
    <option value="10">10</option>
    <option value="11">11</option>
    <option value="12">12</option>
    <option value="13">13</option>
    <option value="14">14</option>
    <option value="15">15</option>
    <option value="16">16</option>
    <option value="17">17</option>
    <option value="18">18</option>
    <option value="19">19</option>
    <option value="20">20</option>
    <option value="21">21</option>
    <option value="22">22</option>
    <option value="23">23</option>
    <option value="24">24</option>
    <option value="25">25</option>
    <option value="26">26</option>
    <option value="27">27</option>
    <option value="28">28</option>
    <option value="29">29</option>
    <option value="30">30</option>
    <option value="31">31</option>
    </select>
                                  <select name="month">
                                       <option>Month</option>
                                       <option value="01">January</option>
                                       <option value="02">February</option>
                                       <option value="03">March</option>
                                       <option value="04">April</option>
                                       <option value="05">May</option>
                                       <option value="06">June</option>
                                       <option value="07">July</option>
                                       <option value="08">August</option>
                                       <option value="09">September</option>
                                       <option value="10">October</option>
                                       <option value="11">November</option>
                                       <option value="12">Decembber</option>
                                  </select>
                                       <select name="year" onChange = "checkDate(this.form);" >
                                       <option>Year</option>
                                       <option value="1957">1957</option>
                                       <option value="1956">1956</option>
                                       <option value="1955">1955</option>
                                       <option value="1954">1954</option>
                                       <option value="1955">1955</option>
                                       <option value="1956">1956</option>
                                       <option value="1957">1957</option>
                                       <option value="1958">1958</option>
                                       <option value="1959">1959</option>
                                       <option value="1960">1960</option>
                                       <option value="1961">1961</option>
                                       <option value="1962">1962</option>
                                       <option value="1963">1963</option>
                                       <option value="1964">1964</option>
                                       <option value="1965">1965</option>
                                       <option value="1966">1966</option>
                                       <option value="1967">1967</option>
                                       <option value="1968">1968</option>
                                       <option value="1969">1969</option>
                                       <option value="1970">1970</option>
                                       <option value="1971">1971</option>
                                       <option value="1972">1972</option>
                                       <option value="1973">1973</option>
                                       <option value="1974">1974</option>
                                       <option value="1975">1975</option>
                                       <option value="1976">1976</option>
                                       <option value="1977">1977</option>
                                       <option value="1978">1978</option>
                                       <option value="1979">1979</option>
                                       <option value="1980">1980</option>
                                       <option value="1981">1981</option>
                                       <option value="1982">1982</option>
                                       <option value="1983">1983</option>
                                       <option value="1984">1984</option>
                                       <option value="1985">1985</option>
                                       <option value="1986">1986</option>
                                       <option value="1987">1987</option>
                                       <option value="1988">1988</option>
                                       <option value="1989">1989</option>
                                       <option value="1990">1990</option>
                                       <option value="1991">1991</option>
                                       <option value="1992">1992</option>
                                       <option value="1993">1993</option>
                                       <option value="1994">1994</option>
                                       <option value="1995">1995</option>
                                       <option value="1996">1996</option>
                                       <option value="1997">1997</option>
                                       <option value="1998">1998</option>
                                       <option value="1999">1999</option>
                                       <option value="2000">2000</option>
                                       <option value="2001">2001</option>
                                       <option value="2002">2002</option>
                                       <option value="2003">2003</option>
                                       <option value="2004">2004</option>
                                       <option value="2005">2005</option>
                                       <option value="2006">2006</option>
                                       <option value="2007">2007</option>
                             </select ></td></tr>
                             <tr>
                                  <td><input type="hidden" name = "dob" /> </td>
                                  <td nowrap="nowrap"><input type="submit" value="Submit" /></td>
                             </tr>
                             </table>
                        </form>
                   </td>
    <td width="40"></td>
    <td width="200" valign="top">
                   <div id="headlines">
    <jsp:include flush="true" page="../templates/profile.jsp"/>
    </div>
                   </td>
    </tr>
    </table>
              </td>
    <td> </td>
    </tr>
    </table></td>
    </tr>
    <tr>
    <td><jsp:include flush="true" page="../templates/footer.jsp"/></td>
    </tr>
    </table>
    </body>
    </html>

    i think normally u will get data from databsae as objects.they are like java beans having getter and setter methods.so you create a collection of those objects like collect all the objects coming from database into an arraylist or....
    suppose you want to populate the dropdown box with say "username" from database object s, your code will look like that
    <html:select property="name">
    <html:options collection="databaseList" property="username" />
    </html:select>
    "databaseList" is collection(say.. ArrayList) of objects you are getting from database.this dropdown will contain all the "usernames" you are getting from database.

  • Adding '-Select-' on top for a drop down box

    Hello,
    I have a drop down box mapped to a field in the context, the field has some domain values and are populated in the run time. but I have to add another top row '-Select-' indicating to the client that the field need to be selected.
    To add 'Select', I can write a method in the WDDOINIT method of the controller and also loop through the domain values and append to the drop down box. But I don't want to do too much of d/b interaction, as the fields are anyway loaded to the dropbox by mapping.
    Is there a way in web dynpro, that we could do like in normal ABAP reports, to Loop at the screen and identify all the drop down boxes and add a 'select' row at the top?
    I really appreciate any help.
    Thank you
    KV.

    Hi Kiran,
    Can you make your requirement more clear to me?
    As much I understand from your message is that you want to add a dynamic Text on the top of Dropdown.Like Select the field need to be selected.
    from where you will get this field information?
    what message you want to add?
    If you have the field information then
    (a)Create a textView on the top of Dropdown
    (b) Bind it's property "Text" to the context attribute say Text .
    (c) now set this value like
    wdcontext.currentcontextelement().setText("Select "+field);
    If this is not the right interpretation of your problem then please explain it in detail and tell me step by step what you want to do?
    Regards,
    Praveen

  • When I'm on Facebook and play Fish World, sending gifts is no longer working, the drop down box won't open enough to see the "send" button. It works in other games, but not in Fish World, and I contacted Fish World who said it was a browser problem.

    starting yesterday I cannot get the drop down box to open to send gifts to my friends. Fish world told me a few weeks ago it was due to some updates with Facebook, but now that has been fixed and I can't get the game inFB to work. It works with other browsers - Chrome and IE9. Is there something I need to do on my end to fix this? Other facebook games work fine with drop down boxes, it's only fish world.

    problem solved

Maybe you are looking for

  • Can you listen to more than the 4 beat count -in prior to recording?

    I would like to edit out mistakes in a real instrument track by setting a region to start and stop recording, then start listening and playing along before the recording cycle kicks in and continuing to listen and play along after the recording cycle

  • Sampeling a colour from a photo places in Illy CS4

    Hoping this is a simple one to figure out. In CS3 I would drop a photo into the document and then using the eyedropper I would just sample colours from the photo. CS4 wont sample full stop - pulling my hair out and grinding to a halt on the whole wor

  • Is a Dell latitude 610 laptop compatible with a ipod touch 4th gen?

    My sons 610 won't recognize or charge his new gen 4 touch when you plug it in to laptop, He previously owned a touch 2nd gen and it worked fine with computer, trying to find  out if this ipod isn't compatible. Have already checked service pack is cor

  • Middleware technologies used for data exchange in Cloud for Customer system

    Hi Techies,                  I would like to know what are the different middleware technologies like ALE,EDI and IDOC, Web Services or any other technology plays role in data exchange between SAP ERP and SAP Cloud for Customer system. My project inc

  • Generating & Recognizing keys in java

    Hi After running an ant target ( that checks java code for correct coding conventions ex variable naming conventions , proper indentation etc ) I need to generate a 16 digit (or more) code When developer tries to checkin his code its required that he