We are trying to set the value of a field in the grid. I tried MSet and SetObjectValue but they update the value of the field in all the rows and overwrites the previous update.
I have the code below,
Dim GridHandle As Integer
GridHandle = GetGridHandle("Spread_CM")
Dim liGridFetch As Integer
Dim liMaintFlg As Integer
Dim strInvtId As String
liGridFetch = MFirst(GridHandle, liMaintFlg)
Do While liGridFetch = 0
' The appropriate record from the array is now available in buffer
strInvtId = GetObjectValue("ccmInvtID") (this works, I get the id for each row)
QtyOnPO = GetQtyonPO(strInvtId)
Call MSet("xQtyOnPO", QtyOnPO) ( this updates all rows, tried setobjectvalue and still has the same issue)
liGridFetch = MNext(GridHandle, liMaintFlg)
Loop