Forum Discussion

paulie's avatar
paulie
Occasional Contributor
9 years ago
Solved

model.setValueAt is out by 1 position after upgrading to Ready! API

I've just upgraded from SoapUI Pro to Ready! API. My scripts use extensive use of model.setValueAt() to populate datasource grids e.g. model.setValueAt(tempPackID,rownum,0). The problem is that Ready! API has an extra column at the start of the grid so that now the column positions in model.setValueAt are all out by one. Is there any easy way to change this?

Thanks.  

  • Your script seems to have the column value hard coded - Eg: model.setValueAt(tempPackID,rownum,0). I don't think there is an alternative than changing manually in your code!

     

    Thanks,
    Samy

     

    Did my reply answer your question? Give Kudos or Accept it as a Solution to help others, Thanks. ↓↓↓

1 Reply

  • kondasamy's avatar
    kondasamy
    Regular Contributor

    Your script seems to have the column value hard coded - Eg: model.setValueAt(tempPackID,rownum,0). I don't think there is an alternative than changing manually in your code!

     

    Thanks,
    Samy

     

    Did my reply answer your question? Give Kudos or Accept it as a Solution to help others, Thanks. ↓↓↓