• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1248
  • Last Modified:

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

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
Jaziar
Asked:
Jaziar
  • 4
  • 3
  • 3
2 Solutions
 
Bozzie4Commented:
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
1
 
JaziarAuthor Commented:
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
 
Bozzie4Commented:
Note : The default view should be accessible to everybody who uses the database, and it can't be hidden (name between () ).

0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
ArunkumarCommented:
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
 
JaziarAuthor Commented:
It is open to all readers.
0
 
ArunkumarCommented:
Now the real problem is your document does not have a "Form" Field i guess  check it out.
0
 
JaziarAuthor Commented:
It is working now!!!!!!!!!!!!!  
0
 
Bozzie4Commented:
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
 
JaziarAuthor Commented:
Arunkumar - I owe you some points and I wanted make sure you got them.  
Thanks to both of you
0
 
ArunkumarCommented:
No problem Jaz !
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 4
  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now