Grid Cell focus

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
nic.hall
Posts: 13
Joined: Sat Jan 16, 2016 4:23 am

Grid Cell focus

Post by nic.hall » Mon Feb 04, 2019 12:20 am

I am trying to set the focus in a cell as follows but it is not working. Any suggestions?

Selectlist Named(#GRID_DTL)
Set Com(#GRID_DTL.CurrentItem.Cell<4>) Visualstyle(*null)
Upd_Entry In_List(#GRID_DTL)

*validate
#com_self.GETUM
#COM_SELF.VAL_QTY
If (#RET_CODE = 'ER')
Set Com(#GRID_DTL.CurrentItem) Focus(True) Selected(True)
Set Com(#GRID_DTL.CurrentItem.Cell<4>) Visualstyle(#GS_ERROR)
#GDCL_FFQTY7.Focus := True
Upd_Entry In_List(#GRID_DTL)
Return
Endif

endselect

Post Reply