Question about example scripts
Posted by Mike Kerner on July 28, 2008 at 12:44am
Jan,
In the process of trying to figure out why certain things work and certain other ones don't, I've gone back to the card scripts, where I find certain other hidden other goodies:
myReportPath() - what would be the script for this?
Also you use the property the uReportFile of me - which I assume is just a custom property that you assigned for the sake of having it handy, right?
=====
Reply by Jan Schenkel on July 28, 2008 at 10:25pm
Correct on both accounts:
1. MyReportsPath is a function in the stack script:
##
function MyReportPath
set the itemDelimiter to "/"
put item 1 to -2 of (the effective filename of me) into tStackPath
return (tStackPath & "/Sample layouts/")
end MyReportPath
##
Though I have slightly refined it in recent articles:
##
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
##
2. the uReportFile of me was just handy when I was building the Report samples stack - which has undergone quite a few changes since the very first one that I put together as I was developing Quartam Reports 1.0 way back when...
As you've guessed, revamping it is on my to do-list for version 2.0
Jan Schenkel
--
Quartam Reports & PDF Library for Revolution
www.quartam.com
Question about example scripts
-
- Posts:87
- Joined:Sun Jul 18, 2010 5:23 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
===== The above post was imported from the old forum hosted at quartam.ning.com =====