Hi Thom, I finally got around to taking a look at this, and it is likely because I'm not doing something right, but this either isn't what I am looking for or isn't working for me.
I downloaded the reuse_webinar.bws project and copied what was in the
common module to c:\Common.bas. I then replaced the contents of the
common module with a comment saying that it was a container, as I assume
the loadScripts function's purpose was to load C:\Common.bas into the
Common module.
I then created the following rules based script:
Step|First|
Rule||
loadScripts
Step|Second|
Rule||
PopupScreen "Testing!"
So it would run loadScripts, and then use the popupscreen sub to display
a testing message. But it bombed with the "no such sub or function".
This is the functionality that I would like to have.
* Separate file, located in a central location, that contains the
base functions that all my projects use. This single file would allow me
to only have to update a single item when these base functions change
instead of having to modify every project that uses those base
functions. Base functions include things like the selectmenu item that
allows easy selection of flyout menus, a write to log function that
allows me to easily monitor the status of my scripts, email addresses
for hung messages, etc etc. Stuff that is the same, project to project
(we have a separate project for each Meditech region in our organization
that corresponds with that region's Boston Workstation virtual server)
* Each project should load this file and have it's contents
available to the project's scripts.
* I run each script via the windows task scheduler, using the
shortcut method (C:\bss70\bss80.exe c:\bss70\BWS_Scripts\project.bws /r
SCRIPTNAME /t), so when the task runs, it opens the project (which would
import the common file) and executes the SCRIPTNAME.
Is this not something that is possible? Am I stuck modifying each
project everytime I need to change a base function?
Thank you,
Mitch Lawrence
Lead Applications Analyst
Technical Support - NPR/Automation
CHRISTUS Information Management
*: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
Send a "thank you
<http://intranet.christushealth.org/spiritBuck/Default.asp> " to
someone!
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Thom C. Blackwell
Sent: Tuesday, January 15, 2008 12:24 PM
To: [email protected]
Subject: RE: [Talk] Scripting shared resource
Greetings,
Not at all a noob question...
Visual Basic is not like some programming languages that use "includes"
- basically a way for program (when it is first started) to grab code
and run said code <easily>...
There is a way that I know of to get a BWS project to load a
module(.bas) file - which is posted on our website here - but not
"automagically"
http://www.bostonworkstation.com/customer_center/script_center/script_de
tails.aspx?id=250&cat=14
So your rules based scripts (or at least the first one to run in the
schedule) would need to execute this code to make the module load.
Regards,
Thom
Thom C. Blackwell
Product Manager
Boston Software Systems
(866) 653-5105 ex 807
www.bossoft.com <http://www.bossoft.com/>
Sign up for my weekly webinar!
<http://www.bostonworkstation.com/customer_center/special_events.aspx>
LEGAL NOTICE Unless expressly stated otherwise, this message is
confidential and may be privileged. It is intended for the addressee(s)
only. Access to this E-mail by anyone else is unauthorized. If you are
not an addressee, any disclosure or copying of the contents of this
E-mail or any action taken (or not taken) in reliance on it is
unauthorized and may be unlawful. If you are not an addressee, please
inform the sender immediately, then delete this message and empty from
your trash.
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lawrence,
Mitchell
Sent: Tuesday, January 15, 2008 11:48 AM
To: [email protected]
Subject: [Talk] Scripting shared resource
Call me a total vb noob, but I've pretty much taught myself what I know.
I know there has to be a way to share a resource among projects. Let me
give you our basic topology:
We have 9 different regions, each with their own scripting project. Each
project contains some background functions and subroutines as well as
global variable definitions, etc. This "resource" is the same from
project to project.
Is there a way I can remove the resource from each individual project
and maybe store it in a central location that is instead referenced by
each project? This way I only need to update a single thing instead of
multiple projects when I update/add functionality to the resource.
Stupid noob question I know, but help anyway, mkay? :-)
Thank you,
Mitch Lawrence
Lead Applications Analyst
Technical Support - NPR/Automation
CHRISTUS Information Management
*: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
Send a "thank you
<http://intranet.christushealth.org/spiritBuck/Default.asp> " to
someone!
<<image001.jpg>>
<<image002.jpg>>
