[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
Quartam Software Forums •[Request]Make Default Path That Of Stack Calling Report
Page 1 of 1

[Request]Make Default Path That Of Stack Calling Report

Posted: Sun Jul 18, 2010 7:13 pm
by NingImport
[Request]Make Default Path That Of Stack Calling Report

Posted by Mike Kerner on July 28, 2008 at 1:40am

I almost always will want to put my report and support files at the same level (or in a subfolder) of the stack that is going to execute the report. However, QR uses the path to RR as the default path to the report. I don't know how many people will put their reports in the RR folder, but it would be nice to have the default be at the stack level, or have it as an option.

Reply by Jan Schenkel on July 28, 2008 at 10:37pm

This is difficult to make an option that works everywhere for everyone - though a get/set pair 'qrtReports_GetReportsPath' / 'qrtReports_SetReportsPath' sounds like a good idea for the future. In the meantime, use a function like this:
##
function MyReportPath pRelativePath
put the effective filename of this stack into tAbsolutePath
set the itemDelimiter to "/"
put pRelativePath into the last item of tAbsolutePath
return tAbsolutePath
end MyReportPath
##
to derive the absolute path of your report file from a path relative to the hard drive location of your stack.

An even better option would be the ability to directly embed reports into stacks, but that's a bit further off into the future.

Jan Schenkel
--
Quartam Reports & PDF Library for Revolution
www.quartam.com

=====

Reply by Mike Kerner on July 29, 2008 at 3:09pm

Your suggestion is pretty much what I did as a workaround, so thanks.