Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Share NSF problem

Status
Not open for further replies.

kristwong

Programmer
Dec 30, 2002
2
HK
I have a user requirement that should not modify the existing notes templates but need to add new functions to integrate the notes system. Our thinking was to create another set of template with our customization in it but connecting to the same mail database that the user is using. However we have difficulties during our implementation. Our customization including adding one additional field to the database.

Can anyone advise whether this proposal works or not. If not, how to meet the user requirement?

More specifically, could different design notes (from different NSF databases) share the same document notes database without replication?
 
The answer is yes.
Your solution implies creating a new template with the form or subform you wish to modify in it. That is where you will add the field you want.
You will need to give a unique template name to the database, and declare the database as a master template (in database properties, design tab, "Database file is a master template").

That done, create another template by copying the standard Notes template. You will need to assign a different unique template name to that one as well.

Now comes the tricky part - tricky to understand, but not to implement.

Let us say that the original Notes mail template has a template name of StdMail.

Let us say that the copy you made has a template name of CorpMail.

Finally, the mod you made has a template name of CorpMod.

What you need to do is ensure that CorpMail draws its design from StdMail (same tab in db Properties - "inherit design from...").
That done, go to the form/subform design tab, select the design item that you have changed, and open its Properties box (design tab). Assign the value "CorpMod" to the "Inherit design from..." property.

And now you are almost done. The only thing left is to assign all mail files to inherit from CorpMail instead of StdMail.
When the Design task runs on the server, all design elements will update from StdMail excet your modified form, which will inherit from CorpMod.

Any questions ?

Pascal.


I've got nothing to hide, and I'd very much like to keep that away from prying eyes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top