Paul E. Schoen
2010-05-14 00:26:31 UTC
I have an application (Ortmaster) that uses database and report functions to
work with test results on devices known as reclosers. I am using
QuickReports with Delphi 4 Pro to provide a way for customers to view and
print reports. But they may run several tests on a recloser, and only print
a certain subset of these. I'm using dBase III files.
I was able to do this by prepending the text in a TESTRESULT field with an
asterisk (*), and after each test I present a MessageBox which asks if the
test should be included in the report. The asterisk is added to exclude the
results from the report, and I do this with an SQL statement. There is also
a form which can be opened with a DBCtrlGrid for each of the four database
files, and the one for results is selected for only the results for a
particular recloser. But the customer would like to be able to check or
uncheck these records for the report.
One way to do this would be to add a boolean field for true/false, but I'd
rather not change the database structure. I might be able to provide a
button that will mark or unmark the TESTRESULT field of the selected record
with the asterisk, but there should be some way of presenting the records in
the DBCtrlGrid to show if they are to be included or not. I could provide
two DBCtrlGrid components so that one shows the selected items and the other
shows the deselected items, similar to the way you can select which forms
are to be autocreated in the IDE.
There are probably many ways to do this, but I want something that will be
most convenient and easy to learn for the customers, who may not be very
computer-savvy. Maybe someone has done this before, and no sense reinventing
the wheel, so to speak. Ideas appreciated.
Thanks,
Paul
www.ortmaster.com
work with test results on devices known as reclosers. I am using
QuickReports with Delphi 4 Pro to provide a way for customers to view and
print reports. But they may run several tests on a recloser, and only print
a certain subset of these. I'm using dBase III files.
I was able to do this by prepending the text in a TESTRESULT field with an
asterisk (*), and after each test I present a MessageBox which asks if the
test should be included in the report. The asterisk is added to exclude the
results from the report, and I do this with an SQL statement. There is also
a form which can be opened with a DBCtrlGrid for each of the four database
files, and the one for results is selected for only the results for a
particular recloser. But the customer would like to be able to check or
uncheck these records for the report.
One way to do this would be to add a boolean field for true/false, but I'd
rather not change the database structure. I might be able to provide a
button that will mark or unmark the TESTRESULT field of the selected record
with the asterisk, but there should be some way of presenting the records in
the DBCtrlGrid to show if they are to be included or not. I could provide
two DBCtrlGrid components so that one shows the selected items and the other
shows the deselected items, similar to the way you can select which forms
are to be autocreated in the IDE.
There are probably many ways to do this, but I want something that will be
most convenient and easy to learn for the customers, who may not be very
computer-savvy. Maybe someone has done this before, and no sense reinventing
the wheel, so to speak. Ideas appreciated.
Thanks,
Paul
www.ortmaster.com