How to get all the values from a HashMap? thanks

hi
can anyone tell me how to get all the keys and their values contained in a HashMap? thanks

thanks to u all for ur response, i gues if i need to get both keys and values, i need to use keySet() to get a set of keys first and then using each key to get value. is there any other faster way to get both of them (key and value)? thanks again

Similar Messages

  • How to get all the values from the dropdown menu

    How to get all the values from the dropdown menu
    I need to be able to extract all values from the dropdown menu; I know how to get all those values as a string, but I need to be able to access each item; (the value in a dropdown menu will change dynamically)
    How do I get number of item is selection dropdown?
    How do I extract a ?name? for each value, one by one?
    How do I change a selection by referring to particular index of the item in a dropdown menu?
    Here is the Path to dropdown menu that I'm trying to access (form contains number of similar dropdowns)
    RSWApp.om.GetElementByPath "window(index=0).form(id=""aspnetForm"" | action=""advancedsearch.aspx"" | index=0).formelement[SELECT](name=""ctl00$MainContent$hardwareBrand"" | id=""ctl00_MainContent_hardwareBrand"" | index=16)", element
    Message was edited by: testtest

    The findElement method allows various attributes to be used to search. Take the following two examples for the element below:
    <Select Name=ProdType ID=testProd>
    </Select>
    I can find the element based on its name or any other attribute, I just need to specify what I am looking for. To find it by name I would do the following:
    Set x = RSWApp.om.FindElement("ProdType","SELECT","Name")
    If I want to search by id I could do the following:
    Set x = RSWApp.om.FindElement("testProd","SELECT","ID")
    Usually you will use whatever is available. Since the select element has no name or ID on the Empirix home page, I used the onChange attribute. You can use any attribute as long as you specify which one you are using (last argument in these examples)
    You can use the FindElement to grab links, text boxes, etc.
    The next example grabs from a link on a page
    Home
    Set x = RSWApp.om.FindElement("Home","A","innerText")
    I hope this helps clear it up.

  • How to get all the values in the Select-option.

    Hi,
    I got the select-option field so_week, for eg. If I give 200923 to 200926 (year and week)  in the selection screen and then I need to pass this value (200923) to the FM 'ZWEEK_GET_FIRST_DAY' to get the first day of the week.
    My question is how can i get all the values from the select option, (i.e) i need to get 200923, 200924,200925, 200926.
    Regards,
    Anbu.

    Hello,
    I will prefer Max's solution. But just for the sake of this req.
    i need to get 200923, 200924,200925, 200926
    i am proposing my soln:
    DATA: V_WEEK TYPE RSCALWEEK.
    SELECT-OPTIONS: S_WEEK FOR V_WEEK NO-EXTENSION OBLIGATORY.
    AT SELECTION-SCREEN.
      DATA:
      V_COUNT TYPE I,
      V_ADD   TYPE I,
      RT_WEEK TYPE RANGE OF RSCALWEEK,
      RS_WEEK LIKE LINE OF RT_WEEK.
      V_COUNT = ( S_WEEK-HIGH - S_WEEK-LOW ) + 1.
      DO V_COUNT TIMES.
        RS_WEEK-SIGN = 'I'.
        RS_WEEK-OPTION = 'EQ'.
        RS_WEEK-LOW = S_WEEK-LOW + V_ADD.
        APPEND RS_WEEK TO RT_WEEK. "RT_WEEK--> Will contain the week values
        CLEAR RS_WEEK.
        V_ADD = V_ADD + 1.
      ENDDO.
    @Max: I was stupid enough not to think of your solution. Need to leave office
    Cheers,
    Suhas

  • Get all the values from a multiple select in a multipart form

    Hi there!
    I am using a form with enctype="multipart/form-data" in order to upload files from the form.
    I have read this page: http://commons.apache.org/fileupload/using.html and everything works well for my form.
    The only problem is that I can't get all the values from a "multiple select" html object. I get only one value.
    Using servlets I have used this method:
    public java.lang.String[] getParameterValues(java.lang.String name) But now I have enctype="multipart/form-data" in my form and I can't use this way...
    Is there a way to get all the values of a multi-valued parameter?
    Thanks a lot!
    Stefano

    Hi
    I have got solution for this problem so, I am listing here logic
    assume tag name of html
    <select name="moption" multiple="multiple">
    iterate it in as
    String moption="";
    boolean cnt=true;
    while(itr.hasNext())
    FileItem fi=(FileItem)itr.next();
    if(fi.isFormField())
    if(fi.getFieldName().equals("moption"))
    if(cnt==true)
    moption=fi.getString();
    cnt=false;
    else
    moption=moption+","+fi.getString();
    If wants more help then mail me your problem
    at [email protected]
    Thanks!
    Anand Shankar
    Edited by: AnandShankar on 6 Nov, 2009 12:54 PM

  • Getting all the values from a JList

    Hi,
    I want to get all the values from a JList and store it into an array. Any method is available to perform this task? Pls help me out with this task.

    Use getModel() on the list to get the ListModel and then call getSize() and getElementAt(int) to loop over the elements
    HTH
    Mike

  • How to get all the values in one column of a JTable

    How to get all the values in one column of a JTable as a Collection of String.
    I don;t want to write a for loop to say getValueAt(row, 1) eg for 2nd column.

    I don;t want to write a for loop to say getValueAt(row, 1) eg for 2nd column. You could always write a custom TableModel that stores the data in the format you want it. It would probably be about 50 lines of code. Or you could write a loop in 3 lines of code. I'll let you decide which approach you want to take.

  • How to get all the values of a variable with F4 with checkboxes to select

    Dear Experts,
    After Executing a query by giving let 3 values(Out of 10 Values) to a variable.
    To give 2 more input values to the same variable(i.e.,total I wanted to give 5 inputs this time ),after refreshing the query,for that variable if I click F4, I am seeing the historical values(i.e.,3) and remaining 7 values also But with out any Check Boxes besides them to select the 2 inputs.
    In the same F4 Screen, If I click all values(an Icon at The bottom),then also Im seeing but no check Box.
    I hve tried by deleting the Delete Personalization also,but no use.
    Please tell me How to get all the values with F4 with check boxes to select ,whatever I want??
    Thanks in advance

    Take a look at the InfoObject and go to the Business Explorer tab. If the 'Query Def. Filter Value Selection' is set to 'Only Values in InfoProvider', you're only going to get the values in F4 that exist in the InfoProvider, not everything in the Master Data. This would need to be changed to the value of 'Values in Master Data Table' if you want it to show everything possible when F4 is chosen.
    Likewise, you're going to need to look at the query and go to the Advanced tab for the InfoObject. Make sure that the radio button for 'Values in Master Data Table' is selected. If not, then you should change that selection.

  • How to get all checked values from a chaeck box

    Hello
    In my app i have a checkbox called P10_CID with static lov like
    STATIC2:one;1,two;2,three;3,four;4,six;6
    my question is when i check more than one option
    i can not get that value.
    How is it possible to see all the values of the check box that are checked ?
    Regards
    Aris

    Hi Aris,
    Do you have to have checkboxes? Can you use a multiselect list instead?
    If you can, then the following excerpt from the user guide may help you:
    Using HTMLDB_UTIL.STRING_TO_TABLE to Convert Selected Values
    Suppose you had a report on the EMP and DEPT tables that is limited by the
    departments selected from a Department multiple select list. First, you create the
    multiple select item, P1_DEPTNO, using the following query:
    SELECT dname, deptno
    FROM dept
    Second, you return only those employees within the selected departments as follows:
    SELECT ename, job, sal, comm, dname
    FROM emp e, dept d
    WHERE d.deptno = e.deptno
    AND instr(':'||:P1_DEPTNO||':',':'||e.deptno||':') > 0
    Regards
    Andy

  • How to get all the fieldnames from a tcResultSet

    Hi, im coding a connector to write to a file all the fields of the process form.
    to be like this:
    User ID: value for UserID
    FirstName: Value for first Name
    LastNAme: Value for LastName
    Im using the Process instance Key to get the tcResultSet.
    I know if I give an array or a hardcoded list of fieldnames, i can get the field values.
    like this
    String fieldname = "FORM_UDF_USR_ID";
    String Response = formData.getStringValue(fieldName);
    my question is, how can i get a list of fieldnames from the tcResultSet so i dont need to provide it
    something like
    formdata.getFieldlist(); ?
    Thank You.

    Here is the algo
    * Description : Prints the tcResultSet
    * @param rs tcResultSet
    * @throws tcAPIException
    * @throws tcColumnNotFoundException
    * @throws Exception
    public void printResultSet(tcResultSet rs) throws tcAPIException, tcColumnNotFoundException {
    String methodName = "printResultSet";
    print "COUNT = " + rs.getRowCount());
    String[] cols = rs.getColumnNames();
    for (int i = 0; i < rs.getRowCount(); ++i) {
    rs.goToRow(i);
    for (int j = 0; j < cols.length; j++) {
    if (cols[j].indexOf("Row Version") == -1) {
    print cols[j] + "\t\t:"
    + rs.getStringValue(cols[j]));
    Try this , replace print by System.out.println

  • How to get all the values of the SDO_ORDINATE_ARRAY of a Oriented Point

    Hi,
    I'm trying to get the values of a Geometry wich is an Oriented Point. To that, i'm using SDO_UTIL.GETVERTICES, but this utility only obtains the point X,Y, it doesn't obtain the values of the orientation vector.
    The Geometry is this:
    MDSYS.SDO_GEOMETRY(
         2001,8307,NULL,
         MDSYS.SDO_ELEM_INFO_ARRAY(1,1,1,3,1,0),
         MDSYS.SDO_ORDINATE_ARRAY(-75.586088632813272,6.1794352615514194,0.57278169530235967,-0.81970795380217887,0)
    The query is this:
    SELECT c.ipid, c.nombre, t.X, t.Y, t.Z, t.W
    FROM Hidrantes c,
    TABLE(SDO_UTIL.GETVERTICES(c.geometria)) t
    where c.ipid = 4691117
    ORDER BY c.ipid, t.id;
    Result:
    4691117          -75,5860886328133     6,17943526155142          (null) (null)
    As you can see, it only obtains the X,Y values but not the values of the orientation vector, how can I get the values?.
    Thanks in advance

    Tobonale,
    Sql-Only approaches:
    *[1] Return Oridinate Array*
    Append .SDO_ORDINATES to your geometry object or column name:
    SELECT MDSYS.SDO_GEOMETRY(
         2001,8307,NULL,
         MDSYS.SDO_ELEM_INFO_ARRAY(1,1,1,3,1,0),
         MDSYS.SDO_ORDINATE_ARRAY(-75.586088632813272,6.1794352615514194,0.57278169530235967,-0.81970795380217887,0)
    ).SDO_ORDINATES
    FROM dualResult:
    SDO_ORDINATE_ARRAY(-75.586089, 6.17943526, .572781695, -.81970795, 0)*[2] Return Flattened Oradinate Array*
    SELECT * FROM
    TABLE (
         MDSYS.SDO_GEOMETRY(
         2001,8307,NULL,
         MDSYS.SDO_ELEM_INFO_ARRAY(1,1,1,3,1,0),
         MDSYS.SDO_ORDINATE_ARRAY(-75.586088632813272,6.1794352615514194,0.57278169530235967,-0.81970795380217887,0)).SDO_ORDINATES
    )Result:
      -75.586089
      6.17943526
      .572781695
      -.81970795
               0Regards,
    Noel

  • Get all the objects from an application

    Hi
    Does anybody know how to get all the expression from an application via ABAP?
    Thanks !

    Try this:
    * Get the BRFplus factory and query.
      lo_factory = cl_fdt_factory=>get_instance( ).
      lo_query = lo_factory->get_query( ).
    * Get Application id.
      lo_query->get_ids(
        EXPORTING
          iv_name        = p_appln
          iv_object_type = if_fdt_constants=>gc_object_type_application
        IMPORTING
          ets_object_id  = lt_id_application ).
      READ TABLE lt_id_application INTO lv_id_application
                 INDEX 1.
    * Build selection.
      ls_selection-queryfield = if_fdt_admin_data_query=>gc_fn_application_id.
      ls_selection-sign   = 'I'.
      ls_selection-option = 'EQ'.
      ls_selection-low    = lv_id_application.
      INSERT ls_selection INTO TABLE lt_selection.
      ls_selection-queryfield = if_fdt_admin_data_query=>gc_fn_object_type.
      ls_selection-sign   = 'I'.
      ls_selection-option = 'EQ'.
      ls_selection-low    = if_fdt_constants=>gc_object_type_expression.
      INSERT ls_selection INTO TABLE lt_selection.
      ls_object_category_sel-customizing_objects = abap_true.
      ls_object_category_sel-masterdata_objects  = abap_true.
      ls_object_category_sel-system_objects      = abap_true.
    * Perform selection.
      lo_query->select_data(
        EXPORTING
          its_selection          = lt_selection
          is_object_category_sel = ls_object_category_sel
        IMPORTING
          eta_data               = lt_id_expression ).
    * Process the Expressions.
      LOOP AT lt_id_expression INTO lv_id_expression.
    *   Get Expression object.
        lo_expression = lo_factory->get_expression( lv_id_expression ).
    *   Check Expression is not deleted or obsolete.
        lo_expression->if_fdt_admin_data~get_change_info(
          IMPORTING
            ev_deleted           = lv_flg_deleted
            ev_marked_for_delete = lv_flg_marked_for_delete
            ev_obsolete          = lv_flg_obsolete ).
        IF lv_flg_deleted           EQ abap_true OR
           lv_flg_marked_for_delete EQ abap_true OR
           lv_flg_obsolete          EQ abap_true.
          CONTINUE.
        ENDIF.
    *   Process the Expression.
        lv_name_expression = lo_expression->if_fdt_admin_data~get_name( ).
        WRITE: / lv_id_expression, lv_name_expression.
      ENDLOOP.
    Regards,
    Grogan

  • From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    Hi,
    Use NVL or COALESCE:
    NVL (col_a, col_b)
    Returns col_a if col_a is not NULL; otherwise, it returns col_b.
    Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
    For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How Can I get all the values of a DBMS package?

    Hi all
    I'm using this "dbms_output.put_line(DBMS_DB_VERSION.VERSION || '.' ||DBMS_DB_VERSION.RELEASE);" to show the version. But how Can I get the all the values from DBMS_DB_VERSION ? Is there a common way ?
    Thanks .
    Best
    Laurence

    Hi,
    Don't think that's possible. Even if it were, you wouldn't be able to use/display BOOLEAN type in SQL.
    If you just aim to see what they are, you could do something like this
    select text
      from all_source
    where owner = 'SYS'
       and name = 'DBMS_DB_VERSION'
       and type = 'PACKAGE';Or even
    select dbms_metadata.get_ddl('PACKAGE', 'DBMS_DB_VERSION', 'SYS') from dual;My version is:
    SQL> select * from v$version where rownum = 1;
    BANNER                                                         
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    1 row selectedIn 11g you also have [PL/SCOPE|http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10471/adfns_plscope.htm#ADFNS02203] which might help you even more.
    Regards
    Peter

  • How to get all the ID value dynamically in javascript

    Hi,
    Please let me know how to read all the id of the components dynamically from the *.jspx page in adf.
    i want to store all the values in the array of the javascript.
    Thanks

    jdev version -11.1.1.4
    use case:- we are capturing all value entered by the user on screen and storing it in the cookie like (key,value) pair where key is id and value is value of the component keyed-in.
    Later when there is browser close or transaction faliure we are retreiving back all the values from cookie on load of page.
    Now the point is when the screen loads back it is not getting the component id dynamically, we are storing manually the id's of the components to retrieve the value.
    But we want to read all the id of all the components dyanamically once page load and store it in javascript array variable.
    Let me know if there is any method to read all the id of the page in ADF javascript.
    Or any other alternative method.
    Please help.
    Thanks,

  • When creating a book how can I get all the photos from an album to show up in the order they were in the album?

    When creating a book in iphoto, how can I get all the photos from the album I want to use to show up in the order that they are in the album?  When I tried to use the option to add my own photos instead of having the program "flow" them, they showed up all mixed up.

    iPhoto puts them in the book in chronological order.  So to get your photos from an album into an iPhoto book in the same order you will need to use the Photos ➙ Batch Change ➙ Date menu option and set them all to the same date with a 1 minute time difference between each. 
    OT

Maybe you are looking for

  • Does sender file adapter loose files/ miss them??

    HI All, I am in a file to IDOC scenario. Xi is picking files from a network folder and creating each file into a single IDOC and sends to R/3. All seems fine when we do testing for 1 file at a time However I realised that if more than 20 or 40+ files

  • H.264 not playing in Windows Media Player

    OK, so I've exported a 720p video to H.264 format. The resultant .mp4 plays just fine on my Mac where it was created, in both QuickTime and the VLC Player. It also plays on another person's Mac (I'm assuming QuickTime) just fine. But two people who h

  • Can Airport Express n join a Linksys  wireless network ?

    If I already am able to connect to a g airport express, is there anything else that would be keeping me from getting a n unit to connect? I have a Linksys Wireless-N broadband router. I was able to start and go through the initial setup of adding two

  • Setting singleton

    Hi... I am not able to set the singleton property of the context node.I am not able to edit the true value to false in the context properties.How can I do this.Can it be done through code or if ,so how.

  • Need help on SingleSignOn loginmodule with  dataSource='http request'

    has anyone developed a custom login module that gets user identity from HttpRequest ? Any docs or leads appreciated. V