Solved

Error -> Could not get default view id for database (Tracking.nsf)

Posted on 2003-10-23
10
1,134 Views
Last Modified: 2013-12-18
when I added the new code

Dim rtitem As notesrichtextitem
      Set rtitem = message.createrichtextitem( "Body" )
      
      Call rtitem.AppendDocLink( uidoc.document , "link to document" )
      Call rtitem.AddNewLine(2)
      Call rtitem.AppendText( COMMENT )

I get that error and nothing happens?
0
Comment
Question by:Jaziar
  • 4
  • 3
  • 3
10 Comments
 
LVL 15

Expert Comment

by:Bozzie4
ID: 9606379
You need a default view in the database

So choose one of your views, and click the propery ' Default when database is first opened'
I don't think it's necessary that the document actually is in that view, but it is possible that it should.

cheers,

Tom
0
 

Author Comment

by:Jaziar
ID: 9606424
OK I made a default view - I get the email with the link icon - click it and get the message can not locate default form?

Thanks for staying with me Tom
0
 
LVL 15

Accepted Solution

by:
Bozzie4 earned 400 total points
ID: 9606425
Note : The default view should be accessible to everybody who uses the database, and it can't be hidden (name between () ).

0
 
LVL 9

Assisted Solution

by:Arunkumar
Arunkumar earned 100 total points
ID: 9606450
now you should have a default form for the database.

you can have this by the form properties.

Pick the main form in your application and make it the default form.

:-)
0
 

Author Comment

by:Jaziar
ID: 9606456
It is open to all readers.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 9

Expert Comment

by:Arunkumar
ID: 9606459
Now the real problem is your document does not have a "Form" Field i guess  check it out.
0
 

Author Comment

by:Jaziar
ID: 9606474
It is working now!!!!!!!!!!!!!  
0
 
LVL 15

Expert Comment

by:Bozzie4
ID: 9606482
You don't really need an actual form field, but it could help to add a line like

uidoc.document.Form="nameOfYourForm"

Or make the form you want it to open with, the default form.

cheers,

Tom

0
 

Author Comment

by:Jaziar
ID: 9606615
Arunkumar - I owe you some points and I wanted make sure you got them.  
Thanks to both of you
0
 
LVL 9

Expert Comment

by:Arunkumar
ID: 9606675
No problem Jaz !
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 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

15 Experts available now in Live!

Get 1:1 Help Now