Passing Variables from Report to Page

I am trying to pass some separate variable values to a report on a page so it can do a comparison.

Report: 50107 Variables:

BOMfilter

fromVersion

toVersion


My page code currently can pull one report value in another method.

PrintLatestVersionBOM - OnAction()
IF ActiveVersionCode<>’’ THEN
BEGIN
CLEAR(BOMVersion);
BOMVersion.SETFILTER(“Production BOM No.”,“No.”);
BOMVersion.SETFILTER(“Version Code”,ActiveVersionCode);
BOMVersion.FIND(’-’);
VersionBOMReport.SETTABLEVIEW(BOMVersion);
VersionBOMReport.RUN;
END
ELSE
MESSAGE(txt50000, “No.”);


I am unaware how to set all of the multiple variables to pass them correctly. What is the most efficient way to do this?

thanks!

Tyler

Best way is to create a global function in the report that has variable feeds that can be sent from the page. The function can then set the variable values fed to the report as though they are filters.

Best tutorial on this assuming this meets your needs and I have explained myself well, please see the following web page:

http://www.mibuso.com/howtoinfo.asp?FileID=9

Neil