General information
Category:
Reports & Report designer
>I need to pass a customer name as a variable/parameter to a report.
>Is there a way to do it?
Erik hit the solution here. Define a procedure to generate the cursor for the report. Define private variables for the procedure and they will be visible to the report form.
PROCEDURE MyReport
PRIVATE pcVar1, pcVar2
pcVar1 = "SomeValue1"
pcVar2 = "SomeValue2"
SELECT Blah, Blah ;
FROM SomeTable ;
INTO CURSOR ;
MyReportCursor
REPORT FORM ..................
RETURN
pcVar1 & pcVar2 should be visible to the report.
Steve
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only