Robotic Process Automation (RPA)

 View Only
Expand all | Collapse all

How to get data from and set data in a table in a windows application

  • 1.  How to get data from and set data in a table in a windows application

    Posted Fri May 21, 2021 02:09 PM
    Hi,
    I'm trying to use IBM RPA to automate some activities in IBM Cognos Controller. Most of what I want to do work fine so far, but when I try to get data from tables using the getTable command I run into problems.

    getTable --selector "IdAndName" --id grdSelection --name FlexGrid --timeout "00:00:05" tableDataEntrySelection=value

    When I run the script I get the error message: System.NullReferenceException: Object reference not set to an instance of an object.

    The windows Recorder in Studio can find the table and all its rows and columns and several selectors to use. I've tried different sets of selectors with the same error as result.
    It is possible to set focus on the table using the focus command, so the table control seems to be possible to identify during runtime. 

    Is there anyone who has run into a similar problem and maybe knows how to do to get and set data in a table/grid in a windows app?

    Thank you
    Kind regards
    Anders

    ------------------------------
    Anders Lundberg
    ------------------------------


  • 2.  RE: How to get data from and set data in a table in a windows application

    Posted Wed June 30, 2021 01:27 PM
    Were you able to resolve your issue?

    ------------------------------
    Joba Diniz
    Product Manager
    IBM
    ------------------------------