Get string value from enumerated value on AE user interface

Hello.
I'm trying to get the string value from a enumerated value on a layer's property.
When I get the value via script, I have  1D value. However, I need the string value.
In this example, the value I would get is 1. Is there any way I can get "Horizontal and Vertical".
I'm looking for a generic way (any property value defined this way), not for this case only.
Thanks for the help.
cheers.

You get the selected value via the value property of the component.
Timo

Similar Messages

  • Replacing Null Values From existing values in table.

    Hi
    Using 9i R(2).
    Tbl_1
    Col_A varchar2
    Col_B varchar2
    Col_C varchar3
    (no PK/FK)
    I want to inset the missing values (null values) of columns B & C by taking values from filled values from same table on base of Col_A.
    Examples
    Col_A || Col_B || Col_C
    Item_1 || Red || 2Kg
    Item_2 || Blue || 1.5 Kg
    Item_1 || Null || Null
    I want to inset values in the Null value fields of Row3 (Col_B & CoL_C) from Row1 as Col_A is same at both rows.
    Please advise how to do it efficiently.
    Thanks
    Jawad

    http://www.orafaq.com/forum/m/160947/42768/#msg_160947

  • How to convert value from exp. value to double/float???

    Hi all,
    I am fetching values from database, which is of type double / float.
    eg. values will be like -22,777,548 will be stored in database.
    NOw if i use
    float a= rs.getFloat(1);
    out.println("a="+a);
    I get output as a= -2.2777548E7
    I want to remove "E" from out put value and display as it was given in DB.
    How to solve this problem?
    Please Help!
    Regards
    Ashvini

    What do you mean - 'how does it work' ? All format classes (MessageFormat, DecimalFormat , SimpleDateFormat etc) are used to convert data from one form to other. Go through the java.text.* api. They work based on some pattern searches, pattern matches etc - dont know in detail :)
    As for the other things, thanks :)
    cheers,
    ram.

  • BEX F4 help values from posted values in Info Provider not from Master data

    We have an info object called Archival purpose and it is display attribute of Master data info object Archive Number. Both Info objects are used in a cube. Posted values in cube have only two value for info object Archival purose which is "EXCOM" and "EA".
    But when we do the F4 in the bex query, we see some other F4 values. Although Master data is having other entries but we have defined in the bex property of both the info object to read the f4 value from the posted values in the info provioder.
    Please suggest how to get values in bex F4 help only from posted values in info provider and not from the master data.
    Thanks

    Hi,
    You don't need to change the Infoobject definition as it will become global and it will be applicable for whereever this infoobject is used.  Instead you can manage this setting for this particular Infoprovider.
    Go to RSA1 and double click on your infoprovider used for this query, go to change mode. From the right hand side dimension tree search for the Infoobject for which you want to maintain this property. If it is navigation attribute then you can search it in navigation attribute tree.
    Once you find the infoobject right click and from context menu choose the first  option "InfoObject specific properties". In the next popup in the last option about F4 values for filter you can select the option, "Only values from Infoprovider".
    Regards,
    Durgesh.

  • Select-options - select multiple values from personal value list

    Hi experts,
    In my application, I am using select-options. I select the values required from the search help into the personal value list . I want to copy these values from the personal value list into my ranges table. Do I have to copy them one row at a time. Is there any way to select the values directly into the ranges table of the select-options field?
    Regards,
    Abdullah.

    Boy, this is something we're struggling with too. So we'd like to hear others' ideas on this also.
    thank you,
    iggy

  • Retrieving empty values from multi value string in user profile custom properties

    Hi,
    I created a webpart to save and retrieve data from custom properties. I use the code below to get the stored data:
    for (int i = 0; i < profile[property].Count; i++)
    Item = profile[property][i] == null ? string.Empty : profile[property][i].ToString();
    list.Add(Regex.Split(Item, @"\,\#"));
    Nothinig special about it.
    In my development environment, it works fine. The problem is  in my UAT environment. I'm facing an issue that i hope someone has been through. When the custom property is a multi value string type, it returns a empty string. I tested with HTML and single
    value fields and it works fine.
    Independently of the field type, it saves the data all right.
    Can anyone help me?
    Thanks!!

    Thanks, Chitvan Jain.
    I did as you suggested, but nothing changed. The problem is that profile[propname] comes already blank when using multi value property, even if there is data  to be retrieved.
    One funny thing is that, somehow the code manages to count the number of values there is in the property. Only the data is missing. We can see the exact number of column, cause i check if there's the right number of data, if there isn't, i add up  a empty
    string on the grid cell, but only for viewing. The empty string is not stored in the property.

  • Select only one specific value from two values contained in an item in form

    hi ,
    i am newly creating a form.
    in the all item i an displaying on control block,
    in one item "dummy.formule" i am taking the value as '1-xyz' where 1 is nummer and xyz is naam
    or '99-fgj'.
    but for the next block i want to write a query in which in the where condition i need to use the nummer from dummy.formule.this query is dymannically created at run time.
    i am wrting this query in the when validate of the "dummy.formule" .
    how i get the specific value that i required?

    923315 wrote:
    hi ,
    i am newly creating a form.
    in the all item i an displaying on control block,
    in one item "dummy.formule" i am taking the value as '1-xyz' where 1 is nummer and xyz is naam
    or '99-fgj'.
    but for the next block i want to write a query in which in the where condition i need to use the nummer from dummy.formule.this query is dymannically created at run time.
    i am wrting this query in the when validate of the "dummy.formule" .
    how i get the specific value that i required?First look at it. dynamically create pop list at run time. close it.
    what you mean by "naam" ?
    If the value has a specific format like as you write "1-xyz,99-fgj". you can use instr function and substr function to cut it out..
    Hope this helps.

  • Look-up name value from XML file based on user entered number value

    My form has an "Employee Number" numeric field and an "Employee Name" textfield. I want the user to enter their employee number and have JavaScript that will "look-up" that employee number in the XML data file and return the corresponding Employee Name into the employee name textfield. I need an example XML data file and form with the appropriate script.
    Can anyone help me with this?

    Hi ,
    Re-read your post, find that the col2 in List1 is people and group type column, SharePoint Lookup type column showing additional fileds option does not support people and group type column, so there should be no OOB method to achieve your
    goal.
    http://techtrainingnotes.blogspot.com/2012/01/sharepoint-not-all-column-types-can-be.html
    I think you can try using InfoPath form to manipulate the correspond col2 value when lookup col1 from List1 then show in list view, or may use custom visual web part to achieve you goal.
    http://sharepointsolutions.com/sharepoint-help/blog/2011/11/get-infopath-to-display-lookup-column-value-not-id/
    Thanks
    Daniel Yang
    TechNet Community Support

  • Get String array from Resultset

    In Tomcat 6.0.20 I am attempting to create an Oracle 9i resultset that outputs as a String array and need help creating the method.
    The CityData getCityList() method will be called in the CityServlet:
    CityServlet: String [] citys = cityData.getCityList();
    I started my below attempt but not sure how to handle the List/array part:
    CityData class: public ArrayList<String> getCityList() {     try {           .....           List<String> citys = new ArrayList<String>();           while(rs.next())           {               citys.add(rs.getString("city"));           }       }     return citys; }

    Hi!
    Try this:
    public City[] getCitys() throws Exception
        String sql = "SELECT * FROM citys ORDER BY name ASC";
        Vector v = new Vector();       
        ResultSet rs = null;
        java.sql.Statement stmt = null;
        try
            stmt = conn.createStatement();
            rs = stmt.executeQuery(sql);
            while( rs.next() )
                City city = new City(rs);
                v.add(city);
        catch (Exception e) { throw e; }
        finally
            try
                if (stmt != null) stmt.close();
            catch (Exception e) { throw e; }
        City[] citys = new City[v.size()];
        for (int i = 0; i < citys.length; i++)
            citys[i] = (City)v.get(i);
        return citys;       
    }Edited by: Bejglee on Mar 3, 2010 3:59 AM

  • How to get String object from integer

    Hi,
    I am getting some problem with checking for equality. I had a primitive integer. How to convert it into String object?

    Please consult the javadocs:
    java.lang.Integer.toString(int i)
    will do it.
    "I am getting some problem with checking for equality" - elaborate.

  • How to get SAMl assertion from SOAP Header and propagate user context to BW

    Hello to all,
    we implemented this scenario:
    3rdparty System to SAP PI 7.11 to SAP BW.
    sync. communication via SOAP Sender adapter and Receiver XI PROXY.
    We get a SAMl assertion in the SOAP Header from the 3rd-Party System.
    The SAP BW System could not read the Header information.
    How can we get the information of the SOAP Header in the PI System and send the usercontext via XI Proxy to the SAP BW system?
    Can we read the Header information in the SOAP adapter and mapping it to another field in the payload or Headerinformation which could read in the backend system in the proxy class?
    Thanks for your help and regards
    Martin

    Dear Fox,
    Thanks for your reply.
    Is it mandatory to have the Header elements and the message defined in the Mediator wsdl?
    At present I have not defined it in the WSDL.
    Thanks,
    Subin

  • How to get a value from User's AD attribute and Display it on a SharePoint page ?

    Forum,
    We have a specific attribute in Active Directory for every single user. Meaning: In our Active Directory we have an attribute e.g. "UserType" and the value of this attribute is different from user to another.
    Requirement: I need to display the value of this attribute on the SharePoint page - How to do so?
    I don't think using the User Profile properties is the way to go. So, Could you please guide me on how to use C# or JavaScript to retrieve the value from AD attribute of each user and show it on the SharePoint site?
    Thanks for your inputs !

    Using C# or javascript to authenticate the user to AD to read the property directly will be very difficult. Creating a custom user profile property and adding a sync from AD to that property is definitely the easiest way to do what you are describing.
     Once its in User Profiles there are lots of samples on how to add it to the page.  
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Help with exporting document and generating an enumerated value error

    Can anyone help me figure out why I cannot get this script to export the document and save it for the web?
    I keep getting the same frustrating "Enumerated Value expected".
    here is the script thus far:
    * attempting to create a script to insert names automatically within photoshop cs2. Similar to the PSP.
    tag = app.activeDocument;
    var lee = ["Barb","Belle","Betty","Carmel","Christy","Connie",
    "Debbie","Debra","Denise","Diamond","Dolceluna","Irene","Jacqui"];
    //determine if active layer is a text layer or not.
    if(tag.isBackground == true){
    alert("this is a background layer and cannot be changed.");
    else{
    alert("this is the name layer.")
    for(i=0;i<lee.length;i++){
    tag.activeLayer.textItem.contents = lee[i];
    var options = new ExportOptionsSaveForWeb();
    options.format = SaveDocumentType.PNG-24;
    options.interlaced = false;
        options.PNG8= false;
    var fName = lee[i];
    var newName = fName+'-'+tag.name+'.png';
    alert(newName);
    //EXPORT DOCUMENT KEEPS GENERATING ENUMBERATED VALUE EXPECTED
    // web.matte = MatteType.NONE;
    tag.exportDocument(File(tag.path + '/' + newName),ExportType.SAVEFORWEB,options);
    } // closes for loop
    }// end of else statement

    Yes the guide is misleading. It says 'For this property, only COMPUSERVEGIF, JPEG, PNG-8, PNG-24, and BMP are supported.'
    It really should say 'For this property, only COMPUSERVEGIF, JPEG, PNG, and BMP are supported.'
    But if you look under SaveDocumentType you will not find PNG-8 or PNG-24 listed in the values.

  • Populating Multirecord text fields from Tlists value's combinations

    I have a UI wherein there are two T lists, one on the Left and other on the Right. The left one contains
    From values and the Right one contains To values. There's one Button which when Pressed should populate
    a Data Block which has multi record text fields just below the button with all the possible combinations of
    the T lists elements. The Text fields have the values From, To, Time, Unit. When populated From and Two will
    get the values from the combinations and the user will enter the values in other fields i.e. Time and Unit,
    Then the user can save the Records.
    e.g. If the Left T list contains Red, Blue and the Right T List contains Green, Black. Then on pressing
    the button below the T lists, the text fields From and Two of a data block displayed in the same window
    should get populated with all the possible combinations as:
    From || To || Unit || Time
    Red Green
    Red Black
    Blue Green
    Blue Black
    Now the user can enter the values for Unit as well as Time and when he does save the Records should be inserted
    for the Data Blocks DML Source that's some table.
    What I'm trying is:
    On pressing the Button i'm writing code that will have Two PL/SQL Tables(Index by binary_integer). One will have
    all the values of the left T List and the other with all the values of right T List.
    I do it as in the WHEN BUTTON PRESSED as:
    DECLARE
    TYPE varchar_table IS TABLE OF VARCHAR2(30) INDEX BY BINARY_INTEGER;
    from varchar_table;
    to varchar_table;
    v_count1 NUMBER;
    v_count2 NUMBER;
    v_count3 NUMBER;
    v_count4 NUMBER;
    BEGIN
    v_count1 := Get_List_Element_Count('CONTROL.FROM_TYPE');
         FOR i IN 1..v_count1 LOOP
              from(i) := Get_List_Element_Value('CONTROL.FROM_TYPE', i);
         END LOOP;
    v_count2 := Get_List_Element_Count('CONTROL.TO_TYPE');
         FOR i IN 1..v_count2 LOOP
              to(i) := Get_List_Element_Value('CONTROL.TO_TYPE', i);
         END LOOP;
    END;
    Now how will I populate the text fields with the values in the tables that i got with the piece of code above.
    Any help would be appreciated. Any other method other than the one i'm trying is also welcome. Please note that
    i'm not using any table to store the elements in the T Lists. The lists get values at runtime by
    user's selection.
    Thanks,
    Abhishek.

    Try and stay civil in your postings. The solotion should be to simply issue a GO_BLOCK, followed by a CREATE_RECORD followed by setting the approriate values :block.value = <value from list>

  • Output Message from Purchasing Value Key

    Hi All,
    Can anyone tell me how to configure the message and the output parameters for the time defined with the Purchasing Value Keys? What are the steps needed to create the message and to add an output?
    Any help would be greatly appreciated and ofcourse rewarded.
    Thanks
    Message was edited by:
            Steven Woods

    My observation is if purchasing value key is either blank or U (if it exists in the system as it can be kept or deleted) in the material master, the values from purchasing value key U is adopted in STO automatically. If purchasing value key is other than blank or U in the material master then the values from exact purchasing value key (from the material master) is adopted in STO.
    Need to have clarification on this whether it is controlled by configuration or it is hard coded in the system that Item Category U should pull purchasing value key U in STO if not getting purchasing value key from the material master.
    It would be great if some one can assist in this matter for clarification
    Thanks in advance

Maybe you are looking for

  • Problem when getting resultset when using connection pooling in weblogic

    Hello, I am new to database connection pooling. I am using weblogic server, Java 1.6, MySql database. I have done connection pooling in weblogic server. The problem arise when I try to run select query I cannot fetch data in ResultSet. For insert it

  • IDisk keeps saying it is "re-sizing"

    Greetings I am new to iDisk. The only thing I had on it for ages was a single jpg. Then one day I uploaded three audio files to my public folder for someone to download. Once that was done I deleted the audio files and since then when ever I log in t

  • One of the RV042g routers freezes

    I bought two RV042G routers manufactured 07-2012. One works fine, the second loses VPN connection and access to the web interface in a few minutes after power up (internal network continues to operate normally and have access to the Internet). Both h

  • Strange problem...has anyone seen this?

    Hi, my iPod 5G video is behaving strangely... after not using it for a few days, it will ask me to use iTunes to restore the iPod when I try to turn it on. Then I reset the iPod by holding Menu+center button. After a brief moment everything in the iP

  • New Z70 Keyboard issues

    Hi all, I have recently just purchased the new Lenovo Z70 laptop and it arrived a few days ago. Everything about it seems fine except the keyboard, it works but only just you have to really push hard and very central for it to register me pushing key