Editing simple type for dropdownlist

hi there,
I really need help!
I developed a web dynpro application with a dropdownlist, which I connected with a (simple type) field in the local dictionary.
In my Portal I enabled companies and in the field ume.tpd.companies, there are 2 values (companyA and companyB).
I can get the values of these two values (com.sap.security.api.util.IUMParameters params = UMFactory.getProperties();
params.get("ume.tpd.companies");
Now my problem:
How can I display these two values in my dropdownlist?
Can anyone give me a code example how to "connect" the values from the ume with die data dictionary element from
which my dropdownlist gets its values?
THANX
christoph

Hi,
use the following code in the init.
ISimpleTypeModifiable myType=wdThis.wdGetAPI().getContext().getModifiableTypeOf("<NodeName>.<AttribiuteName>");
IModifiableSimpleValueSet values=myType.getSVServices().getModifiableSimpleValueSet();
values.put("0",<FirstValuein the Parameter>);
values.put("1",<SecondValuein the Parameter>);
and bind the "DropDownByKey: UIELement dataSource to <NodeName>.<AttribiuteName>.
Regards, Anilkumar

Similar Messages

  • Is it possible to edit Simple Type enum imported with a model?

    I have a Simple Type enum which has been created from a model. Is it possible for me to edit the list in Web Dynpro as the 'Add' / 'Edit' button are greyed out?

    Hi Adams
    It is not possible to edit Simple Type enumeration imported from model.
    if you want to use your own values under the list create your own SVS and pass those values to the model
    Best Regards
    Chaitanya.A

  • How to use simple types for table column names ?

    Hi,
    can any one tell how to to use simple types for table column names?
    It is required in internationalizing of webdynpro applications.
    Regards,
    Rajesh

    Hi,
    1: define required column names in <SimpleType>
    2:use the following code to get those values
    3:bind 'text' property of Column headers to context attributes
    4:take a context attribute 'Value' as type of <SimpleType>
    5:set these values to context attributes
    IWDAttributeInfo objAttrInfo=wdContext.getNodeInfo().getAttribute(IPrivate<ViewName>View.IContextElement.VALUE);
    ISimpleTypeModifiable simple=objAttrInfo.getModifiableSimpleType();
    Map m=simple.getEnumerationTexts();
    Collection c=m.values();
    Iterator it=c.iterator();
    if(it.hasNext())
    wdContext.currentContextElement.set<att1>(it.next().toString);
    if(it.hasNext())
    wdContext.currentContextElement.set<att2>(it.next().toString);
    if(it.hasNext())
    wdContext.currentContextElement.set<att3>(it.next().toString);
    Regards
    LakshmiNarayana

  • Unable to edit simple type

    Hi ,
       I need to change the properties of the simple type that we have defined in the dictionary , We are using JDI .I have navigated to the dictionary --> rclick on the simple type --> selected EDIT --> Added the files to the activity --> now when i double click on the simple type and try to change the properties it is giving the following message :
             This simple type cannot be changed because the file xxx.xlf is read only .It is possible that the file has not been chacked out from DTR
        Any idea why i am getting this error .

    Hi Maksim,
          When i do that it is allowing me to change the file , but when i try to save it i am getting the following error
    <b>cannot save language C:\Documents and Settings\test\.dtc\0\DCs\abb.com\report\Report_webDyn\_comp\src\packages\abb\com\report\web\dictionary\velement\LastTransIn.dtsimpletype.xlf
    Please check the files e.g. for writeability / existence.</b>

  • Need example for code use with Simple Type Enumeration

    Hello,
    I've created a Simple Type Enumeration in my Web DynPro Project's Local Directory.
    I see that there is an option there to generate a class representation of this Enumeration. Can someone please show me an example code of how to use this Class. For example, to go over the Enumeration and get all the values?

    hi Roy,
    Try this.
    Iterator chk =
    wdContext.nodeB().getNodeInfo().getAttribute("val").getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet().entrySet().iterator();
    I will check it and tel u in some time...
    Regards
    Bharathwaj
    Message was edited by: Bharathwaj R

  • NW 7.40: Cannot edit CAF simple type

    Hi,
    I've a CAF simple type "ApproverType".
    In the past I was always able to change enumeration values etc. for the created simple types.
    For the complex types this is still possible.
    But since we moved to NWDI it appears as non-editable in NWDS (before the lock symbol was not there):
    I've found a file called "ApproverType.java" in the CAF EJB package.
    But if I add the new enumeration there, the file always gets overwritten when I regenerate the CAF DC.
    How can I edit the enumeration values for that simple type?
    Thanks in advance.
    Best regards,
    Thorsten.

    Hi Christian,
    where and how should I create a new workspace?
    Meanwhile I've found a workaround:
    I've created a copy of "ApproverType":
    There I've added the missing enumeration.
    But personally I don't like this solution...
    The strange thing is that the new type remains editable, whereas the old simple types are all non-editable.
    Additionally all complex structures can still be edited.
    I don't get this.
    Best regards,
    Thorsten.

  • Illustrator's font is different for some reason and hard to read, I need to change it so i can read all the tabs and file names. Like file, edit, options, type, select, effects..... swatches, layers.. every tab is in a different font that is hard to read

    Illustrator's tabs are all in a different font that I can read.
    I need to know how to change it so I can get back to a steady workflow.
    For example..
    File, edit, options, type, select,  effects, view, windows, help..... pathfinder, layers, swatches, stroke, and the file name (all the tabs)
    are all in a different font, I don't know how it got changed but now it is different.
    This is a shared computer so someone might have changes it on accident but I'm not sure.

    Many of your points are totally legitimate.
    This one, however, is not:
    …To put it another way, the design of the site seems to be geared much more towards its regular users than those the site is supposedly trying to "help"…
    The design and management of the forums for more than five years have driven literally dozens of the most valuable contributors and "regulars" away from the forums—permanently.
    The only conclusion a prudent, reasonable person can draw from this state of affairs is that Adobe consciously and deliberately want to kill these forums by attrition—without a the PR hit they would otherwise take if they suddenly just shut them down.

  • AWS Instance Types for SAP HANA Developer Edition

    According to the SAP HANA Enterprise Cloud Appliance Library, the recommended (and only) AWS instance type for running SAP HANA Developer Edition 1.0 SPS08 is m2.4xlarge; however, according to Amazon, this is a previous generation instance type.  Per Amazon's upgrade path, the current generation upgrade from M2 is R3.
    In addition, the m2.4xlarge instance type is costly for those who would like to expand their personal training experience beyond the free developer account on the HANA Cloud Platform.
    Will the R3 instance types (specifically r3.large or r3.xlarge) be made available for running SAP HANA Developer Edition?

    Also want to know this and this thread has the same question Support for AWS EC2 R3 instance type?

  • Best output file type for further editing

    Hi - I was hoping someone could help me with this. I'm making shots which composit various source material (cgi, still images, video from a Canon 7D, etc) which I intend to then edit in premiere for a final output which is as lossless as possible. The trouble is shots which are even a few seconds long render out at several Gb (thus making the final edit enormous - 30Gb+ for two minutes of footage).
    I started outputting with quicktime (animation codec) but was advised to switch to targa sequences but these are pretty huge as well.
    What would be the recommended output for most lossless quality?
    Thanks in advance

    Welcome to the world of video compositing, where quality and file size go hand in hand.  I'm working on a project today that is a 7 minute promo video, and the current job folder is just under 1 Terabyte.  If you are serious about quality work in this field you need plenty of hard drive space.  Hard drives are ridicuously cheap these days - I can buy an uncased 2TB drive for about $80, or a USB 3 2TB for $95ish.
    Quicktime Animation, Quicktime PNG and Uncompressed are common intermediate formats.  Apple users also commonly use Pro Res formats, and the Apple Intermediate Codec.

  • Function types for Balance Sheet Planning missing in SEM-BPS 6.0

    Hi BPS experts,
    After upgrading our BI-system from SEM 4.0 to SEM 6.0 (level 10) as part of the upgrade from BW 3.5 to BI 7.0 (level 15), the BPS function types for balance sheet planning are not available in the planning environment (Transaction code BPS0).
    According to the SAP Library the balance sheet planning functions in SEM-BPS comprises of 6 standard function types - one of them is "Depreciation":
    <a href="http://help.sap.com/saphelp_sem60/helpdata/en/0a/242537cedf2056e10000009b38f936/frameset.htm">help.sap.com -> Business Planning and Simulation (BW-BPS)</a>   
    Menu path: Business Planning Functions -> Functions for Balance Sheet Planning
    In our existing SEM 4.0 we are using "Depreciation" and the functions based on this function type are of course short dumping when executed in our upgraded system (SEM 6.0) as the function type does not exist here.
    Odd though - we do have the function type "Allocation" available in SEM 6.0, which should be delivered with SEM together with the Balance Sheet Planning function types (It is listed directly under "Business Planning Functions" in the SAP Library) .
    I have tried to figure out whether we missed out on activating something during or after the system installation, but our basis consultant has not found anything in the installation guides related to this issue. Also I was wondering whether it could be a simple matter of activating some Business Content but without any luck.
    Does anybody know why the Balance Sheet Function Types are not available in SEM-BPS 6.0?
    Kind regards,
    Lars
    PS: Our system status is:
    SAP_ABA     700     0013     SAPKA70013     Cross-Application Component
    SAP_BASIS     700     0013     SAPKB70013     SAP Basis Component
    PI_BASIS     2005_1_700     0013     SAPKIPYJ7D     PI_BASIS 2005_1_700
    ST-PI     2005_1_700     0005     SAPKITLQI5     SAP Solution Tools Plug-In
    SAP_BW     700     0015     SAPKW70015     SAP NetWeaver BI 7.0
    FINBASIS     600     0010     SAPK-60010INFINBASIS     FINBASIS 600 : Add-On Supplement
    SEM-BW     600     0010     SAPKGS6010     SEM-BW 600 : Add-On Supplement
    BI_CONT     703     0007     SAPKIBIIP7     Business Intelligence Content
    Message was edited by:
            Lars B Rasmussen

    Hi Lars,
    It seems not all the planning function from SEM BPS are available in BW BPS. Please check the links below: -
    what is the difference between BW 3.5 BPS and SEM BPS 4.0
    BW- BPS and SEM- BPS
    SEM-BPS VS BW-BPS
    BCS Doc
    Regards,
    SK

  • Integer Validation Simple Type

    Hi to all
    we have requirement that the value entered should be with in the range 0 to 9999
    For this in webdynpro for java i tried to create a simple type of integer  with minimum inclusive as 0 and maximum inclusive as 9999
    but if we give say 99999 it gives valid message -- Value 99999 must be smaller than MaxExclusive 9999
    if we give  23423423423423423423 it gives the java message integer range should be with in this range -2147483648 and  +21...)
    if we give decimal values it gives the same java message integer range should be with in this range
    2147483648 and  +21...)
    For me
    i should always be able to get this message Value 99999 must be smaller than MaxExclusive 9999 or
    Value -1 must be greater than or the same as Minclusive 0
    irrespective of the input
    is there any way that i can have this kind of message
    to conclude what ever the input i give it should give me message value should be with in the range 0 to 9999
    could some one please help in this tricky requirement
    Thanks in advance
    Regards
    Chandra

    Saleem, the user is entering a numeric value, question is which data type it is, int/float/long/double
    Chandra,
    Value 1.1 is not an integer value or a long value. The data type is float.
    when you converted it in a string, look for the indexof(.), and check the value of string after (.), it should not be greater than 0. If it is, the entered number is not an integer.
    so it goes like this
    string a = substring( string after " ." ) ;
    int i = int value of a ;
    if ( i > 0 ) "please enter an integer value " ;
    else{ conver to lang and do remaining process }
    Regards,
    Nitin
    Edited by: Nitin Mahajan on Jun 19, 2009 12:16 AM

  • Simple name for the portal path

    Hello.
    Is is possible to setup Apache as to have a simple name for the http:\\servername\pls\etc.etc.etc. address? How do i set this up?
    Thx.

    Thx, but i wanted something like this:
    the address
    http://<servername>:<portnumber>/pls/portal30/etc.etc.etc.
    should be contacted only by typing the following address:
    http:/portal
    The homepage of Portal should be shown then. I managed it now, but that is not the right way. Normally, when you type the servername, you will see an information page on Apache. I edited that page, so that it redirects in zero seconds to the url where portal is running.
    But that is not a real nice way to do it. Any ideas?

  • Change Simple Type

    Hi,
      I have created a simple type and deployed. Now, when i am trying to edit,it is in read-only mode.How can i edit the description of simple type?
    (Valuable answers will be awarded with points).
    Thank you,
    Arpitha

    Hi Arpitha,
    Well do you require to change the value at runtime or design time?
    For designtime:
    WebDynpro explorer->Dictionary->local dictionary-->Data types->simple type--->ur simple type(Name).
    Double click ur simple type(name), automatically the window will open then change the fields and close.
    or goto the WD Explorer and  to the dictionary and open it you'll get the simpletype.Now here you can change it as per your requirement.
    Please clarify if it's at runtime.
    Regards
    Amit

  • Billing type for Purchase order

    Hi,
    i just want to know that, when we create Purchase order, then Delivery and PGI, Now i am creating billing document with respect to delivery, where we define this Billing document type for this Purchase order.
    I know that, for Standard order , we can define billing doc. type in Sales docu type details, but while i have few senarios, where i need to defined different billing type for different Purchaser order type.
    thanks in advance
    Regards
    Vanraj

    Hi
    Very simple
    In OVLK
    Copy delivery type LF to another delivery type YLF
    Assign this YLF to your PO type in the spro area mentioned in the previous post
    In VOV8 copy DL to ZDL
    Now assign this ZDL as a peseduo order type type in the OVLK configuration of YLF
    Now in VOFA copy F2 as another YF2
    Maintain Y F2 as the billing type in the sales doc type ZDL in VOV8
    Now your PO is connected to YLF delivery type and the YLF delivery type has ZDL  peseudo order type and the details of ZDL  billing is mentioned as YF2
    So your PO picks up billing type YF2
    PO-YLF-ZDL---YF2
    PO-DELIVERY TYPE-PSEUDO ORDER TYPE--BILLING TYPE
    Hope you are getting the flow
    Why you need all these? Standard SAP has all these
    There is no need to do all these
    SAP has done all these
    We need to know it and the flow only
    Regards
    Raja
    Edited by: ramanathan raja on Feb 5, 2010 8:13 PM

  • Reg. checkbox by group and simple types

    Hi,
    I have checkbox by group UI elemnet.
    I have binded the text property of the checkbox by group to a context attribute and its type property is selected from a simple type.
    In the view layout on NWDS its showing the label names which i hav given in the simple type. but when i deploy it and run it in browser its just showing only one check box. its not showing the label names.
    how to get the label names, using simple types. i,m able to get it using code.
    how to get it by simpletype???
    thanks, suresh

    hi,
    in case of check boxes, it will not work with
    a simple type
    write code similar to this according to your requirement
    in wdDoModifyVIew();
    if(firstTime){
    String[] names = {"one","two","three"};
    for(int i=0;i<names.length;i++){
    IPrivateCheckView.IXElement nelem =wdContext.nodeX().createXElement();
    wdContext.nodeX().addElement(nelem);
    nelem.setName(names);
    where X is a node ,
    Name is attribute under node X
    of type string
    bind the texts property of the check box group to the Node X
    Regards,
    Satya.
    Edited by: Satya on Nov 7, 2008 8:34 AM

Maybe you are looking for

  • XORG: Keyboard don't work right

    Hi, after the last System update my keyboard (under xorg) is totally messed up! The arrow keys,the del key the Pos1 key, the End key.....  all don't work. All characters numbers and special characters like(!"§$%&/....) work though. Even the German "U

  • Calculation of Depreciation on Sub Number.

    Hi, Pl. provide your valuable remarks for the below 2 points. 1. What is sub number? In which cases we should use this. 2. In cases of heavy repairs & maintenance of assets, when amount will be capitalized, whether it will be treated as a separate as

  • Better ways to work with the pen tool

    I'm finding the pen tool a real aggravation to use... first off you cannot hardly see the points once a path is completed.  Even blowing the artwork up really big doesn't help much. Then its really easy to loose the ability to move individual points.

  • Player update 11.5.9.620 has changed the DLL directory for Xtras?

    Hi all, we have created and used a Shockwave Xtra for quite a while now. This Xtra has (on Windows) some dependencies to DLLs which we packaged into the Xtra package file. If you enter a website with Shockwave that requires our Xtra the package is pu

  • Instaead of writing the page displays little squares, some with numbersin them.

    site briefly for a second or so displays correctly and then displays squares instead of english letters. Some have numbers in them making them look like chinese characters. Displays OK in previous firefox version.