Maintaining global lists for ComboBox values

I would like to maintain multi-lingual lists of allowable categories to be used
in ComboBox controls. The values for these lists should be stored external to
the application or at some global level to that they can be maintained by someone
who is not necessarily a developer.
When the user chooses a language when the application runs, the arrayCollections
containing the data/value pairs should be loaded with the data in the appropriate
language. These arrayCollections would be then bound as the data providers to
ComboBox controls in the various modules and components of the application.
For example, in an application about cars there could be a ComboBox containing
colors  - in English (red, gray, blue, black) in German (rot, grau, blau, schwarz).
There could also be a ComboxBox containing body types: (sedan, coupe, convertible)
or (limosine, coupe, cabriolet).
ComboBoxes using the data could be used anywhere in the application - in modules,
components or whatever.
What would be the best way to approach this from a design perspective? Where should
the lists to be loaded into the control's data provider at run time be stored?
Scott

Resource modules are probably the right answer. They can even do an enumeration of sorts (an Array of Strings, which sounds like it could be a good fit for colors). In any case, if you ensure that your model (e.g., CarBuilderManager, with methods like getColors() and getBodyTypes()) is cleanly separated from your views and the actual comboboxes, you can do your localization work in there. Then, in your view, you can declare comboboxes like
<mx:ComboBox id="colors" dataProvider="{model.getColors()}"/>
and you can easily adapt the localization without changing the view (e.g., if you find ResourceManager is not doing it for you, you can roll your own localization method).

