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 Expand view
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()}
The question is: Is there a way to assign a firekey to call my function in :bEditBlock ?
example:
- Code: Select all Expand view
oBrwDeta:aCols[ nx ]:bToolTip := {|| oBrwDeta:aCols[ nx ]:cToolTip := "Press F2 to call list" }
When you are doing an invoice with many items, the user is more alike to use the keyboard instead of clicking in the small button with the mouse.
I would apreciate much if you send a small sample
Thanks for your reply
Ralph