XBrowse 16.04 : Gets in Header Bar

User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Re: XBrowse 16.04 : Gets in Header Bar

Post by fraxzi »

nageswaragunupudi wrote:lGetBar works for all datasources. It is independent of the datasource.


ooops, when :lIncrFilter := .T., the GetBar doesn't show. Normal?

I'd like to enable lSeekBar when user's select combobox option to search and to filter using incremental filtering displaying the :cSeek to seekbar/getbar

:?:
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Re: XBrowse 16.04 : Gets in Header Bar

Post by fraxzi »

Mr. Rao,

How to toggle lSeekBar and lGetBar?

:?:
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Re: XBrowse 16.04 : Gets in Header Bar

Post by fraxzi »

fraxzi wrote:Mr. Rao,

How to toggle lSeekBar and lGetBar?

:?:



Mr. Rao,

This doesn't toggle:

Code: Select all | Expand


...
        @1, 210 COMBOBOX aGets[1] VAR aVars[1] PIXEL OF oBar;
                SIZE 100, 100 DROPWIDTH 150 UPDATE STYLE CBS_DROPDOWNLIST;
                ITEMS {'Search','Filter'};
                ON CHANGE ( oBrw:lSeekBar := Self:nAt == 1,;
                            oBrw:lGetBar := Self:nAt == 2,;
                            oBrw:Refresh() )
...
 



this toggles BUT Overlapped

Code: Select all | Expand


...
        @1, 210 COMBOBOX aGets[1] VAR aVars[1] PIXEL OF oBar;
                SIZE 100, 100 DROPWIDTH 150 UPDATE STYLE CBS_DROPDOWNLIST;
                ITEMS {'Search','Filter'};
                ON CHANGE ( oBrw:lSeekBar := iif(Self:nAt == 1, .T., NIL),;
                            oBrw:lGetBar := iif(Self:nAt == 2, .T., NIL),;
                            oBrw:Refresh() )
...
 
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
nageswaragunupudi
Posts: 10733
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Been thanked: 11 times
Contact:

Re: XBrowse 16.04 : Gets in Header Bar

Post by nageswaragunupudi »

Toggling between lGetBar and lSeekBar is not possible in the current versions.
We will provide for this in version 18.06.

Note:
Setting lGetBar or lSeekBar as .T. automatically sets the other as .F.
Regards

G. N. Rao.
Hyderabad, India
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Re: XBrowse 16.04 : Gets in Header Bar

Post by fraxzi »

nageswaragunupudi wrote:Toggling between lGetBar and lSeekBar is not possible in the current versions.
We will provide for this in version 18.06.

Note:
Setting lGetBar or lSeekBar as .T. automatically sets the other as .F.



Copy Sir. :wink:
Kind Regards,
Frances

Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
User avatar
damianodec
Posts: 428
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia
Contact:

Re: XBrowse 16.04 : Gets in Header Bar

Post by damianodec »

Hi,
if I press the "clear filter" button the value into the get header remains there.
How can I clean the get fields when I press "clear filter" ?
FiveWin for xHarbour 24.02 - Feb. 2024 - Embarcadero C++ 7.60 for Win32 Copyright (c) 1993-2023
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
User avatar
Antonio Linares
Site Admin
Posts: 42825
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 126 times
Been thanked: 117 times
Contact:

Re: XBrowse 16.04 : Gets in Header Bar

Post by Antonio Linares »

Dear Damiano,

Please provide a screenshot, thanks!
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
damianodec
Posts: 428
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia
Contact:

Re: XBrowse 16.04 : Gets in Header Bar

Post by damianodec »

in LAST field filter is "simp" and I get SImpson
Image

then I press "Clear Filter" Button but the value "simp" is still in the get header
Image

How can I clear the field?
FiveWin for xHarbour 24.02 - Feb. 2024 - Embarcadero C++ 7.60 for Win32 Copyright (c) 1993-2023
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
User avatar
cnavarro
Posts: 6655
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Has thanked: 8 times
Been thanked: 10 times

Re: XBrowse 16.04 : Gets in Header Bar

Post by cnavarro »

Please modify this sample with

Code: Select all | Expand

   @ 60,250 BTNBMP PROMPT "Clear Filter" ;
      SIZE 100,40 PIXEL OF oDlg FLAT ;
      ACTION ( oBrw:cAlias )->( DBCLEARFILTER(), oBrw:Refresh(), ClearFilter( oBrw ), oBrw:SetFocus() )   // Look

   ACTIVATE DIALOG oDlg CENTERED
   RELEASE FONT oFontB, oBoldB

return nil

//----------------------------------------------------------------------------//
// New code
// Function clean barget
//----------------------------------------------------------------------------//

static function ClearFilter( oBrw )

   local n

   for n := 1 to Len( oBrw:aCols )
      WITH OBJECT oBrw:aCols[ n ]
         if FieldType( n ) != 'L'
            :uBarGetVal    := uValBlank( fieldGet( n ) )
            if FieldType( n ) == 'N'
               :cBarGetPic := NumPict( FieldLen( n ), FieldDec( n ) )
            endif
         endif
         if hb_IsObject( :oBarGet )
            :oBarGet:Refresh()
         endif
      END
   next
Return nil

//----------------------------------------------------------------------------//
Please note that the functions used for applying and removing filters depend on the RDD (data source) you are using in xbrowse, and therefore the initialization of the oGetBar will also be different. This example is created using a DBF.
The important thing to clean the values ​​in the barget is to initialize the data :uBarGetVal of all columns. Their initial value, as I mentioned before, will depend on the RDD used in Xbrowse.
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
damianodec
Posts: 428
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia
Contact:

Re: XBrowse 16.04 : Gets in Header Bar

Post by damianodec »

good cNavarro
Thank you
FiveWin for xHarbour 24.02 - Feb. 2024 - Embarcadero C++ 7.60 for Win32 Copyright (c) 1993-2023
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
Post Reply