Autor Beitrag
cherry
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 136

WinXP - Professional
RAD Studio 2009
BeitragVerfasst: Di 19.07.05 10:07 
Hi

Schon wieder ich..., schon wieder Quickreport...
Ich habe auf meinen Report mehrere ASOQuerys platziert, aber nur eines kann ich
bei der DataSet angeben und nur das macht ein NEXT; bzw. ein PREV;
beim blättern...

wie mache ich das alle Querys sich gleich verhalten?

Zum Beispiel suche ich ein Ereignis in der art:

DataSet.OnNext // oder sowas in der art??

F1, F1, F1 !
cherry Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 136

WinXP - Professional
RAD Studio 2009
BeitragVerfasst: Di 19.07.05 10:47 
Na dann...

war ich wiedermal schneller als das "forum" he he..
ich habs nun so gelöst:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
procedure TQuickReport2.ADOQuery0REPORT2AfterScroll(DataSet: TDataSet);
begin
 with AdoQuery1REPORT2 do
 begin
  close;
  Parameters.ParamValues['@betr_id'] :=
    ADOQuery0REPORT2betr_ID.AsString;
  open;
 end;
 with AdoQuery2REPORT2 do
 begin
  close;
  Parameters.ParamValues['@betr_id'] :=
    ADOQuery0REPORT2betr_ID.AsString;
  open;
 end;
end;


Moderiert von user profile iconraziel: Code- durch Delphi-Tags ersetzt.
Robert.Wachtel
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 895
Erhaltene Danke: 7

Windows 7 Ultimate x64
D5 Ent, D7 Arch, RAD Studio 2010 Pro, VS 2008
BeitragVerfasst: Di 19.07.05 10:50 
Titel: Re: QuickReport, DataSet-> mehr als ein Query müssen NEXT
Ich würde mir Gedanken über Master-Detail-Beziehungen machen...
cherry Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 136

WinXP - Professional
RAD Studio 2009
BeitragVerfasst: Di 19.07.05 12:40 
user profile iconRobert.Wachtel hat folgendes geschrieben:
Ich würde mir Gedanken über Master-Detail-Beziehungen machen
Kannst du das noch ein bisschen ausdeutschen für einen nicht so
versierten Delphi anwender?

THX
cherry Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 136

WinXP - Professional
RAD Studio 2009
BeitragVerfasst: Do 11.08.05 09:37 
Ich habe jetzt eine bessere Lösung für dieses Problem.
Und zwar hole ich ganz einfach alle Daten über ein Query rein, dies
realisiere ich mit INNER JOIN(T)'S ;)
arj
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 378

Win XP/Vista, Debian, (K)Ubuntu
Delphi 5 Prof, Delphi 7 Prof, C# (#Develop, VS 2005), Java (Eclipse), C++, QT, PHP, Python
BeitragVerfasst: Do 11.08.05 11:10 
user profile iconcherry hat folgendes geschrieben:
Ich habe jetzt eine bessere Lösung für dieses Problem.
Und zwar hole ich ganz einfach alle Daten über ein Query rein, dies
realisiere ich mit INNER JOIN(T)'S ;)

--> Master/Detail-Beziehungen :D