Similar Messages

  • TFS Workitems:Bugs : I want ot select different lists, from the global list, for fields basd upon user group

    Hi,
    I am customizing the bug workitem workflow.
     I want ot select different lists, from the gllobal list, for fields basd upon user group
    I am aware that I can use "when" clauses in the allowed/suggested values of the field.
    My question is : how do I get the group(s) that the current user is in and how do use this to select different lists?

    Hi!
    You can not do this through standard way. You must to create the custom work item control:
    http://witcustomcontrols.codeplex.com/
    And get the user group through IIdentityManagementService.
    IIdentityManagementService IdentityService = _workItem.Store.TeamProjectCollection.GetService<IIdentityManagementService>();
    TeamFoundationIdentity _curid = null;
    _workItem.Store.TeamProjectCollection.GetAuthenticatedIdentity(out _curid);
    string _group = "Admin";
    var _gr = IdentityService.ReadIdentity(IdentitySearchFactor.AccountName, _group, MembershipQuery.Direct, ReadIdentityOptions.None);
    if (_gr.Members.Where(s => s.Identifier == _curid.Descriptor.Identifier).Count() > 0) return true;

  • Global Settings for Characteristic values for input help in BexWeb

    Hi gurus
    we use NW04s.  Now my question. How can I set this propteries:
    http://help.sap.com/saphelp_nw04s/helpdata/en/18/f8843b49f6a40de10000000a11402f/frameset.htm
    global?
    For example the characteristic 0customer or 0material has very much attributes an the screen is to complex for the most user.

    Hi ,
    Goto RSD1 -> Put info object name -> Change -> And you will find all the tab pages like General , Bex,Hierarchy, Compounding,Attributes, Master Data,Text etc.
    Hope that helps.
    Regards
    Mr Kapadia

  • Any one have the list for the values of SRW.SET_FILL_PATTERN

    Dear all ,
    I want to change the pattern of field in the report according the condition through SRW.SET_FILL_PATTERN('VALUE?'); but I am unable to do so, by web seraching I got the values for SRW.SET_FILL_PATTERN are 'transparent', 'solid', 'solid dimond' but it is not working can any one help me how can I change the pattern of report field according the conditions ???
    Regards,
    Najeebullah Soomro

    Hi,
    check the following support note as your issue maybe related to that issue too.
    Reference
         NULL Value Items Are No Longer Shaded After Applying 10.1.2.3 Patchset (Doc ID 788852.1)
    Regards, RZ

  • Source List for MRP Area

    Is there a possibility to maintain source list for MRP purposes
    at storage Location level? We receive requirements from a couple
    of our subsidaries and we were consolidating this to be a single
    requirement for our suppliers, however this has changed we have
    to now show each subsidary's requirements individually. We
    currently only use a single plant, previously we created
    additional plants for this and maintained a separate source list
    for each. Is this the best way to represent and run MRP for each
    subsidary? Thanks.

    Dear Kennedy,
    Source list for Storage Location level not possible!!
    An MRP area represents an organizational unit for which you can perform material requirements planning separately.
    An MRP area can include one or several storage locations of a plant or a subcontractor. You can define MRP areas in a plant.
    By defining MRP areas, you can perform MRP for each area. This means the right quantity of materials can be provided on time for each area, such as a production line, a storage location for spare parts, or subcontractor stock.
    Bye,
    Muralidhara

  • Recieve a value and search for a value greater than item

    is this code correct if i wanted to recieve a single argument item and search the list for a value greater than item
    public boolean greaterFound(Comparable item)
         int index = 0;
      while (index < numItems && listItems[index].compareTo(item) != 0)
          index++;
      return ((index-1) < (index));
    }

    Okay here are all the errors piece by piece.
    public boolean greaterFound(Comparable item)
         int index = 0;Well to start with this is not an error per se. But I would just return true if I found a match and false otherwise. There may be some who think that is terrible... I disagree.
      while (index < numItems && listItems[index].compareTo(item) != 0)What is numItems?
    That if is shady.
    What you are checking for is flat out wrong.
          index++;I'd be returning true here
    return ((index-1) < (index));This is just nonsense. As it stands will always return true and invalidates the rest of your code.

  • Source List for Services

    Hi experts,
    I have two queries-
    a. Can we maintain source list for services created through AC01 transaction? If yes how?
    b. We are currently using auto PO functionality for Material PR using ME59. Can we do auto PO for service PR also? How
    Your explanatory reply will be rewarded with full pointsw.
    Regards,
    santosh

    Dear Dheeraj,
    Thanks for your reply for my first question. But can you through some light on the second question? Source list is a madatory element to set up an auto PO (ME59). If we cannot maintain source list how to use auto PO functionality for Service.
    Regards
    Santosh

  • Drop down list for a field in table maintainance

    Hi,
    I have created a table maintainance for ztable. I need a drop down list for field so that user can select values present in the list while giving entries.
    I can not use fixed values in domain, because feild length is more and it wont fit into fixed values.
    I am trying to use VRM_SET_VALUES FM but not getting output. Can any one help me on this.
    Thank you,
    Regards,
    Kusuma K.

    TYPE-POOLS: vrm.        Include this in your program
    DATA: l_name  TYPE vrm_id,
          l_list  TYPE vrm_values,
          l_value LIKE LINE OF l_list.
      LOOP AT it_paym INTO w_paym.
        l_value-key = w_paym-pay_method.
        l_value-text = w_paym-text.
        APPEND l_value TO l_list.
      ENDLOOP.
      l_name = 'Table-field'.   change it as per your requirement this has to be perfect
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = l_name
          values          = l_list
        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.
    Hope it helps you,
    Abhijit G. Borkar

  • How do I make a drop down list of text in numbers as it is made in the example spreadsheet for comparing cars for buying where you can choose a value from a dropdown list for each car?

    how do I make a drop down list of text in numbers as it is made in the example spreadsheet for comparing cars for buying where you can choose a value from a dropdown list for each car?

    Where is this example spreadsheet? Without seeing it I can only guess at what you are asking.
    To make a drop-down list (a pop-up menu in Numbers-speak), format the cell as a pop-up then edit and add to the list of items.
    If the example spreadsheet is pulling in a dollar value based on what car you chose in the pop-up, it is probably using LOOKUP or one of the other lookup functions, getting the information from another table (a lookup table). If, instead, these dollar values are what you are choosing in the pop-up, then you need to create a pop-up with these values in it.
    The Help menu includes a link to a page where you can download the Numbers Users Manual. It also has a link to the Formulas and Functions guide. Both are useful to new users.

  • SetSelectedValue for multiple values in List Box

    Hi,
    I want to set the selectedValue for multiple values in the List Box. If i use setSelectedValue for all the values, it just highlights the last one.
    Can anyone tell me how do i highlight multiple values in the List Box?
    Scenario:
    I have one screen where the List Box and "Go" button is placed. When i select multiple values in the list box and hit "Go" it should display what i have selected in the List Box.
    Note: List Box is generated dynamically.
    Thanks,
    Naresh V

    setSelectedValue as the name indicates will set one value and in your case since you are using it multiple times it would pick the last value.
    When the user selects multiple values from the list box and clicks on Go you can capture those values in the controller for processing. What are you trying to achieve by resetting all the selected values on the same listbox ?

  • How to add a list box with values for a ztable in SM30

    Hello Gurus,
                    I had created a table maintenance for Ztable and added many extra functionality to that. Now i would like to add a list box or check table for a field. Can i do that with out Regenerating my table maintenance. Please help me its..very urgent.

    Have referred this domain to the data element, this should be the Field type in ur table for the particular field.
    Eg: <b>SE11 > table name > fields-ZTEST > fieldtype-ZZTEST</b>
    ZZTEST in the data element > create a domain for this data element and in that specify teh value range.
    Save and activate it.
    Make sure that u regenerate teh table maintenance generator else u cant see the changes.
    Now if u press F4 u can see only thevalues specified, also u will see only the list box with values in SM30.
    Try this,please let me know if u face any difficulties.

  • Is it possible to change values in pagination select list for a report?

    The values showing up in my pagination select list for a report are 10,15,20,30,50,100,200,500,1000,5000.
    Is it possible to not have this list show the 1000 and 5000 values? I've tried setting various row values in the layout and pagination section of the report, but nothing changes in the select list. Is there a way to change this, or is it set up in a template somewhere that I can change?
    APEX version 3.0
    Thanks

    Figured this one out. Using the P1_ROWS item, added a static LOV with the correct values to override the one APEX was providing. The P1_ROWS item goes in the Number of Rows (Item) field in the layout and pagination section of the report.

  • [svn:fx-trunk] 12982: Fix for issue with exposing accessible names for combobox list items

    Revision: 12982
    Revision: 12982
    Author:   [email protected]
    Date:     2009-12-15 20:44:23 -0800 (Tue, 15 Dec 2009)
    Log Message:
    Fix for issue with exposing accessible names for combobox list items
    QE notes: none
    Doc notes: none
    Bugs: n/a
    Reviewer: Gordon
    Tests run: checkintests
    Is noteworthy for integration: no
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ComboBoxAccImpl.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/accessibility/ListBaseAccImpl.as

    Add this to the end of your nav p CSS selector at Line 209 of your HTML file, after 'background-repeat...':
    margin-bottom: -2px;
    Your nav p will then look like this:
    nav p {
              font-size: 90%;
              font-weight: bold;
              color: #FFC;
              background-color: #090;
              text-align: right;
              padding-top: 5px;
              padding-right: 20px;
              padding-bottom: 5px;
              border-bottom-width: 2px;
              border-bottom-style: solid;
              border-bottom-color: #060;
              background-image: url(images/background.png);
              background-repeat: repeat-x;
              margin-bottom: -2px;

  • IE07 and error 'Maintain field selection for Fleet data in Equipment List'

    Hi all,
    When running transaction IE07 (multi-level equipment list) , I get the following error:  'Maintain field selection for Fleet data in Equipment List (Multilevel)'
    I can't see where is the missing configuration point.
    We have activated business function LOG_EAM_CI_3.
    Have anyone encountered this error before?
    Thanks,
    P.

    Hi Narasimhan
    Could you give more details ? where is located this setting?
    Thanks,
    P.

  • How to assign list of default value for select-option variable???

    Hi every one
    This is Deepak,
    I want to know how to assign list of default value to select-option variable ? please any body tel me solution
    for example
    select-option matnr for mara-matnr default ..............and here i want to give more than 1 values that will be default value and use can choose any one at the time of input .
    Thank you in advance
    Deepak

    Hi.
    Check the following sample code.
    REPORT ztn_test.
    " It is example for list populating.
    TABLES:knvp.
    data: BEGIN OF itab OCCURS 10,
          kunnr like knvp-kunnr,
          END OF itab.
    data: wa_itab like itab.
    TYPE-POOLS: vrm.
    DATA: name TYPE vrm_id,
    list TYPE vrm_values,
    value LIKE LINE OF list.
    PARAMETERS: s_kunnr(20) type c  as LISTBOX VISIBLE LENGTH 40 .
    AT SELECTION-SCREEN OUTPUT.
    SELECT kunnr from knvp  into  CORRESPONDING FIELDS OF TABLE itab WHERE parvw = 'SP'. " SP for ur requirement
    " I have used loop to populate some values from table
    loop at itab into wa_itab.
      name = 'S_KUNNR'.
      value-key = sy-tabix.
      value-text = wa_itab-kunnr.
      append value to list.
      clear wa_itab.
    endloop.
    " If u want individaully assign the values change the code as
    name = 'S_KUNNR'." Select option name
      value-key = 1." Index
      value-text = 'VAL1'.
      append value to list.
    name = 'S_KUNNR'." Select option name
      value-key = 2." Index
      value-text = 'VAL2'.
      append value to list.
    CALL FUNCTION 'VRM_SET_VALUES'
    EXPORTING id = name
    values = list.
    Edited by: tahir naqqash on Feb 21, 2009 4:38 PM

Maybe you are looking for

  • Bootcamp partition won't boot with two OSX installations

    Hey, I have a MacBook Pro running OSX Mavericks (10.9.5) and had installed Windows 8.1 through Bootcamp and everything worked like a charm. I then added a new partition to install the developer preview of OSX Yosemite. Everything worked, I could boot

  • How to disable Events

    I want to disable mouse events to be performed on my JFrame. How Should I do this? I used disableEvents method of Component class. But id doesn't function. Here is the code I am using import java.awt.*; import javax.swing.*; import java.awt.event.*;

  • Interactive reports do not execute with Z business role

    Hi all, We have created interactive reports which are working fine and displaying results with a standard business role. However, the report does not even execute when we use a custom business role - no blank screen no error, but the report does not

  • My itunes will not allow transfer of purchased items to my iphone4

    As above, have brought in the heavy weights (my brother/apple expert) and even he is baffled!

  • WebToGo on PocketPC 2002

    Hi, I successfully installed the TODO-Tutorial of the WebToGo-Manual on a Win32 machine. Now, I want to install it on my PocketPC 2002. When I connect to http://ip-adress/webtogo/index.html the login-site appears the Pocket Internet Explorer shows th