How  to get the key in TreeMap

H i All,
I assigned keys to my to my JSF and Im db level i am storing values associated to it.
I have to show the same data( keys) on to screen..
From DB I get values.. using the value how can I get key...
Help me..
Regards,
Kranthi

Here is a C# library that reads and parses the INI file's content (it does not use KERNEL32.dll API).
Also here is a sample code for your requirement:
var file = new IniFile();
file.Load("xx.ini");
List<string> keyNames = new List<string>();
foreach (var key in file.Sections["section"].Keys)
    keyNames.Add(key.Name);

Similar Messages

  • How to get the Key value in the value help?

    Hi All,
            I am using dropdown by key to display the values from the RFC. I am able to get the text by,
    ISimpleValueSet div = wdThis.wdGetContext().getContext().getModifiableTypeOf ("Header.VH_BUnit").getSVServices().getModifiableSimpleValueSet();
    return div.getText(wdContext.currentHeaderElement().getVH_BUnit());
    Please say how to get the key ?
    Thanks & Regards,
        Mugundhan

    Hi,
        Thanks for ur reply. wdContext.currentHeaderElement().getVH_BUnit() is returning the value in the dropdown only.
    Consider this line..
    return div.getText(wdContext.currentHeaderElement().getVH_BUnit() );
    More simillarly return div.gettKey(................); is there. What value should be given inside. if i gave wdContext.currentHeaderElement().getVH_BUnit() means, it sowing "Cannot convert from object to String " error.
    So i created an object like this,
    Object attributevalue = wdContext.currentHeaderElement().getAttributeValue(IPublicReportrtComp.IHeaderElement.VH__B_UNIT);
    But this too not accepting..
    Thanks & Regards,
       Mugundhan

  • How to get the "Key" for Dimension in SSAS.

    Hi
    How to get the "Key" for Dimension in SSAS.
    (Below value is the PPSParameters table XML column value in PPSDatabase in SharePoint.
    Below three key values are belongs to "Dimension". I have tried to find the key but I could net get it.)
    <NewDataSet>
    <UserValues><Key>16A201A9E75128559F947D58E6D187A9</Key></UserValues>
    <UserValues><Key>7FBEA449A6ED5606973306445839619E</Key></UserValues>
    <UserValues><Key>A8F75F9720817BCD2E1DFC1C1CF1E678</Key></UserValues>
    </NewDataSet>
    Thanks & Regards
    Poomani Sankaran

    To Be Honest there is not one straight Cmdlet that atleast I have come across 
    The best way would if you have Lync monitoring server 
    Using the Lync Server 2013 Monitoring Server
    If you have the Monitoring Server role configured in your environment, and for Lync Server 2013 everyone should!, you can use information contained in the LcsCDR database to pull back the last time a user signed in.  You can run the following query* to
    pull back the user's SIP URI and their last login time:
    USE LcsCDR
    SELECT dbo.Users.UserUri, dbo.UserStatistics.LastLogInTime
    FROM dbo.UserStatistics
    JOIN dbo.Users ON dbo.Users.UserId = dbo.UserStatistics.UserId
    ORDER BY UserUri
    Which produces the following output:
    The advantage to using the Monitoring Server to obtain this data is that unlike the information contained in the rtcdyn database, the information from the LcsCDR data will persist even when the user isn't signed into Lync.
    To get approx count of users enable for Lync Server in your organisation 
    Get-CsUser -Filter {Enabled -eq $true} | MeasurE
    Please not the above command let will give you an approx number not exact 
    From the Monitoring report yet the SIP account that signed in and then from count find out how many user havent signed in this is manual task 
    Hope this is helpful 
    Please remember, if you see a post that helped you please click ;Vote As Helpful" and if it answered your question please click "Mark As Answer" Regards Edwin Anthony Joseph

  • I use iPhoto and want to know how to get the 'key photo' i select on my MacBook Pro to be the one that gets used on my iPhone when i sync them. Any ideas? also, i want the events to appear in the order i choose on my MacBook too

    I use iPhoto and want to know how to get the 'key photo' i select on my McBook Pro to be the same one that gets used on my iPhone 5s when i sync. i also want the events to appear on the iPhone in the same order i have them on my macbook. any ideas there too?

    Killerfinch wrote:
    My new yahoo account nestles comfortably in iCloud on the mine iPad.
    No, your Yahoo account is not in iCloud (which only handles iCloud mail), it is in Yahoo, and the Yahoo mail account is on your iPad.
    But the MacBook Pro will have none of it! I write this question now as I fear that I will be totally demented very soon and unable to formulate my thoughts clearly!
    Get the correct settings for your account from Yahoo and set it up manually.
    By the way, I also find the "password" issue problematical. It seems Apple want my Apple password rather than my eMail password. All very confusing.
    That would depend on what you are trying to do.

  • How to get the Key mode

    Hello
    Let me ask a question about key mode.
    I'm trying to catch the timing when both Shift-Key and Esc-Key are pressed.
    Using the Edge Animate's document.keydown  events , I can get the chance when the Shift-Key is pressed.
    At the same time I need to know the Esc-Key's mode , pressed? or released?.
    Does anyone know how to get the Ket mode?
    regards

    Thank you very much heathrowe.
    hmm, It seems to be the same thing.
    If users release [Esc-key] first and [Shift-key] next, this script works.
    But it doesn't work in the contrary case.
    To cover both cases, the system have to grasp the STATE of the keys, not EVENT.
    I've made an example below .....
    This script can hold the state of the keys.
    [Note 1] This time I used [Esc-Key] and [z-key] ,  because the task manager opens
                 when [Shift-Key] and [Esc-key] is pressed in case of Chrome.
    [Note 2] I used text-box named "Result" as an output tool instead of the alert tool,
                 because the variables (KeyFlagShift / KeyFlagZ) freeze using an alert tool
                for some unknown reason.
    // ******  compositionReady  ******
    sym.setVariable("KeyFlagShift" , false);
    sym.setVariable("KeyFlagZ" , false);
    // ******  KeyUp  ******
    switch(e.which){
              case 16:
                                  sym.getComposition().getStage().setVariable("KeyFlagShift" , false);
                                  break;
              case 90:
                                  sym.getComposition().getStage().setVariable("KeyFlagZ" , false);
                                  break;
    // ******  KeyDown  ******
    switch(e.which){
              case 16:
                                  sym.getComposition().getStage().setVariable("KeyFlagShift" , true);
                                  break;
              case 90:
                                  sym.getComposition().getStage().setVariable("KeyFlagZ" , true);
                                  break;
    var KeyS = sym.getComposition().getStage().getVariable("KeyFlagShift");
    var KeyZ = sym.getComposition().getStage().getVariable("KeyFlagZ");
    if(KeyS == true && KeyZ == true){
              sym.getComposition().getStage().$("Result").text(" Shift + Esc was pressed");
    }else{
              sym.getComposition().getStage().$("Result").text(" -------");

  • How to get the key values of record in ADF Read-only Form?

    Hi
    I am using ADF Business Component VO.
    I have a search page( ADF Search Form) and I am displaying the results of the search in a ADF Read-Only Table( only few columns are shown) .Then by selecting a record and clicking on the button 'View' , I am navigating to a different page(ADF Read-Only Form) to show all the columns of the table for the selected record.
    In the second page, I have one more button 'view child details'.Now when I click on this view child details button, I have to show another page(ADF Read-Only Form) which fetches the data from one of the child tables of parent record.
    My idea is to create a ViewLink between the parent and child tables.( I have more than 15 child tables for a parent table).
    Is there anyother way to achieve this functionality?
    Please respond ASAP.
    Thanks in advance.
    ~Sivaji..
    Message was edited by:
    Sivaji...the boss

    Sijav,
    ASAP?
    Anyway - yes, you can do this with a view link. When you add the child table to the application model, make sure you actually add it as a child of the parent table instance (select the parent VO first, then use the shuttle to add it). This way, the parent->child relationship should be coordinated for you automatically. You should not need to get the key values manually.
    Then, when you create the page to show the detail table, make sure you use the child table that is shown as a child of the parent table in the data control palette (expand parent table to see the child).
    Hope this helps,
    John

  • How to get the @ key working on a windows keybord

    Hi all I have been trying to get the @ key to work on my windows keyboard, by using the normal shift + ' on it, but it is not working is there any way I can overcome this.. cheers Janny

    thanks bud

  • How to get the KEY VALUE of sales order

    Hello friends,
                          iam adding a sales order through DI-SERVER to the SAP db.after adding iam getting a key value (i,e Doc no)..i want it to display it in my frontend....can u please tell me how to display the return key value of my sales order
    regards,
    shangai.

    Dear Shangai,
    To retrieve the last Doc/Object added through DI API (DI Server is based on DI API) there is a method called "GetNewObjectCode" which can be used to retrieve the last DocCode which was added into the B1.
    Please try the function for more help please look at the help files RefDI.chm which is installed with the SDK installation for B1.
    Regards
    Arshdeep

  • How to get the key Figure values.!.......?

    Hi friends...
          I have a scenerio , where I have loaded the data from 3 different data sources say A  , B and C in to 2 different DSO s and in to 2 different Info Cubes. And I have built Multi Provider from this 2 Info cubes.
    In the data source B , I have BELNR (Parked document number ).WRBTR (for Amount). In the report I have to show a field called Nr of Documents Parked and Value of Documents Parked. Same thing for Data Source C,  for Blocked Documents. Now My question is there is no Key Figure in My Data Model to Count the Nr of Parked / Blocked Docs....So in the Reporting how can I show this ? Do I need to use Customer Exits ? Do I need to have CKF /RKF ? if so , from what Key figures ? or Can I get the Count from the Backend (Modelling itself by using a Keyfigure with any Code)?...not only this 2 , I have lot many custom things to do in my Model...If any one can get me some idea on this , remaining will be very easier for me as they all are similar things to do....
    Please let me know if you have any questions or I need to elabarate it more to get an Idea on this....
    Thanks in advance

    THANKS GUYS ,
         I wrote the transformation routiene to count all the parked documents as
      IMPORTING
        request     type rsrequest
        datapackid  type rsdatapid
        SOURCE_FIELDS-/BIC/ZPARKBEF TYPE /BIC/OIZPARKBEF
       EXPORTING
         RESULT type tys_TG_1-RSTT_IPTDA
    DATA TMP TYPE tys_TG_1-RSTT_IPTDA.
    IF SOURCE_FIELDS-/BIC/ZPARKBEF = 'Y'.
    TMP = TMP + 1.
    ENDIF.
         RESULT = TMP .
             But when I see the Infocube data its showing only 0 for Parked Before value 'N' and 1 for Parked Before vale 'Y'. But I want to calculate total number of parked documents ..How can I do this?
    Thanks

  • How to get the key press

    Hi,
    One more question, how do you get the keypress in the main
    movie? I've tried on onClipEvent (keyDown) key.getCode etc but that
    requires to be in a movie.

    there are a couple of ways to handle this. If you are looking
    for a sepcific Key you can set up a Listener. or more like what
    your trying here, but as in:

  • How to get the key value of a HashMap?

    Hi,
    I have a HashMap which obviously has key/value pairs. e.g. 1=3, 2=6 etc. I can get the value by using the method xxx.get(key), but I want to be able to get the value of the key. For example, when I have the value 3 I want to be able to get the value of the key that identifies it, in the example above it would be 1.
    Is there a way to do this.
    I'd appreciate any help.
    Thanks,
    Chris

    A HashMap guarantees unique keys, but not unique values. In the following situation:
    a=2
    b=5
    c=2
    If you wanted to do a lookup based on the value, what would your lookup of 2 return? a or c?
    At any rate, if you can guarantee that your values will be unique, you could always fill a second HashMap while filling the first; the second HashMap would simply have the original values as the keys, and the original keys as the values.

  • How to get the keys for a field in the dropdown list?

    The dropdown list of payment terms on an account is unfortunately very big, containing al lot of different values, in our system and therefore very confusing for the user working with Web UI version 5.2 to pick the right one. The keys (code like e.i Z077 or ZO23) are not stated in the list available for user. Is there any way in the system to flag if the different fields should show boths the keys(codes) and the description of the values in the field as Payment terms, etc.
    In the ERP SAP Gui it is possible to activate if you want the keys should be shown in all drop down list.
    If this is not possible for all the fields at one time, what can be a solution to have the keys in the drop down lists, any suggestion will be very valuable for us.
    Kindly regards
    Camilla

    HI Joost
    No it is not that simple, that is not a solution for us. The fields are maintained i our backend system and replicated to CRM, and these fields descriptions are also printed at Order confirmations and invoices, and we do not want the keys that do not give any meaning  to be visible to customers.
    BR
    Camilla

  • How to get the key in the ini file?

    I want to know how can i read all keys in the section of an ini file
    for e.g  xx.ini will like this:
    [section]
    key1=value1111
    key2=value2222
    I want to get "key1","key2".

    Here is a C# library that reads and parses the INI file's content (it does not use KERNEL32.dll API).
    Also here is a sample code for your requirement:
    var file = new IniFile();
    file.Load("xx.ini");
    List<string> keyNames = new List<string>();
    foreach (var key in file.Sections["section"].Keys)
        keyNames.Add(key.Name);

  • How to get the key panel repaired

    key has come out from keypad
    i need to get it fixed  
    how can i get it done    if laptop is under warranty period

    Hi,
        Thanks for ur reply. wdContext.currentHeaderElement().getVH_BUnit() is returning the value in the dropdown only.
    Consider this line..
    return div.getText(wdContext.currentHeaderElement().getVH_BUnit() );
    More simillarly return div.gettKey(................); is there. What value should be given inside. if i gave wdContext.currentHeaderElement().getVH_BUnit() means, it sowing "Cannot convert from object to String " error.
    So i created an object like this,
    Object attributevalue = wdContext.currentHeaderElement().getAttributeValue(IPublicReportrtComp.IHeaderElement.VH__B_UNIT);
    But this too not accepting..
    Thanks & Regards,
       Mugundhan

  • Can't get the keys to run anything...

    Yeah, so I've literally spent the past two days trying to figure out how to get the keys to make stuff move in my game. I've already gotten the computer players to move around, implemented a collision detection system of sorts, and written the methods that will facilitate movement in the main person when called.
    Here's my problem. I've been looking at several tutorials, and I see two primary ways of doing this. One, key binding, which I've been persuing more heavily, apparently requires use of a component. As of yesterday I didn't know what a component was, and since I've discovered that this method, in fact, requires an object that is a JComponent, which I don' t have in my program (I have a JFrame, but that's just a component). I was considering just slapping some random one in there, but I don't know how to set the key reading thing to do stuff even when the component is not selected. And I also think it would be sort of stupid to put superfluous stuff like that in my program.
    The other method had tons of parameters and I really had no idea where they would all come from.
    So, any suggestions?

    in your main method or whatever put
    addKeyListener(myKeyHandler())
    // this class has 3 methods in java, keyPressed, keyTyped, keyReleased
    myKeyHandler extends KeyAdapter
    public void keyPressed(KeyEvent e)
    int key = e.getKey//or something like that
    if(key == VK.W)
    up = true;
    repaint();
    else if(key == VK.S)
    down = true;
    repaint();
    // if necessecary
    try{ Thread.sleep(howeveramount)} catch(Exception f)
    paint
    if (up == true)
    yPosition++
    g.draw(thing);
    else if(down == true)
    yPosition--
    g.draw(thing);
    Edited by: nik7_7 on Apr 19, 2008 7:07 PM

Maybe you are looking for

  • I have SOA suite and Jdeveloper, what do i need more for BAM ?

    Hi Thank you for reading my post I have installed both soa suite and latest version of jdeveloper I can see BAM node under connections node but i do not know how should i add the bam server connection. so my questions are : -should i install the bam

  • Scroll pane color for xp look and feel

    hi I am using the xp look and feel for my intranet application. Everything looks great, except for the colors of the scroll pane (added in a table) which still remains brown. I have tried setting the colors of the scroll pane, but nothing seems to wo

  • Migration to a G5

    Hi there I've attempted to migrate files etc from one Mac to a Power Mac G5. However, I didn't empty the G5's HD before I started and now the migration has completely filled it and stopped. I can't seem to do anything: i can't open files or programs

  • Transfer Order Splitting By Picking Area

    Hi, Appreciate some help on this one. Our system is currently set to split picking transfer orders by storage type -       I'm trying to switch this off. Instead I would like to split by picking area, so if I have say, picking area 001 across 2 stora

  • PREL in Production order

    Dear All, In my one of Production order there has 3 workcenter. 10 for Cutting 20 for Sewing 30 for Finishing 10 and 20 released. But 30-finishing I can not release it. Showing the status "PREL" in production order. Can anybody tell me what happend i