Automate

 View Only
  • 1.  Correct syntax to do rowcount

    Posted 06-12-2023 16:50
    Edited by John Yee 06-12-2023 16:51

    Hello,

    I'm working in a custom transaction and using Winshuttle to fill out a table, it comes up with a step with

    Grid.modifyCell("0","/SIE/E_OBJDESC")

    Instead of modifying row 0, how do I set up Winshuttle to modify the last row with something similar to .RowCount - 1

    Thank you in advance.



  • 2.  RE: Correct syntax to do rowcount

    Employee
    Posted 06-16-2023 10:17

    Hi John

    It's hard to answer this one, since it's custom and I have no context. 

    In general, you can record in GUI scripting mode, and it captures a row.  You'd then use loops to loop through whatever you're doing, and it would dynamically handle them.  There are a couple of useful features for this

    • Indexed If to find a specific row, if updating or deleting
    • Indexed Loop to find an open row, if adding  

    So in general while the script looks "hard-coded" for a row, it can be made dynamic without changing that index number - it's not coding with variables. :)

    Best Regards,

    Sigrid



    ------------------------------
    Sigrid Kok
    Precisely Software Inc.
    ------------------------------