Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Document created doesn't contain Author fields

Posted on 2006-04-10
Medium Priority
Last Modified: 2013-12-18
I have an application that creates documents through LotusScript. The form that it creates the documents from has an subform attached to it for my authors fields. When LotusScript creates the documents it does not bring in the authors fields though which causes the user to not have access to edit the document.

Is there a way when creating the document through lotusScript to also include the author fields subform

also Is there a way to go back and on the documents that do not have them to add them? I have tried to create a agent that basically edits the document and then saves the document but it doesnt add the authors information unless I go through each document and manually click on edit and then save??

Making it 500 points because I need it quickly.

THank you!
Question by:TheBull369
LVL 15

Accepted Solution

mshogren earned 2000 total points
ID: 16419873
Check out the computewithform method in lotusscript.  It does what you are trying to do when you edit and save the documents.  It will laso work in your original script to create the documents.  Use a line like

doc.ComputeWithForm False, False

just before the line you save the document on.
LVL 14

Expert Comment

ID: 16420399
To create author fields in script you have to use something like this:

Dim item As NotesItem
Set item =  doc.GetFirstItem( "myAuthors" )
item.IsAuthors = True
Call item.AppendToTextList( "Parthasarathy Perumbali/expertsexchange/org" )

For the old documents to get reflected first create this field and have some default assigned to it , make it computed and run the computewithform



Author Comment

ID: 16420658

Thank you! I tried it on both my agent and original document creator and it worked.

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
Integration Management Part 2
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

564 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