/ Forums / Advansys Formativ / Creating Solutions with Formativ / Modify Document properties

  • Creator
    Topic
  • #4152
    lp_irovetz
    Participant

    Confused
    hi, Perhaps am i tired or stupid but … How do that ?

    I’d like to find a document by its number and modify, for instance, its author and subject.

    The query process is not clear but i found how.
    But whan i want to modify a propertie => Error

    Help !!!!!!!

    ‘Here is my code
    ‘=== query process with wait for completed
    Set Result = qwnew.QueryMessages
    Set DocNew = Result.item(1)

    call DocNew.documentversion.CheckOut(Path)

    ‘Prise en compte des infos du dossier
    ‘L’adresse de l’Auteur : frmdocs.nccRecipient.EmailAddress(0)
    set DocNew.Document.author.EmailAddress = frmdocs.nccRecipient.EmailAddress(0)

    ‘L’objet du document = frmdocs.txtObj.Text
    If frmdocs.txtObj.Text = “” Then
    frmdocs.txtObj.Text = “-” ‘Nécessaire pour Word, l’objet ne doit pas être vide
    end if

    Set DocNew.Subject = frmdocs.txtObj.Text

    ‘On le re-intègre
    call DocNew.documentversion.CheckIn(Path)

    Thank for your help

  • Author
    Replies
  • #7280
    lp_irovetz
    Participant

    Big Grin Well, i was tired !

    First, we don’t need
    call DocNew.documentversion.CheckOut(Path)
    and
    call DocNew.documentversion.CheckIn(Path)

    For subject
    DocNew.Document.Subject = frmdocs.txtObj.Text
    works better

    I had found for fields, now i tried for the Author
    Any idea ???

    #7281
    Support 1a
    Participant

    We may be able to assist if you send a working (as a far as possible) sample applet to support@advansyscorp.com.

    As you are using the native Object API here, you could also ask over in Novell’s Object Usenet forum.

    Regards,

    Advansys Support

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.