Custom autosearch in custom tabsheet
Hello
I am using D7 ent sp 1 and RB 9.02 end user reporting
I developed a bunch of custom autosearch fields which works fine.
I see that RB builds a separate tabsheet grouping the autosearch fields
by dataview.
In some reports this is not nice (e.g. there are five dataviews with
only one as for each) and it would be better to put all as fields in a
single tabsheet.
Is there any way to accomplish this with the current architecture?
Thanks in advance
Bye
Nicola
I am using D7 ent sp 1 and RB 9.02 end user reporting
I developed a bunch of custom autosearch fields which works fine.
I see that RB builds a separate tabsheet grouping the autosearch fields
by dataview.
In some reports this is not nice (e.g. there are five dataviews with
only one as for each) and it would be better to put all as fields in a
single tabsheet.
Is there any way to accomplish this with the current architecture?
Thanks in advance
Bye
Nicola
This discussion has been closed.
Comments
Take a look at the autosearch demos located in the \RBuilder\Demos\3.
AutoSearch\... directory. Specifically the Custom AutoSearch Dialog
example. This shows how to add numerous autosearch fields to a single form.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
The example you are referring to is not an end-user one.
I think this changes things..
I tried with end user (with demos\end user databases\paradox\bde\enduser
program) and if you try to define two autosearch fields in different
dataviews (customer and orders) you will see that RB creates two tabsheet.
(It is true, tough, that here there aren't customized as but I think
it is not relevant for what I am asking for..)
Nico Cizik (Digital Metaphors) ha scritto:
Sorry, I should have explained a little more. In order to change the way
the default autosearch dialog behaves (i.e. using tabs) you will need to
create and register a custom autosearch dialog such as the one used in the
example I directed you to. Then all autosearch fields created in DADE (end
user) will use the new dialog.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
This is the way I did
I registered a custom autosearch dialog and used my custom autosearch
fields (using this example as a guideline).
But I cannot see how to control the tabsheet creation logic.
It seems to me that it is drived by the number of distinct dataviews.
Each dataview a tabsheet
It seems to me that TppAutoSearchDialog (the base class I derived from)
owns a
FNotebook: TppAutoSearchNotebook;
This FNoteBook is responsible for creating the different tabsheets
A different tabsheet for each "group" (=dataview) of as fields
May you confirm this, please?
Thanks
Bye
Nicola
Nico Cizik (Digital Metaphors) ha scritto:
In order to change the way
If you look at the example, you will see that it descends from the
TppAutoSearchDialog class. Taking a look at this class (ppASDlg.pas),
inside the Init routine, you will see how and where the tabs are created.
In order to take control of this behavior, you will need to override this
routine and assign each autosearch field yourself (perhaps in separate
panels on the form).
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
OK, I will try in this way
Thank you very much
Bye
Nicola
Nico Cizik (Digital Metaphors) ha scritto: