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

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 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

  • 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

  • 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

  • How do I get all the songs from an album to show in the album view?  Currently, if an album lists the artist plus a guest artist, those are shown separately and appear to be two different albums on my iPod.  How do I get all the songs on that album togeth

    How do I get all the songs from an album to show in the album view?  Currently, if an album lists the artist plus a guest artist, those are shown separately and appear to be two different albums on my iPod.  How do I get all the songs on that album together on my iPod?  If the album is a collaboration wtih many artists, each sond may appear as a separate album.

    I used to have this problem.
    First, you need to go back on iTunes
    you need to go to each of the songs that are having this problem
    Click the album so all the songs drop down
    Right click the songs that have this problem
    Click ' Get info '
    Click the tab that says " info '
    The box that says ' album artist ' should probably be empty (correct me if I'm wrong)
    Click it and type the artist of the entire album, NOT the songs guest artist
    as such,
    ARTIST
    JAY-Z Feat. Justin Timberlake
    ALBUM ARTIST
    JAY-Z
    These should be separate for each artist
    If you write the same album artists for each song by that artist, all the songs should be on 1 album

  • How can i get all the users from weblogic server?

    how can i get all the users from weblogic server?
    i have configurated a LDAP server using iPlanet and
    in weblogic server console i see those users from LDAP
    server. but how can i get all the users in my program
    from weblogic server instead of LDAP server?
    BTW,how to configure a RDBMSAuthenticator and what should i do
    in Oracle? which tables should i create? and how are their architectures?
    Thanks
    Daniel

    BTW, i use weblogic platform 8.1
    "Daniel" <[email protected]> дÈëÓʼþ
    news:[email protected]..
    how can i get all the users from weblogic server?
    i have configurated a LDAP server using iPlanet and
    in weblogic server console i see those users from LDAP
    server. but how can i get all the users in my program
    from weblogic server instead of LDAP server?
    BTW,how to configure a RDBMSAuthenticator and what should i do
    in Oracle? which tables should i create? and how are their architectures?
    Thanks
    Daniel

  • How can I get all the stuff from my old iPad 2 to my new iPad 2? I have an apple id and have synced and backed up my old iPad 2 regularly.

    How can I get all the stuff from my old iPad 2 to my new iPad 2? I have an apple id and have synced and backed up my old iPad 2 regularly.

    Sky is right you can restore the old backup and it will not affect the old iPad
    To make sure do this:
    1. If you have the old one then just turn off wi-fi and the iPad (that's just for your peace of mind)
    2. Put new iPad on airplane mode (just for no interruptions )
    3. Connect it (while it's on, don't shut it down)
    4. Follow prompts and when it asks if you want to setup as new or restore CHOOSE: RESTORE
    5. It will make its magic (just wait for it to sync, restarts, and finishes) it might ask you to update software if it does just accept
    6. You can rename your new iPad like that you can have a fresh back up
    7. ENJOY your new iPad
    ----------OR-----------
    1. Do the above steps 1, 2, 3.
    2. On step 4 you can choose to set up as new
    3. Then you can choose what to sync on it (click on iPad on the left panel then the tabs on top you choose what you want on it (you can also do that if you restore)
    4. Follow steps 5, 6, 7.
    ****If you don't have your old iPad you can remove it from your account ****
    ****Also when they sync it to a new computer it will setup as new unless they had an old one then they will restore it their old one****
    ****if you have it connected with your MobileMe or iCloud and you have the find my _____ you can also wipe it as soon as it comes online****
    LET ME KNOW IF YOU HAVE ANY QUESTIONS OR CONCERNS
    AGAIN ENJOY YOUR NEW IPAD!!!

  • HT1660 How do i get all the songs from 1 album to appear as 1 album instead of 3 albums because they feature guest artists

    How do i get all the songs from 1 album to appear as 1 album instead of 3 albums because 2 of the songs feature guest artists in my itunes library?

    Generally all you need to do is fill in an appropriate Album Artist. For more details see my article on Grouping Tracks Into Albums, in particular the topic One album, too many covers.
    tt2

  • HT201317 Not all of my photos on my iphone are showing up on the stream on my computer.  How do I get all the photos from my iphone onto my photo stream on my PC?

    Not all of my photos on my iphone are showing up on the stream on my computer.  How do I get all the photos from my iphone onto my photo stream on my PC?

    Use a third-party utility such as Phone to Mac - Pod to Mac.

  • I updated my 4S iphone and now I am getting all the texts from another iPhone on my plan.  How do I stop this?

    I updated my 4S iPhone and now I am getting all the texts from another iPhone on my plan.  What do I need to do?

    I'm not completely clear on the GSM / LTE network frequencies in US vs Argentina, but I do know that cross-compatibility can be an issue when buying from one country and using in another. Apple products in particular have this problem. What this sounds like to me is that the phone is not compatible with Argentinian networks; or your friend had an AT&T phone and jail-broke it. This is against the end user licensing agreement, and when the phone is next updated is likely to jam the phone.
    Sorry but you lost your money.
    Wasted*

  • 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

  • OMB Plus : how to get all the generated messages into a text file ?

    Hello,
    I wrote an OMB TCL script and I would like to know how to get all the messages generated during the exécution into a text file.
    I tried this, but it works only for a puts command :
    set DesProjet ACT_1
    set filename [ open "c:\\temp\\INFDE_010_IMPORT_REPOSITORY_$DesProjet.log" w]
    puts "test"
    Thank you for your help

    Hello Alain, you should try the OMBLOG variable. If you set it inside OMBPlus:
    set OMBLOG c:/temp/mylog.txtthen all the OWB specific commands are logged with their output. By OWB specific I mean all those that start with OMB.
    This is more than what you see in the interface, because:
    - messages inside procedures are logged; you wouldn't see them on std.output when you call a proc
    - variables are resolved, so if you issue the command
    set my_var VERY_IMPORTANT_TABLE
    OMBDROP TABLE '$v_myvar'the log will show:
    OMBDROP TABLE 'VERY_IMPORTANT_TABLE'
    Table dropped
    and you know something is wrong... so OMBLOG is very useful to intercept all manipulations on you repository.
    If what you want instead is a dump of the screen output when you execute a script, I suggest you redirect standard output from the operating system command line. Unfortunately OMBPlus doesn't support all advanced redirection and tracing features of the TCL language.
    Hope this helps, Antonio

  • 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

Maybe you are looking for

  • Some fields are missing in some BO XI 3.1 reports

    Hi Guys, We are facing a strange issue on some webi reports, BO version is XI 3.1 and product version is 12.2.8.638. These reports are using a same universe which retrieves data from Data Federator Issue Detail: Some fields are showing empty when we

  • Finder wont open, desktop empty, itunes wont close

    Hi all, I'm having troubles with Finder after istalling a program allowing to pull off music from my ipod. Suddenly error 14..something came up saying my system had been compromised. Since then I can't open my Finder, desktop is empty, itunes doesn't

  • IBCM not working after SCCM 2012 R2 Upgrade from SP1

    Just upgraded to CM2012 R2 from SP1, 1 primary site and 1 internet facing MP for IBCM in DMZ - both are on Server 2008 R2.  PKI has already been setup and was functional before upgrade.  After R2 upgrade, my internet clients cannot communicate. CcmMe

  • I am trying to download a outside user manual on the ipad2

    i am trying to download a outside user manual for my dads work. is there a way to do that!

  • Format external hdd

    I have been given 2 external usb hdd by my father, they where being used on a windows laptop. How do I format them to work with my iMac and eventually with my TM? Thank you. Michael.