Hi,
I think your problem is that you are not loading the library stack
correctly. The best way to do this is to use a full path name to
the .rev file, as in: <FULLPATH>StandardReports.rev. You can grab the
full path of the currently running stack like so:
put the filename of this stack into myStackFilePathName
set the itemDelimiter to "/"
put "StandardReports.rev" into item -1 of myStackFilePathName
start using myStackFilePathName
Put this in the preOpenStack handler in card 1 of your main stack.
Hope this helps
Dave
On 10 Jul 2008, at 05:46, dcpbarrington wrote:
I have created the StandardRepor.rev as an independent stack and
the Main
stack starts the independent stack by doing the following:
if "StandardReports" is not among the lines of the StacksInUse then
start using stack "StandardReports"
end if
What I want to be able to do is be able to supply different sets of
reports
like a set of libraries. The main program selects either
StandardReports OR
CustomReports1 OR CustomReports2 and the main stack starts a specific
library based on the configuration. Each of the Stacks would have
the same
report functions, but depending on what stack is started, the user
can get
different report formats for the same set of information.
SO an independent stack library can be called by the main stack,
but the
code must be independent and does not have access to any of the
functions or
commands in the stack that started it. Can variables be passed
between the
functions and data returned by the function?
How do I get the independent stack to start using the Main stack?
The main
stack is already in memory.
Sarah Reichelt-2 wrote:
Is the StandardReport stack a sub-stack of the Main Stack or is it a
separate file?
If it is a sub-stack, then it automatically gets access to all the
handlers in the Main Stack, but if it is a separate file, they are
independent. You would then have to "start using" the Main Stack as
well, if you wanted StandardReport to be able to use it's handlers.
The "StandardReport.rev" file can be placed anywhere you like, but if
you want MainStack to be able to refer to it automatically, then se
the Main Stacks stackFiles property to include a reference to
"StandardReport.rev".
HTH,
Sarah
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
--
View this message in context: http://www.nabble.com/Creating-
Library-Modules-tp18368070p18375828.html
Sent from the Revolution - User mailing list archive at Nabble.com.
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution