I have created a library i like to use on all my apps (or almost all).
I used to have it on a file, and then have a INCLUDE statement that pointed to the file.
Problem is that i want to move the library to the databases, but then i would need to always keep them synchronized.
Any ideas on how to do that?
Subject: Put the script library in a template
You can then inherit the script library just like you can any design element. Even if you have many databases that use the same script library, all the databases can inherit from the one template in which you maintain the script library.
Subject: Can you tell me how to do it?
Can you tell me how to do it?
Subject: how
create an empty template (ie new db, make it a master template, name it)create a script library and put the contents of the file into that, ie copy and paste the code
copy the script library object
open the application database
paste the script library object (i think you need to be looking at sahred code>script libraries to be able to paste it in)
change the existing code to point to the new library instead of the old file, ie Use “libraryname” instead
when you need to make a change you do it in the master template and then run the design task against those databases using the template and it’ll update (or refresh it manually).
Subject: thanks, but …
Thanks for your response …
- create an empty template (ie new db, make it a master template, name it)
- create a script library and put the contents of the file into that, ie copy and paste the code
- copy the script library object
- open the application database
- paste the script library object (i think you need to be looking at sahred code>script libraries to be able to paste it in)
- change the existing code to point to the new library instead of the old file, ie Use “libraryname” instead
This i already know.
when you need to make a change you do it in the master template and then run the design task against those databases using the template and it’ll update (or refresh it manually).
This is what i need more info. What is and how do i run the “design task”? And how do i “do it manually”?
Subject: Documentation and search are you friend…
From the Notes 8 Information Center searching for design taskhttp://publib.boulder.ibm.com/infocenter/domhelp/v8r0/index.jsp?topic=/com.ibm.help.domino.admin.doc/DOC/H_ABOUT_UPDATING_DATABASE_DESIGN.html
http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/index.jsp