To Mr Nages xbrowse INCREMENTAL SEARCH
Posted: Sat Jun 01, 2013 7:40 pm
Mr Nages,
on this topic viewtopic.php?f=3&t=26404
But I not understood
I have a big dbf on xbrowse and I must search a record making a filter step by step when the user insert a value into some gets
On this picture you can see there are some gets , when the user insert a Key into a get the xbrowse must search the value into dbf and refresh the xbrowse
@ 22, 85 GET aGet[3] VAR cBanca SIZE 130, 10 PIXEL OF oFrmImportaBanche
@ 36, 85 GET aGet[4] VAR cFiliale SIZE 130, 10 PIXEL OF oFrmImportaBanche
aGet[5]:bKeyDown := { | nKey | KeyChar( oBrwImportaBanche, nKey) }
static function KeyChar( oBrw, nKey)
If nKey == VK_BACK .and. ! Empty( cSeek )
( oBrw:cAlias )->( oBrw:cFilterFld :="ABI+CAB+ISTBAN+FILBAN+CAP+LOCALITA+PROV" )
return 0
elseIf nKey > 31
( oBrw:cAlias )->( oBrw:cFilterFld :="ABI+CAB+ISTBAN+FILBAN+CAP+LOCALITA+PROV" )
return 0
Endif
return nil
How I can make it ?
on this topic viewtopic.php?f=3&t=26404
nageswaragunupudi wrote:Silvio.Falconi wrote:Mr Nages
Can you make a small test sample with Incremental Filter but with some fields
sample for customer.dbf Last+First+State
because I Know How make it for only one field. Thanks!!
Simple
- Code: Select all Expand view
oBrw:cFilterFld := "LAST + FIRST + STATE"
But I not understood
I have a big dbf on xbrowse and I must search a record making a filter step by step when the user insert a value into some gets
On this picture you can see there are some gets , when the user insert a Key into a get the xbrowse must search the value into dbf and refresh the xbrowse
@ 22, 85 GET aGet[3] VAR cBanca SIZE 130, 10 PIXEL OF oFrmImportaBanche
@ 36, 85 GET aGet[4] VAR cFiliale SIZE 130, 10 PIXEL OF oFrmImportaBanche
aGet[5]:bKeyDown := { | nKey | KeyChar( oBrwImportaBanche, nKey) }
static function KeyChar( oBrw, nKey)
If nKey == VK_BACK .and. ! Empty( cSeek )
( oBrw:cAlias )->( oBrw:cFilterFld :="ABI+CAB+ISTBAN+FILBAN+CAP+LOCALITA+PROV" )
return 0
elseIf nKey > 31
( oBrw:cAlias )->( oBrw:cFilterFld :="ABI+CAB+ISTBAN+FILBAN+CAP+LOCALITA+PROV" )
return 0
Endif
return nil
How I can make it ?