Results 1 to 8 of 8

Thread: Filtered cDbCJGrid class

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    Beech Hill - a village near Reading in the UK
    Posts
    2,812

    Default Filtered cDbCJGrid class

    I found a need to be able to filter cDbCJGrids on any column in the grid. After a coding couple, I got tired of writing the mechanism each time, so I made a class (Doh! ).

    It is simple to use: just Use the package (cDbCjGridFilter.pkg), change the class of your grid from cDbCJGrid to cCbCjGridFilter, add one line to the DD Server for the class in its OnConstrain procedure: "Constrain file as (MeetsFilter(gridObjectName(Self)))" and you are done.

    Don't know if anybody will find it useful, but I've put it up on GitHub/DataFlexCode: https://github.com/DataFlexCode/cDbCjGridFilter.

    It doesn't model especially nicely in the Studio designer (I don't know how to fix that ), but in use it looks like:

    Click image for larger version. 

Name:	Screenshot 2022-09-27 at 13.20.38.jpg 
Views:	105 
Size:	214.7 KB 
ID:	15683

    What doc there is (or needs to be, IMO) is in the ReadMe.md and also at the top of the .pkg file.

    Mike
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Screenshot 2022-09-27 at 12.34.35.jpg 
Views:	74 
Size:	236.2 KB 
ID:	15682  
    Last edited by Mike Peat; 27-Sep-2022 at 08:44 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •