FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse incremental seek multiple indexes
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
xBrowse incremental seek multiple indexes
Posted: Mon Mar 16, 2015 09:26 PM
Hello,

I tested xBrowse incremental seek with multiple indexes
Only the 1. selected column is used.
Changing the column, the seek still belongs to the first selection.
Clicking on the header, the index works

I''m using :

REDEFINE SAY oBrw1:oSeek PROMPT oBrw1:cSeek ID 300 OF oFld:aDialogs[ 1 ] PIXEL FONT oFontSmall
oBrw1:Setcolor( 0, 16777215 )


1. column selected



4. column selected searching for < P >, but searching in column 1
field < Typ > is sorted



best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse incremental seek multiple indexes
Posted: Mon Mar 16, 2015 09:58 PM

Please tell us more:
What setting are you using for:
1. lIncrFilter .t. or .f.
2 lSeekWild .t. or .f.
Are you using DBF

Regards



G. N. Rao.

Hyderabad, India
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: xBrowse incremental seek multiple indexes
Posted: Mon Mar 16, 2015 10:10 PM
Mr. Rao,

DBF is used
the settings :

Code (fw): Select all Collapse
WITH OBJECT oBrw1
     :lIncrFilter := .t.
     :lSeekWild := .t. 
     :bChange := { || K_GET() } 
     :nFreeze := 2
END


best regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse incremental seek multiple indexes
Posted: Mon Mar 16, 2015 11:40 PM

Unlike incremental seek, incremental filter works slightly differently.
The filter actually works on oBrw:cFilterFld, which can be specified by the programmer. The filter expression is not cleared (unlike incremental seek) when sort order is changed and the user can continue to type the filter expression. He can also view the filtered records in different sort orders. Actually filter has nothing to do with sort order and does not require index.

When programmer does not specify oBrw:cFilterFld, xbrowse assigns the sorted field when the first search key is pressed.

During runtime, programmer can change the filter field depending on his design.

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion