digitalmetaphors
Comments
-
Oh, refresh the data tree. Yes, you can call this to get the datatree
object:
uses
ppIDE,
ppToolWn,
ppDsgner;
procedure TmyEndUserSolution.Button1Click(Sender: TObject);
var
lDataTree… -
When you change the fields on the pipeline at Delphi design time, then when
you run the app and the report, it should reflect the new fields. The JIT
won't work at Delphi design time because the event handlers don't execute.
Where are… -
You can extract the TdaSQL object when the report is loaded
Report.Template.OnLoadEnd event. In this event, hook up a communication with
this object (call AddEventNotify) with a TppCommunicator you create. In your
communicator, listen… -
1. This isn't possible unless you change the source OR use custom dataview
templates where you control how to get the data. I would suggest at this
point to create custom dataview templates. You can link them at runtime
using the same… -
You'll have to use the OnSelectionChanged event of the designer to get at
the current selection. Then you will have to create a toolbar and toolbar
button. To do this, call
TppDesignerWindow(ppDesigner1.Form).ToolbarManager.NewT… -
This is code that is in your Dade plugin. It is used to get info about the
tables and fields of a database when you connect to it. If there is an
easier way to get this info from the database, then you can change the code
in the plugi… -
It works for me. Perhaps the webserver connectivity was down temporarily? We
rebooted the machine this morning so there were a few minutes that it was
down. Try downloading it again.
Cheers,
Jim Bennett
Dig… -
It requires a little coding, but you can use dataviews that have edited SQL
with autosearch. You'll have to follow the standard autosearch demos
technique. Here is a tip I created:
in AutoSearch Criterias - Improvements Comment by digitalmetaphors June 2003 -
1. & 3. Yes, you have to create a custom autosearch dialog to do lookups:
http://www.digital-metaphors.com/tips/CustomAutosearchDialogRB7.zipViews are pulled from the database depending on yoru DADE plugin. Open up
your DADE plugin unit and modify the GetTableNames method to also return
Views as Tables.
Cheers,
Jim Bennett
Digital Metaphors
You'll have to implement the entire saving process, which isn't as much as
it sounds like, because there is a method on the template to save to file.
By default, if you don't assign this event handler, the designer calls
Report.Templa…Use the Report.Template.OnLoadEnd event to set Report.Modified to true. That
would surely always force the save dialog to show when they exit the
designer or try to load another report.
To detect what they did, you'll have to ma…Check your newsreader settings, it may not be keeping old messages around. I
just checked the news server and all the messages are there.
Cheers,
Jim Bennett
Digital Metaphors
You can't extract the style and layout from a report. Those are used in
order to create the layout with the Report Wizard. They are not persistent
on the report once the report is created. They are simply a way to describe
how the lay…You'll have to read the Report.PrinterSetup to get the paper width, paper
height or paper name after the template is loaded. I'm guessing this is what
you mean by layout.
What do you mean by style?
Cheers,
…You'll have to build a list in the first pass of the report. Then store the
totals in a list and then in the second pass, print those values in the
appropriate group header. Create a class that stores the outgroup's
breaking (key) va…Handled via email.
Summary:
When creating search criteria in DADE, use the dataview's name, not
necessarily the name of the table that is joined in the dataview for the
field from which the criteria is based.
Are these tables linked master detail? I think in an older version of RB
5.5-6 somewhere that there was a limitation on the second joined table in a
detail dataview which it didn't support search criteria when it generated
the SQL. CA…Yes, you should be able to call CreateAutosearchCriteria in order to create
a search criteria object on the dataview which is an autosearch criteria. Is
customers the name of the dataview in the template report? Is Name a field
in thi…They are still on the ToDo list.
Cheers,
Jim Bennett
Digital Metaphors
We felt the autosearch dialog would be annoying if you were trying to define
a layout and switching between the Design and Preview tabs. So, simply
create these criteria with values and don't make them autosearch until you
are finishe…It works for me. I assign the Report.Template.OnLoadEnd event and then check
to see if the report is modified when shutting down the form. I load a
report template using the designer component at runtime with this code.
procedur…The expression calc is not validated by RB, but rather the resulting SQL
with the expression calc SQL is submitted to the database server for
verification. Try coding it in a query on a form to see if the SQL is valid
for your databas…What do you see when you preview the data on the dataview? What database are
you using? That should work, if || is string concatenation for yoru
database. For example, if you were using a BDE Paradox database, such as
DBDemos, you can…Ah, it is an autosearch dialog. Yes, you can show this form manually, and
then in assign its OnClose event, you'll have to transfer the entered field
values to the autoserach field values manually. This is the same event
you'll need t…Sounds like you just need to code a custom form from scratch at runtime that
is built dynamically using a class registry, much like our custom autosearch
dialog does. The exception is that you are using report parameters, not
autosear…Yes, when trying to save extra info to the offset area, this is only
supported on file based templates. For database templates, use another field
on the database. This is mentioned in the first part of the article from the
Tech-Tips n…Once you set the Report.Language property at runtime, this should notify the
other objects that the language has changed. Then when you launch the
designer, it should reflect the new language you have set. The catch is that
you have t…Sorry, I looked at the code and I suggested using the OnCancel when I
shouldn't have, based on the current context for the OnCancel event which is
for printing only. There is a cancel dialog when printing to the printer
which is respo…Ok, create a preview plugin that sends a notification in the cancel click.
This way you don't have to rely on Report.OnCancel being triggered. Here is
one simple example of a custom preview replacement.
in Mechanism to cancel a query Comment by digitalmetaphors June 2003