2. Februar 2007 11:35
REPORT.RUNMODAL(50061,FALSE,TRUE);
Aufruf des Reports mit RequestForm
REPORT.RUNMODAL(50061,TRUE,TRUE);
Code im Report auf dem OnInitReport - Trigger
IF CurrReport.USEREQUESTFORM THEN
MESSAGE(Text001);
2. Februar 2007 12:12
2. Februar 2007 12:23
REPORT.RUNMODAL(50061,FALSE,TRUE);
REPORT.RUNMODAL(50061,TRUE,TRUE);
2. Februar 2007 12:24
USEREQUESTFORM (Dataport & Report)
Use this function to return the current setting of the UseReqForm property, and to set this property to a new value.
[IsUseRequestForm] := USEREQUESTFORM([SetUseRequestForm])
IsUseRequestForm
Data type: boolean
The current setting of UseReqForm
SetUseRequestForm
Data type: boolean
The new setting of UseReqForm.
Comments
This function should be used before the request form is run - that is, in the OnInitReport trigger. Although it will not cause an error if it is used elsewhere, it will have no effect.
See the description of the UseReqForm property for details.
RUNMODAL (Report)
Use this function to load and execute the report you specify. Use this function or the Report.RUN function if you know at design time the exact report you want to run. Otherwise, use the Report.RUNMODAL or Report.RUN function.
Report.RUNMODAL
Report
Data type: report
Once you define this variable, you can run this function or the Report.RUN function on the variable. As opposed to the Report.RUN function, the system does not automatically clear the variable after it executes this function. You must handle clearing the variable.
Comments
If the report you specify does not exist, a compile error occurs.
The system runs the request form modally when you use this function.
Example
This example shows how to use this function. Assume that the variable Report has been defined as Report 1.
CLEAR(r)
Record.SETRECFILTER()
Report.XXX; // any user-defined function
Report.SETTABLEVIEW(Rec)
Report.RUNMODAL()
Note that the code above includes the CLEAR function to make sure the variable has been cleared.
2. Februar 2007 12:26
2. Februar 2007 12:58
IF CurrReport.USEREQUESTFORM THEN
IF rec.GETFILTER(rec.Auftragsnummer) = '' THEN
ERROR(Text001);
CLEAR(rep);
Rep.USEREQUESTFORM(TRUE);
Rep.RUNMODAL;
2. Februar 2007 13:01
2. Februar 2007 13:07
2. Februar 2007 13:56
Mal schauen wann ich Stryk helfen kann
2. Februar 2007 14:01
IF ReqFormUsed THEN
IF GETFILTER("Auftragsnr.") = '' THEN
ERROR(Text001);
2. Februar 2007 14:20
2. Februar 2007 14:24
2. Februar 2007 15:54
Natalie hat geschrieben:Fast genauso hab ich das doch auch beschrieben ....