Creating Drop Down Lists in J2ME

Hello all,
I'm not an experienced programmer, and I fear that the rumours of posting a crie for help only to be set upon by hundreds of blood thirsty 'newbe' hunters may be true, but here goes none the less.
Would love to know if any kind soul has hints on how to create drop down lists in J2ME, for selecting a option which would be able to relate to a database (Table).
At the moment I'm using straight forward TextField entries, which is hardly convenient! :)
Any help/comments/sweets appreciated!
Cam

Hi Cameron,
Only MIDP 2.0 support drop down list. So if you currently coding in the MIDP 2.0 environment, here are the codings.
String arr = new String[]{"Happy","Sad"};
ChoiceGroup ch = new ChoiceGroup("Select Choice:",ChoiceGroup.POPUP,arr,null);
append(ch);
Hope this codes is helpful to you.

Similar Messages

  • Creating drop-down list for prodname element in metadata causes errors

    Frame 11
    DITA 1.2
    Due to restrictions beyond our control, we must use absurdly long product names. Therefore I want to use drop-down lists to make it easier for the authors to select a <prodname> in the metadata.
    What I did:
    1. In metaDecl.eddmod.fm, I created a new attribute and named it prod.
        a. I made it the Choice, and Required.
        b. The Choices currently are just Internal and RTVI for testing purposes. I'll put the absurdly long ones in when I have it working.
        c. I have a Prefix rule of: In all contexts Prefix: Product Name: <$attribute[prod]>
    2. I imported metaDecl.eddmod.fm to all of these EDDs:
        In the base EDD  folder:
    basemap.edd.fm
    basetopic.edd.fm
    map.eddmod.fm
    topic.eddmod.fm
       In the technicalContent EDD folder:
    concept.edd.fm
    ditabase.edd.fm
    generalTask.edd.fm
    glossentry.edd.fm
    glossgroup.edd.fm
    reference.edd.fm
    task.edd.fm
    topic.edd.fm
    3. I imported the element definitions into all of the following:
    ChapterOutputTpl.fm
    basemap.template.fm
    basetopic.template.fm
    basetopic.template.fm
    topic.template.fm
    generalTask.template.fm
    glossentry.template.fm
    glossgroup.template.fm
    map.template.fm
    ditabase.template.fm
    reference.template.fm
    concept.template.fm
    task.template.fm
    4. I imported the elememted definitions from task.template.fm into my test document (yes, it is a task topic).
    What happened:
    I get the following error message in the console:
    XML Parser Messages (Document Instance)
    Error at file H:\DITA_Westminster\Procedures - Our DITA\Inserting_Product_Names_Versions_In_Metadata\InsertingProductNamesAndVersionsInMetad ata.dita.82F, line 28, char 49, Message: Attribute 'prod' is not declared for element 'prodname'
    Error at line 28, char 71, Message: Not enough elements to match content model  '(prodname,vrmlist,((brand|component|featnum|platform|prognum|series))*)'
    What I did next:
    1. I removed all elements from the general rule of <prodinfo> with the exception of <prodname>. <prodinfo) is the one that had prodname, vrmlist, (brand|component|featnum|platform|prognum|series) in the general rule. I also did a thorough search to ensure that no other element had this same list of element in the general rule. I couldn't find any.
    2. I did the import to the EDDs and templates thing again.
    3. I got the same error message again. <sigh />
    Question:
    Why am I still getting those 2 error messages? They are driving me crazy.
    Marsha

    Alex Gorly and Matt Sullivan solved one of my issues above:
    Message: Attribute 'prod' is not declared for element 'prodname'
    I'm still stumpled on the other one:
    Message: Not enough elements to match content model  '(prodname,vrmlist,((brand|component|featnum|platform|prognum|series) )*)'
    As stated above, I've even removed everything from the general rule of <prodinfo> except prodname and I'm still getting the same error. I've searched everywhere for this general rule and <prodinfo> is the only place I can find it.
    What I really want is: (prodname), (vrmlist)?, (brand | component | featnum | platform | prognum | series)*
    so that vrmlist is optional.
    No matter what I do, unless I include a vrmlist, I get the above message. Currently, our CMS can't handle vrmlist but I don't want to remove it altogether because we may be replacing our CMS.
    Help please!

  • How To Create Drop Down List?

    Hi All,
    I Want to Create DropDown list For Company Code.
    I Gave Control Property As 'DropDownList'
    In Entry List, I Gave System Object And Bapi.
    After It Displays Input And Output.
    What Value I Assign to Company Code
    in Both Input And Output Ports.
    This is Very Urgent,please Give Steps For Quick Understanding.
    Thanks & regards
    SubbaRao Chinta.

    subbarao
    1- right click on your drop down list.
    2- choose properties.
    3- goto the entry list tabl
    4- select dynamic entry list.
    5- choose your system and search for the BAPI --> BAPI_COMPANYCODE_GETLIST.
    No input is required for this bapi
    6- for the output choose COMPANYCODE_LIST
    VALUE --> @COMP_CODE
    TEXT --> @COMP_NAME
    Regards,
    Sami
    Edited by: Sami Ahmed on Mar 24, 2008 10:54 AM

  • How to create drop-down list in Portal??

    My case: I have three locations A B C(in the database) for example.
    I would like to use drop-down list to show list of All, A, B, and C.
    After I choose any of them, for example A, it must show all the data of that particular location and if it is All it must show data of all three locations.
    By using Simple Parameter, it's just a static one but I prefer the dynamic one that get directly from the database. And I also got a problem of showing all locations by choosing All in my dropdown menu
    Any idea??!?
    Thank you so much.

    You could try a dynamic page:<br>
    <br>
    &LT;html&GT;<br>
    &LT;body&GT;<br>
    <br>
    &LT;form action="http://host.port/pls/portal/etc." method="get"&GT;<br>
    &LT;select name="location"&GT;<br>
    &LT;ORACLE&GT;<br>
    for rec in (select loc_code, loc_name from locations union select '-1' id, 'All' loc_name from dual)<br>
    loop<br>
    htp.p('&LT;option value="' || rec.loc_code || '"&GT;' || rec.loc_name || '&LT;/option&GT;');<br>
    end loop;<br>
    &LT;ORACLE&GT;<br>
    &LT;/select&GT;<br>
    &LT;/form&GT;<br>
    <br>
    &LT;/body&GT;<br>
    &LT;/html&GT;<br>
    <br>
    The form should then call your page with a &location=loc_code in the url. Using a page parameter and a bound variable you can access that. You may need to use a decode in your sql to deal with the All scenario:<br>
    <br>
    select ..... where loc_code like decode(:location, -1, loc_code, :location)<br>
    <br>
    Hope this helps.<br>
    <br>
    Patrick

  • Help needed to create drop down list for a field.

    Hi,
    I have to create a parameter/select-options on the selection screen having  drop down values and also having multiple selections allowed.
    Please help me to attain this functionality.Its urgent.
    Thanks,
    Sandeep.

    Hi,
    Here is the exampel Program, i am sending the code for a Paramter, If you want this for the Select-options, then you need to have the paramer name as PS_PARM-LOW and you need to write the smae logic again for PS_PARM-HIGH to get the List box for the select-option
    REPORT ZLIST.
    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 10.
    AT SELECTION-SCREEN OUTPUT.
    NAME = 'PS_PARM'.
    VALUE-KEY = '1'.
    VALUE-TEXT = 'LINE 1'.
    APPEND VALUE TO LIST. VALUE-KEY = '2'.
    VALUE-TEXT = 'LINE 2'.
    APPEND VALUE TO LIST.
    CALL FUNCTION 'VRM_SET_VALUES' EXPORTING ID = NAME VALUES = LIST.
    START-OF-SELECTION.
    WRITE: / 'PARAMETER:', PS_PARM.

  • Creating drop down list program?

    how to create the dropdownlist program?

    Hi
    see the sample program
    REPORT zwa_test2.
    TYPE-POOLS : vrm.
    tables: bkpf.
    DATA : values TYPE vrm_values.
    DATA : wa LIKE LINE OF values.
    PARAMETERS : list_box(10) TYPE c AS LISTBOX VISIBLE LENGTH 10.
    PARAMETERS: dd type bkpf-BSTAT user-command abc.
    select-options: a for bkpf-bukrs MODIF ID buk.
    select-options: b for bkpf-belnr MODIF ID SEL.
    at selection-screen output.
      If list_box = 2.
        loop at screen.
          if screen-group1 = 'SEL'.
            screen-input = 0.
            modify screen.
          endif.
         endloop.
       endif.
    INITIALIZATION.
      wa-key = '1'.
      wa-text = 'Orange'.
      APPEND wa TO values.
      wa-key = '2'.
      wa-text = 'Red'.
      APPEND wa TO values.
      wa-key = '3'.
      wa-text = 'Blue'.
      APPEND wa TO values.
      wa-key = '4'.
      wa-text = 'Gray'.
      APPEND wa TO values.
      CALL FUNCTION 'VRM_SET_VALUES'
           EXPORTING
                id              = 'LIST_BOX'
                values          = values
           EXCEPTIONS
                id_illegal_name = 1
                OTHERS          = 2.
    Ref Program:  DEMO_DROPDOWN_LIST_BOX
    Link: Need a drop down for a selection screen
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Drop Down List population - Abap dynpro adobe form - type ZCI

    Hi ,
    How to create drop down list on a field. I am using ZCI type of form. (Abap dynpro adobe form - type ZCI)
    Most of the post i have seen only refers to the setting in forms but not about the settings in interface in se80 or SFP. please give me the detail steps to create drop down field and how to populate it.
    In other words is how to populate the drop down fields, where does the values come from to these fields.
    Thanks,
    Nikhil
    Edited by: NIKHILKUMAR POOJARI on Apr 3, 2009 7:28 PM

    HI Pradeep,
    Can you please tel me what i am doing worng here :
    types : begin of ty_nameid,
                  ZCARRIAGERESTRIC type ZCARRIAGERESTRICT,
                  DESCRIPTION type ZDESCRIPTION,
                END OF ty_nameid,
                tyt_nameid TYPE TABLE OF ty_nameid.
        data  : it_nameid type tyt_nameid,
                wa_nameid TYPE ty_nameid.
        DATA lo_nd_name TYPE REF TO if_wd_context_node.
        DATA lo_nd_nameid TYPE REF TO if_wd_context_node.
        DATA lo_el_nameid TYPE REF TO if_wd_context_element.
        DATA ls_nameid TYPE wd_this->element_nameid.
      navigate from <CONTEXT> to <NAME> via lead selection
        lo_nd_name = wd_context->get_child_node( name = wd_this->wdctx_name ).
      navigate from <NAME> to <NAMEID> via lead selection
        lo_nd_nameid = lo_nd_name->get_child_node( name = wd_this->wdctx_nameid ).
      @TODO handle not set lead selection
        IF lo_nd_nameid IS INITIAL.
        ENDIF.
      get element via lead selection
        lo_el_nameid = lo_nd_nameid->create_element(  ).
      @TODO handle not set lead selection
        IF lo_el_nameid IS INITIAL.
        ENDIF.
      alternative access  via index
      lo_el_nameid = lo_nd_nameid->get_element( index = 1 ).
      @TODO handle non existant child
      IF lo_el_nameid IS INITIAL.
      ENDIF.
    select * from ZCARRIAGERESTRIC INTO CORRESPONDING FIELDS OF TABLE it_nameid.
      get all declared attributes
       lo_el_nameid->set_attribute(
         EXPORTING
           Value = it_nameid
           name  = 'NAMEID' ).
    lo_nd_nameid->bind_table( it_nameid ).
    but its giving dump WebDynpro Exception: The ADS call has failed.
    i have created the Node as under
    CONTEXT
    NAME (NODE)
    NAMEID (NODE)
    ZCARR (ATTRIBUTE)
    DESCR  (ATTRIBUTE)
    DESC (ATTRIBUTE)
    I tried the second method, but that too failed. while entering the INSERT WEB DYNPRO SCRIPT it gave an error 'Error while entering script'.
    Edited by: NIKHILKUMAR POOJARI on Apr 6, 2009 11:04 AM

  • How do I create a drop down list to e-mail a form for signature.

    The desired workflow is for
    1)      Firefighter 1 to complete the top portion of the Agreement
    section, sign in the Firefighter 1 signature field (which locks the top
    portion of the Agreement Section), then select Firefighter 2 from the
    e-mail drop down list and e-mail the PDF form to Firefighter 2;
    2)      Firefighter 2 opens the e-mail and the PDF attachment,
    completes the second portion of the Agreement Section, sign in the
    Firefighter 2 signature field (which locks the bottom portion of the
    Agreement Section), select Lieutenant 1 from the e-mail drop down list
    and e-mail the PDF form to Lieutenant 1;
    3)      Lieutenant 1 opens the e-mail and the PDF attachment, checks
    the approved box, signs the Lieutenant 1 signature field, select
    Lieutenant 2 from the e-mail drop down list and e-mail the PDF form to
    Lieutenant 2;
    4)      Step three continues through Lieutenant 2, Battalion Chief 1
    and Battalion Chief 2
    5)      Battalion Chief 2 sends the fully completed form back to
    Firefighter 1 who copies the completed form to Firefighter 2
    Note: if any of the officers disapprove the agreement the disapproved
    form is immediately sent back to Firefighter 1

    katiesandell wrote:
    how can i create a drop down menu so that when i click on the arrow in the cell i can select from the menu that appears
    Hi Katie,
    Welcome to Apple Discussions and the Numbers '09 forum.
    Numbers vocabulary for this feature is a "Pop-up Menu". It's available as a Cell Format, and is set and edited in the Cell Format Inspector.
    See "Using a Checkbox, Slider, Stepper, or Pop-Up Menu in Table Cells" starting on page 96 of the Numbers '09 User Guide.
    This guide, and the equally useful iWork Formulas and Functions User Guide are available for download through the Help menu in Numbers.
    Regards,
    Barry

  • How do I edit a drop down list in a form just created?

    I have created a form with several drop down lists.  During the design process, I did not enter in data for the drop down, however cannot figure out how to edit that now.  Please help!

    GKaiseril - can you help me please?
    I've created a fillable form in Adobe Professional and my text boxes are prefilling...I did a few tests and it promts me to use the language used in my testing.  I do not want the text boxes to show prefilled options.  I checked Options tab and it does not have any values.  I am not sure why it's prefilling and how to remove it.  Any suggestions?

  • Creating a formula using a alphabetic drop down list?

    I am creating a work sheet using formulas and drop down list. I have one drop down list that has a list of name and the second list is a list of letter that correspond to those names. (ex: column "J" on line "4 - 29" there is the letter
    "A-Z" and then continues , in column "K" line "4" starts the list of names. In Cell B4 is the drop down list of names in column "K" to choose from, I would like the letter that corresponds to that name automatically
    be put into cell A4, how do I create the formula in cell A4?

    Hi Tina,
    According to your description, please following these steps:
    With your sample as shown in the following figure, select range “J4:K29”, and click
    FORMULAS-Defined Names-Create from Selection, and check
    Right column.
    Then, use the enter formula in A4 “=INDIRECT(B4)”.
    And I upload a TEXT.xlsx file on OneDrive, you can download this file via this link:
    https://microsoft-my.sharepoint.com/personal/v-lzng_microsoft_com/Documents/Shared with Everyone
    Hope it’s helpful.
    Regards,
    Emi

  • Restricting values on the drop down list, while creating a PO

    Hello SAP Experts,
       Could you help me with the following.
      While creating a PO (ME21N), based on the Account Assignment Category(KNTTP) entered , I have to restrict the values in the drop down list for selecting the material group (MAKTL). I have searched some in SDN, but couldn't find anything suitable. Appreciate any help.
    Thank you,
    Sorab

    Could anyone tell me , if it is possible. Has anyone tried this before.
    Thank you,
    Sorab

  • Create a drop down list in a cell within a table ?

    Is there a way to create a drop down list in a cell within a table ? Like the way it can be done in ms word or excell ? I dont mean an interactive pdf/form. I want to create a table in indesign which has drop down lists other people can use to populate a table quickly.

    Not possible. InDesign isn't designed to be form-filling software. At best, it can create fields which can be passed on to a PDF file, which usually further has to be edited in Acrobat Pro.

  • Drop Down List empty when user trying to create a Shopping Cart.

    Hi,
        While Creating a Shopping cart.User is unable to select a vendor or a category from the drop down list,As the Drop down list is empty.I have Checked The Extended Attributes Tab for the user in PPOMA_BBP tcode.Are There any other configurations to be checked.
    Appreciate your inputs!!
    Thanks
    Rakesh.

    Hi Muthu,
                 Thanks For your reply.The User is trying to create a Shopping cart,Whilst creating it he is trying to select a Vendor from the Drop downlist.But the drop down list is showing up empty values.The User is unable to pass the vendor to the shopping cart from the drop down list.
    Thanks
    Rakesh.

  • Create a fragment with web service to populate the drop down list

    Hello,
    Can any one please advise/suggest on how to create a fragment in LiveCycle Designer ES with web service to populate the drop down list so I can re-use it for another form. I already have a drop down list to populate the data from the web serivice but need some advise on how to create a fragment for this drop down list so I can start to embed it in other forms as well.
    Thanks in advance,
    HD

    Did you follow the instructions and have a specific question?  Have you also looked at the documentation http://help.adobe.com/en_US/livecycle/9.0/lcdesigner_qs_fragments.pdf

  • Drop down list created by fireworks MX disappears behind Flash movie.  Is there a way to have the menu list display front of Flash movie?

    Drop down list created by fireworks MX disappears behind Flash movie.  Is there a way to have the menu list displays in front of Flash movie, pls. let me know what I should do to have the drop down menue not disappear behind the Flash movie.
    Thanks,
    [email address removed by host]

    Wrong forum... this is to discuss the operation of the forums, not products
    You need a forum for Fireworks or Flash or maybe Dreamweaver
    Go to the index at http://forums.adobe.com/index.jspa to find the correct forum for your question

Maybe you are looking for