Peoplecode SetCursorPos function in grid
People code is written at Componenet.Rec.SaveEdit level when a condition is met than it should set the cursor on the filed and also display a message. however the cursor is not being set on the line that meets the condition but on the first row in the grid.
SetCursorPos(Page.REQ_FORM, REQ_LINE.SR_START_DATE, CurrentRowNumber()); - this sets the cursor on the first line in the grid.
SetCursorPos(Page.REQ_FORM, Record.REQ_LINE, &J, REQ_LINE.SR_START_DATE); this doesn't even set the cursor on the grid. the winmessage of &J indicates the right row number.