How to get the display name of the dropdownlist?

How can i get the display name of the dropdownlist.
I want to have value as other data not the same as display name.
In that case is there any easy way to get the display name of the selection from the dropdownlist.

I usually just use a hashmap to store the value and label, if I want to retrieve the label again later.
          HashMap bleh = new HashMap();
          bleh.put(dropDownValue, "Drop Down Label"); //Item value (any object), Item Label (String)
          Iterator it = bleh.keySet().iterator();
          while (it.hasNext()) {
               Object key = it.next();
               SelectItem selectItem = new SelectItem(key, bleh.get(key));
          //And then later, when you want to retrieve the label
          bleh.get(itemValue); //The item value of the label you wantThe value is easy to get because the selected item(s) from the list will be set to the value(s) the user selected. You should have a getter in your bean for that.
CowKing
Message was edited by:
IamCowKing

Similar Messages

  • How to get a server name through the load balancer

    Hi.
    I'd like to get the server name where is my application installed. There are some servers and clients access there throuth the load balancer. When I try to get it with request.getServerName(), I get the virtual address of the load balancer.
    Any suggestions?
    Thanks.

    Dear Sikindar;
    THanks for your cooperation, but I believe that these Tcodes will eb helpful if I know the table name, actually we don't know its name and that's what I'm asking about, how can I get the table name for the ABAPer?
    Appreciating your cooperation.
    Best Regards;
    Lobna

  • How to get ther servlet name from the Httprequest / servletContext

    Hi,
    How can I get the servlet name from the Http Request / Servlet conext?
    Arthik

    I have a requirement to call the business logic either in local server / external server.
    Local / External server
    The original / main request is made to the server from the client and from the server if the main request requires some resource (second request from server side) available in the external server then I need to make a URL connection. If the requested resource is the local resource then I need to by-pass the HTTP call. So I need to verify the server name , port with the originally requested server.Then I need to check if the request servelt is available in local or not.
    Can you please help me.

  • How to get value and name of the n'th parameter in a pl/sql funct./proced.

    procedure test(name varchar2, birthdate date, zip number, country varchar2);
    in procedure x I do
    test('Michael Postmann', to_date('03.01.1983', 'DD.MM.YYYY'), 7461, 'AUSTRIA');
    And this should htp.print the following:
    test: name=Michael Postmann,birthdate=1983/01/03,zip=7461,country=AUSTRIA
    In procedure test I want to know:
    *) What is the name of myself (the procedure)
    *) Optionally: Am I a procedure or a function?
    *) How many Parameters do I have?
    *) What are the values of them?
    *) What are the names of them?
    *) Optionally: What are the types of them?
    What I actually want to do is:
    I have a procedure for logging errors. So in my program I call this function frequently and I want it to log the current time, a string passed to the logging function, the client's ip, etc.... but it should also log a list of the parametrs and values of the procedure/function where the error occoured.
    Is there any way to do this (I think in C this is done by argc and argv, but a string containing all the information (as you get it from the WebDb when something goes wrong) would be enough)?
    Thx in advance,
    Nomike aka Michael Postmann

    Name of procedure or function can be retrieved using DBMS_UTILITY.FORMAT_CALL_STACK:
    CREATE OR REPLACE FUNCTION fn_whoami (v_in varchar2)
    RETURN varchar2
    AS
    v_stack varchar2(1000) DEFAULT DBMS_UTILITY.FORMAT_CALL_STACK;
    v_job varchar2(500);
    v_name varchar2(100);
    BEGIN
    v_job := SUBSTR(v_stack,INSTR(v_stack,'function'),256);
    v_name := SUBSTR(v_job,1,INSTR(v_job,CHR(10))-1);
    return v_name;
    END fn_whoami;
    select fn_whoami('1') from dual;
    CREATE OR REPLACE PROCEDURE pr_whoami
    AS
    v_stack varchar2(1000) DEFAULT DBMS_UTILITY.FORMAT_CALL_STACK;
    v_job varchar2(500);
    v_name varchar2(100);
    BEGIN
    v_job := SUBSTR(v_stack,INSTR(v_stack,'procedure'),256);
    v_name := SUBSTR(v_job,1,INSTR(v_job,CHR(10))-1);
    dbms_output.put_line(v_name);
    END pr_whoami;
    exec pr_whoami;

  • How to change the display name in the filter view

    Hi,
    I have one column "*Year*" and type in case when 1=2 then "product_d"."name" else "calendar_d"."year" end.
    I add a filter view for it. but when I select, like 2010, it will display"case when 1=2 then "product_d"."name" else "calendar_d"."year" end" is equal to 2010.
    So how can I change it to "Year is equal to 2010"?
    Any one have any idea about this?
    Regards,
    Anne

    anne wrote:
    Hi David,
    About your confuse about"case when 1=2 then "product_d"."name" else "calendar_d"."year" end".
    You can try in your locale.
    You will find they are different.
    BASED ON THAT you have two table product_d and calendar_d AND they are related by one Fact table.
    THEN When you type in
    "case when 1=2 then "product_d"."name" else "calendar_d"."year" end"
    AND
    "calendar_d"."year",
    IT WILL SHOW U TWO different RESULTS.
    I need to show year which its related product is not null. but I cannot use SHOW->SQL RESULTS->TYPE SOME "WHERE..." because I also need to use "constrain"..
    That why I choose to use a case when function..
    So, do you have any idea about this?
    Regards,
    AnneWhy not use two filters in your request? Have something like this:
    product_d.name IS NOT NULL
    AND
    calendar.year IS PROMPTED?
    ...instead of using a CASE statement? This way you can have both filters show the way they should in a meaningful way.

  • Change the display name of the Profile Manager Portal?

    Hello.
    Does anyone know if it's possible to change the name that's displayed on the Profile Manager User Portal? It's using my server name and I'd rather it be something a little more generic? Is this possible?
    Thanks,
    Kristin.

    Hello,
    Currently, the Power View report doesn't support the drillthrough feature like "Go to URL".
    Personally, I recommend you that submit a suggestion at
    https://connect.microsoft.com/SQLServer/. Your feedback is valuable for us to improve our products and increase the level of service provided.
    For more information about the features supported in Power View, please see
    Power View (SSRS).
    Regards,
    Fanny Liu
    TechNet
    Subscriber Support
    If you are TechNet
    Subscription user and have any feedback on our support quality, please send your feedback
    here.
    Fanny Liu
    TechNet Community Support

  • How can I change the display name of a contact in my address book?

    If I open one of my contacts in the Address Book, the display name is the name of the organization. I want it to be the last name of the individual. How can I change that?

    Thank you for your reply. I realize from your answer that I didn't poise my question properly! If I have not entered anything in the 'Display name' field then the message header (i.e. the title of the business card) follows by default the name of the 'Organization'. I wanted to know if it's possible to change this so that the message header of the business card follows the 'Last name' of the person and not the name of the 'Organization'. Thank you!

  • How can I change the display name when I call someone?

    I recently gave a re-provisioned 8300 to a new employee. I wiped out the phone, and re-setup the phone in our exchange server to match the new user's settings.
    The only problem he's having is that when he calls someone, the display name shows the previous users name as the person calling.
    How do I change that?
    Thanks in advance,
    howe132

    You don't say what model the device is, but if GSM, make sure the SIM card has not been edited to the preview name.
    Options > Advanced > SIM card > Menu > Edit Sim Phone Number
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How to change the Group Display Name in the UME?

    Hello experts,
    from time to time due to reorganisation our departments group names change.
    So far this was a big deal because it is not possible to change the Display Name of a group created in the Portal´s UME?
    So far a new group with the department name has to be created and all group members have to be connected to the new group again. This is not a convenient way..
    Is there a way to configure the UME to allow to modify the Display Names of Groups?
    Thanks in advance.
    Thomas
    Edited by: Thomas Krynicki on Jan 19, 2009 5:15 PM

    Thank you for the quick answer.
    However my problem is still not solved.
    I am using the portal groups also as permission objects for KM. That´s why I do not want to create a new group because the new one will not appear in the ACLs of the KM Objects.
    For me it is important to modify the Display Name of an existing Group. The GroupID shall not change. The new Display Name should be updated then automatically in the ACLs of KM Objects in question.
    By exporting the group data:
    [group]
    gid=TeamA
    gdesc=All members of Team A
    user=member1, member2
    There is no parameter for changing the Display Name of the group. There is only the Description Parameter.
    So far I didn´t find any solution.
    Any other ideas.
    Thanks in advance.
    Thomas

  • How to change display name of the attachment item attribute.

    Hello Experts
    I have a requirement to send a notification with attachment but attachment name should be attachment name,
    Is there any way to change the display name of the Attachment
    Please advise;
    Thanks
    Rajesh.

    Azmathulla,
    It is not possible to change the name of the server, but you can add a label to it (see attached screenshot).  And yes, it can be done during production hours, this doesn't affect the production data.
    Please let me know if this answers your question.

  • IP phone display name of the called party with grabage

    Hi,
    I am running CME with 12.4.14(t) ios. The problem which i am having is that when anyone dial any extension, the name is displayed of the called extension & some garbage charater are shown

    Hi,
    CSCsj18014 is:
    Caller ID string received with extra characters
    Symptoms: A caller ID may be received with extra characters.
    Conditions: This symptom is observed when caller ID is enabled on both
    routers and when the station ID and station name are configured on the FXS
    side.
    Workaround: There is no workaround.
    The reference of FXS ports makes be believe that CSCsj18014 is not the applicable bug. However, in the same results page, we see another bug matching better a problem of garbage w/o FXS ports:
    Garbage characters in called name displayed on calling phone
    Symptom: Garbage characters in called name displayed on calling phone Conditions: When placing a call from one phone to another phone on CME using 12.4(11)T3, the displayed name on the calling phone gets some unidentified characters at the end of the displayed name after a few seconds have passed. The problem was NOT seen in 12.4(11)T2
    Now, the bug toolkit does not give the number for this "related bug" and I was not able to localize it.

  • Change the language in the display-name of a train stop

    Hello,
    does anybody know how to use internationalization in the <display-name> of a train stop?
    Bye

    Hi,
    I use the default model, and when trying to set the Display Name in the View Properties (a train stop), in the train task flow, i can not select a resource boundle key in the expression builder.
    If I set something like:
    <view id="datosRegistro">
    <page>/registro/datosRegistro.jsff</page>
    <train-stop>
    <display-name>#{viewcontrollerbundle['trainlabel']}</display-name>
    </train-stop>
    </view>
    Nothing appears in the train stop label.
    Of course, I have register the resource bundle in faces-config.xml file
    Thanks

  • Renaming Name of Keyboard, not just the Display Name of Keyboard

    I lent my keyboard and trackpad to a friend, and when they were returned, they were named with his name.
    I easily changed the Display Name to my own, but the Name in the Bluetooth Preferences panel remains the name of my friend.
    I even found the string where his name is embedded - it is within a file called "com.apple.Bluetooth.plist" inside Library > Preferences.
    I downloaded the Developer app called XCode, which allowed me to edit a copy of "com.apple.Bluetooth.plist", and put my own name where it incorrectly says my friend's name. I then dragged the copy into the Library > Preferences after trashing the incorrect one.
    Proble solved, right?
    But on restart - or even after sleep - my iMac alters the corrected file and returns it to the incorrect name - the name of my friend.
    Seemingly, it must be using some info in a cache somewhere. So I read that Bluetooth caches may be stored in the PRAM of an iMac, so I tried the technique of restarting while emptying the PRAM by holding Ctrl-Option-P-R, but that did not help. Honestly I am not sure that the PRAM empties when one is using a wireless keyboard anyway, since the Mac is probably starting for awhile before it gets around to checking on its Bluetooth devices. But, in any case it did not work to get rid of my friend's name.
    I am *this* close to buying a brand new keyboard and trackpad so I can be rid of the accursed name.
    There must be SOME way for my iMac to treat my existing keyboard and trackpad as if they were brand new, and get rid of the damned old incorrect info!
    Anyone found a solution to this? I've seen other threads where people failed.

    Holy snit, I found the solution.
    For the keyboard:
    In the Bluetooth Preferences, when you highlight the Keyboard and click the gear, click Rename, and - this is the part that everyone I've read about has failed to do - change the Display Name from, say, Will's Keyboard to Will B's keyboard. That changes the Display Name, which we already knew and which wasn't the point. The point is that it also changes the Name. Then, again change the name back to Will's Keyboard, and both the Display Name and the Name changes to Will's Keyboard.
    For the Trackpad:
    It doesn't work exactly the same, so be careful! Read the following in its entirety first before following any of the steps or you will be unpleasantly surprised!
    In the Bluetooth Preferences, highlight the Trackpad and click the gear, click Rename, and - this is the part that everyone I've read about has failed to do - change the Display Name from, say, Will's Trackpad to Will B's Trackpad (pick the latter name VERY CAREFULLY BECAUSE IT WONT GO AWAY!). That changes the Display Name and it also changes the Name, and you will think everything is going fine. It isn't. Then, again change the name back to Will's Trackpad, and you will find that the Display Name changes to Will's Trackpad BUT THE NAME REMAINS Will B's Trackpad. I SAY AGAIN, THE "NAME" WILL NOT UPDATE CORRECTLY, SO PICK A NAME YOU CAN LIVE WITH!

  • Dynamic display name of the sender

    I have requirement like below:
    After creating and executing any Agent/iBOt in OBIEE 11g, the Display Name of the Sender in the From address of email delivered to recipients is showing as "Administrator".
    The user who is authenticated and authorized into the OBIEE also created an agent, he is asking that email should show his name in the From Address when it is delivered to the recipients.
    I know why this is happening, I have provided the Display Name of Sender as "Administrator" while configuring the Agents at the Enterprise Manager Level.
    What I am currently looking is, if there is any alternate solution to Dynamically display the name of the user who creates the Agent in the From address of the email when it is delivered to the recipients.
    Thanks in advance
    -Bharath

    Any body there with the answers !!

  • Changing the display name of project file folders for TOC

    I'm interested in changing the display names of the project file folders for my TOC. For example, I want to name the folder "01-intro" so that it is short and lowercase. But I'd like the TOC to say "Introduction to the System." I know I can manually rename the folder in the TOC either through its properties or by right-clicking => Rename, but I auto-create the TOC occasionally and I don't want to have to rename every folder every single time.
    Does anyone know if there is a way to set a persistent property for the folder so that its display name in the TOC is different? I am using RoboHelp 9. I saw an option called "Detail" in the properties of the WebHelp layout in RoboHelp 8 that seems like it may have done that, but I no longer see this property in RoboHelp 9.
    Any assistance would be much appreciated. Thank you.

    I think the lack of response confirms that if you are going to use Auto Create, you have to accept the way it is.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

