Document created doesn't contain Author fields

Posted on 2006-04-10
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

    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

    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


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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
    This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    760 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

    8 Experts available now in Live!

    Get 1:1 Help Now