Created a new class: DC_BrowseQuery(). This is only a sample class and not documented. Usage is included in the sample program ..\Samples\BrowseQuery\BrowseQuery.Prg. This class is used to provide a popup window of a user-friendly dialog for creating filters for the browse.
Create a new directory named \exp19\samples\BrowseQuery and unzip the attached file to that directory.
Run PBUILD BrowseQuery to build BrowseQuery.Exe.
Run the program and click on the FIND button.
Enter value(s) into the Gets and then click FIND to see how the filter is created for the browse.
I wrote this class for Bobby Drakos for use in a law office application.
He says that this is the most used feature in his entire application.
New DC_BrowseQuery() class
New DC_BrowseQuery() class
- Attachments
-
- BrowseQuery.zip
- DC_BrowseQuery() source code.
- (4.26 KiB) Downloaded 731 times
The eXpress train is coming - and it has more cars.
Re: New DC_BrowseQuery() class
Hi Roger,
The sample does not compile w/o adding #INCLUDE "DCHTML.CH"
After the compile I get an "Invalid numeric value"
Operation <1>%<0>
called from (B)INIT: _DCINIT(28)
called from DC_BROWSEQUERY:APPLYQUERY(385)
BTW: Do they have law offices in taxis in the Big Apple now??
Terry
The sample does not compile w/o adding #INCLUDE "DCHTML.CH"
After the compile I get an "Invalid numeric value"
Operation <1>%<0>
called from (B)INIT: _DCINIT(28)
called from DC_BROWSEQUERY:APPLYQUERY(385)
BTW: Do they have law offices in taxis in the Big Apple now??
Terry
Re: New DC_BrowseQuery() class
Oops. This was tested with build 255. You apparently are using build 254. You don't need dchtml.ch.
DCEVAL is a new command in build 255.
Just comment out lines 271 and 272 because that isn't needed for this sample because it uses a floating window.
Bobby has quite a few projects going on now. He's also maintaining Bob Volz's app.
DCEVAL is a new command in build 255.
Just comment out lines 271 and 272 because that isn't needed for this sample because it uses a floating window.
Code: Select all
// DCEVAL {||::browseObject := oBrowse, ;
// ::parentObject := oStaticQuery}
The eXpress train is coming - and it has more cars.