Forum Discussion

MW_Didata's avatar
MW_Didata
Regular Contributor
9 months ago
Solved

Alternative for set_item in grids

For a test TC needs to enter a artikelnumber, then set 1 of the checkboxes to true,

I use set_item for this action.

On screen it looks like it is true but after saving the changes and reopening the grid, my grid is empty.

This is because if no checkbox is true then it removes these artikels.

So it does not change the checkbox to true, only the visual checkbox.

 

This action does works in other grids in my program.

 

Really my question is, are there alternatives other than selecting this checkbox and pressing [Enter]?

 

  • The Fix I applied it selecting the cell with "Select_7" and pressing [Enter] this toggles the checkbox but adds a lot of steps to my test.

     

    It works but if anyone has a better fix let me know!

2 Replies

  • MW_Didata's avatar
    MW_Didata
    Regular Contributor

    Action "Item [Set]" does not work in this grid either.

     

    To get the column it uses "Aliases.etc.grid.cols.get_Item_2("col1").index"

    It does look like it changes it to true, so i know that the correct cell is being changed.

    TC just changes the visual of the checkbox

  • MW_Didata's avatar
    MW_Didata
    Regular Contributor

    The Fix I applied it selecting the cell with "Select_7" and pressing [Enter] this toggles the checkbox but adds a lot of steps to my test.

     

    It works but if anyone has a better fix let me know!