the clause EDIT_GET_BUTTON has little documentation and i need your help (Fwh 1202)
This is my code to define a column:
Code: Select all
REDEFINE XBROWSE oBrwDeta ID 301 OF oFld:aDialogs[2] ALIAS "TMPD"
....
nx := len(oBrwDeta:aCols)
oBrwDeta:aCols[ nx ]:nEditType := EDIT_GET_BUTTON
oBrwDeta:aCols[ nx ]:bEditBlock := { | r,c,o | o:value := PickPrd(o:value) }
oBrwDeta:aCols[ nx ]:bOnPostEdit := { | oCol, xVal, nKey | If( RecCount() == 0, ;
( tmpd->(DbAppend()), oBrw:Refresh() ),), If( nKey == VK_RETURN, TMPD->CODPRD := xVal,),;
oBrwDeta:RefreshCurrent()}
example:
Code: Select all
oBrwDeta:aCols[ nx ]:bToolTip := {|| oBrwDeta:aCols[ nx ]:cToolTip := "Press F2 to call list" }
I would apreciate much if you send a small sample
Thanks for your reply
Ralph