Hi Can any body tell me how can i find out this with code.
To find out whether the database is a team room, team space or doc library etc.
please help me
simran
Hi Can any body tell me how can i find out this with code.
To find out whether the database is a team room, team space or doc library etc.
please help me
simran
Subject: whether the database is a team room, team space or doc library etc
Normally you would find on the middle tab of the properties window of a db on what template it is based.
Subject: RE: whether the database is a team room, team space or doc library etc
hi rob
can we find out programatically.
simran
Subject: RE: whether the database is a team room, team space or doc library etc
Hi Simran
First of all - there are no “types” in Notes databases - they are all .nsf files (except for a few other databases which we will not go into here).
Notes databases differ in their design depending on the template they are based on - they can be based on an out of the box template or a user defined template.
If you want to programmatically find out which template this database is based on then you need to look at the NotesDatabase LotusScript class.
HTH
A
Subject: RE: whether the database is a team room, team space or doc library etc
Another approach would be to get a NotesNoteCollection with (e.g.) the forms and the views from a target db. And then look for some “specific” formnames and/or viewnames.
You have to look at some designs of the type of databases you are looking for. Many of them have design elements with names you would normally not find in any other db. Of course, this is not fullproof but it will give you some clou of what db you are dealing with. And when your first search does not give the results you expect, add some other design element with their name to your next search.
I did a similar thing by defining a few elements and names to a type of db. Then I scanned each db and showed the best fit by a percentage.
So a certain db matches 4 out of the 5 design elements you defined, you would give it a 80% result. And the highest fit is shown in you result. By refining this you get better results. But keep in mind the more design elements you address for a certain type, the more time it will take to get the results.