Solved

Why Profile Documents?

Posted on 2004-10-25
385 Views
Last Modified: 2013-12-18
Hello All-

I recently finished up a project in which I had to make changes to a Lotus Notes database and create a new LN DB.  I noticed a "Profile" document in the existing db, and have noticed it in many discussions.

I'm wondering what the point of one is.  I was able to create a small ln db application without the use of the profile document (since I have no idea what it's used for).

I'm just looking for some explanation of what LN developers use profile documents for, and if they're really necessary for LN DB development.

Thanks a lot :)

-Cory
0
Question by:cLFlaVA
    9 Comments
     
    LVL 15

    Assisted Solution

    by:Bozzie4
    Great.  No problem if you can create applications without profiles (profile documents / regular documents).

    Why do you need them ?  To store user-specific or database-specific data !  Check your own mailfile, the Calendar Profile is a profile document (Tools/Preferences).  It stores your personal preferences (like what your business hours are).

    Now there are 2 possibities to implement profiles (as notes documents)
    1. use a real profile document : these documents can't be shown in a view and are generally user-specific (can be database specific).  You call them by 'key' : @getprofilefield and the like.  Check the "Profile documents" entries in your help file
    2. use a regular Notes document : create documents in a special view, that you use to store data.  You will use normal Notes methods to store and retrieve data from them (eg. @dblookup).  

    There are advantages in storing your user-specific data as normal notesdocuments (eg. you can easily manage them in a view as the db manager), but using a profile document also has its advantages (eg. simple to store and retrieve values from the document)

    cheers,

    Tom
    0
     
    LVL 13

    Author Comment

    by:cLFlaVA
    Thanks for the helpful info.

    Could you give me an example of popular entries in a Profile document?  I think this would better help me understand their importance.
    0
     
    LVL 15

    Expert Comment

    by:Bozzie4
    Notes database configuration :
    - links to other databases
    - default categories
    - all kinds of configuration settings eg. external webserver name
    - ...
    Personal profiles :
    - preferences of all kinds eg. startview, what frameset to start with, preferred way of contact (email/phone), ....
    - R6 : colors for views (see mailfile)
    - who is the manager for a user (hierarchy in company)
    - what company does a user work for (in case of external companies),...
    - ...


    Tom
    0
     
    LVL 9

    Assisted Solution

    by:HappyFunBall
    I use them all the time to store configuration-type data.  For example, if I want certain users to have control over what choices appear in a drop-down box, I'll put the choices in a profile doc and restrict access to the profile doc to only users with an Admin role.  In other words, the general public won't have access to add/delete the choices that appear in a dialog list field.  However, I don't need to get involved if that list of choices needs to change; I can allow a designated person access to maintain that choice field.  That way, there's no need for a programmer to edit a field's properties to add choices to, say, a Category field, just because a new category needs to be added to the list.  I use this technique in nearly every database I create.
    0
     
    LVL 13

    Author Comment

    by:cLFlaVA
    Interesting.

    What I did when I had values in a drop-down box was make a keyword form with two fields, name and values.  The name would be the name of the drop-down field and values would be the list of values.

    I'd then do a db lookup to get the value from the keyword document.  So, is this just another approach?
    0
     
    LVL 24

    Assisted Solution

    by:HemanthaKumar
    Profile docs are much efficient way to store db specific data.. but there is a slight disadvantage to it.. i.e. you really cannot see them like you can see the docs in the view.. that makes view lookup "profile" docs (loosly framed) my choice..

    Secondly I can control pieces of view "profile" docs replicate or not to replicate.. But profile docs doesn't filter out thru the replication formula..

    ~Hemanth
    0
     
    LVL 19

    Accepted Solution

    by:
    Simple question, but the answer may be looong. Why not give you some stuff to read. See this:

    http://www.dominopower.com/issuesprint/issue200409/00001383.html - Nearly all that it takes to get you started.

    http://www.nsftools.com/tips/PerfTips.htm - This page tells you you can enhance performance by using Profile Documents (under certain circumstances)

    http://www.breakingpar.com/bkp/home.nsf/Doc?OpenNavigator&U=87256B280015193F87256D26006BA928 - Some Profile Document Warnings you should know about.


    For the rest, we are always here :)
    0
     
    LVL 31

    Assisted Solution

    by:qwaletee
    Were you talking about what Lotus technically calls a profile document (which is sort of a design document used to hold metadat for your application)?  Or some DB that had a choice somewhere that said "user profile" or "manage profile" or "database profile" or the like?  The latter MIGHT be what Lotus calls a profile document, but not necessarily.  The purpose of a prfile document, form the Lotus programming perspecitive, is to have a place to store data ABOUT the application or the user, but that does not get stored as regular data.

    It is sort of like asking what the "master" database is in SQL.  In some ways, it is a database like anyt other database.  But it olds all he data about managing the system, so it is "special."
    0
     
    LVL 13

    Author Comment

    by:cLFlaVA
    Thanks to everyone, I had no doubt you'd all be able to help me.
    Points are split for your contributions.

    Thanks again.
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
    I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
    Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
    Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    933 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now