Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
//@par_Products
stringvar c;
IF COUNT({?db_Products}) > 1 Then
(
c:= join({?db_Products}, ",");
c:= Replace (c,",","','"); //Wrap single quotes around every variable for DB2 to parse correctly
)
Else
c:=(Minimum({?db_Products}));
//Return the variable
"'" & c & "'";
//@par_Products
IF COUNT({?db_Products}) > 1 Then
join({?db_Products}, ",")
Else
Minimum({?db_Products});
//This formula builds a Between date string based on the user selection in the
//parameters, providing a way to share it across other subreports
Stringvar Range1;
Stringvar Range2;
//Change the date format depending on the server. This works for db2.
Range1:=Cstr(Minimum({?db_EffDate}), "yyyy-MM-dd");
Range2:=Cstr(Maximum({?db_EffDate}), "yyyy-MM-dd");
//If user selected "No Upper Bound" then must provide a large enough range to accomodate
If Range1 = "" then
Range1 = "1900-01-01";
ELSE IF Range2 = "" Then
Range2 = "2099-12-31"
//Build the BETWEEN date string
"BETWEEN '" & Range1 & "' AND '" & Range2 & "'";