Page 3 of 3

Re: XBrowse 16.04 : Gets in Header Bar

Posted: Sat Jul 21, 2018 3:58 am
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

:?:

Re: XBrowse 16.04 : Gets in Header Bar

Posted: Sat Jul 21, 2018 8:03 am
by fraxzi
Mr. Rao,

How to toggle lSeekBar and lGetBar?

:?:

Re: XBrowse 16.04 : Gets in Header Bar

Posted: Sat Jul 21, 2018 8:23 am
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() )
...
 

Re: XBrowse 16.04 : Gets in Header Bar

Posted: Mon Jul 23, 2018 7:48 am
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.

Re: XBrowse 16.04 : Gets in Header Bar

Posted: Tue Jul 24, 2018 12:08 am
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:

Re: XBrowse 16.04 : Gets in Header Bar

Posted: Wed Apr 09, 2025 8:43 am
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" ?

Re: XBrowse 16.04 : Gets in Header Bar

Posted: Wed Apr 09, 2025 9:23 am
by Antonio Linares
Dear Damiano,

Please provide a screenshot, thanks!

Re: XBrowse 16.04 : Gets in Header Bar

Posted: Wed Apr 09, 2025 9:56 am
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?

Re: XBrowse 16.04 : Gets in Header Bar

Posted: Wed Apr 09, 2025 10:25 am
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.

Re: XBrowse 16.04 : Gets in Header Bar

Posted: Wed Apr 09, 2025 12:35 pm
by damianodec
good cNavarro
Thank you