Maybe you are looking for

  • Report of request for customer created by ZREQ

    Dear all we create the customers using the ZREQ1, i need create a report of all customer taht was created by day, in three ranges of time and in all status. using the transaction /NESGLB/MGTDM01_QRC i can extract the request with status are finished

  • New General Ledger - Real Time Integration CO-FI

    Running Real Time Integration with Account Substitution. Works well when using a constant for RCL_ICCF-ACCOUNT. Does not work when calling an exit to substitue a value for the same field. Any clue ? Thx. Edited by: Alvaro Tejada Galindo on Feb 26, 20

  • Simple Trivia game

    I am attempting to design a very simple trivia game. It needs to include if and for statements. Can anyone link me to a place they know of that shows me how?

  • Oracle SQL Loader - External Table

    This is my code:- CREATE TABLE GLO_CUST_EXT (SOURCE_ID CHAR(3), BUS_DT CHAR(8), TRAN_CD CHAR(1), CUST_CD NUMBER(10), MNEMONIC CHAR(10), SHORT_NM CHAR(255)) ORGANIZATION external (TYPE oracle_loader DEFAULT DIRECTORY Source_dir ACCESS PARAMETERS (RECO

  • Printing smartform directly

    Hi, how the print of smartform will come directly, without creating spool request, which parameters i have to use. thanks in advance