/ Forums / Advansys Formativ / Creating Solutions with Formativ / Modify Document.Author by programm

  • Creator
    Topic
  • #4264
    lp_irovetz
    Participant

    Hi again,

    Document.Author is here again Wink

    But, many time after and with the collaboration of Novell (thanks Mr Glade Monson)
    Document.author is actualy R/W. Razz

    but …
    but …
    but …

    and with GW6.5.6 and 7.0.1

    I always tried

    set DocBid = LibTrouv.getdocument (45) ‘a good document with weel shared propeties

    Message = “”
    Message = Message & “Sujet -> ” & DocBid.Subject &vbCr
    Message = Message & “Créator Bid ->” & DocBid.creator &vbCr
    Message = Message & “Author Bid -> ” & DocBid.author &vbCr
    msgbox Message

    set DocBid.Author = DocBid.creator
    DocBid.refresh

    Message = “”
    Message = Message & “Sujet -> ” & DocBid.Subject &vbCr
    Message = Message & “Créator Bid ->” & DocBid.creator &vbCr
    Message = Message & “Author Bid -> ” & DocBid.author &vbCr
    msgbox Message

    and alway got error on ‘set DocBid.Author = DocBid.creator’ Mad

    Now when you try

    set DocBid = LibTrouv.getdocument (45) ‘a good document with weel shared propeties

    Message = “”
    Message = Message & “Sujet -> ” & DocBid.Subject &vbCr
    Message = Message & “Créator Bid ->” & DocBid.creator &vbCr
    Message = Message & “Author Bid -> ” & DocBid.author &vbCr
    msgbox Message

    DocBid.Author = DocBid.creator ‘<======== Without Set
    DocBid.refresh

    Message = “”
    Message = Message & “Sujet -> ” & DocBid.Subject &vbCr
    Message = Message & “Créator Bid ->” & DocBid.creator &vbCr
    Message = Message & “Author Bid -> ” & DocBid.author &vbCr
    msgbox Message

    it runs Confused

    is there a compilation process greamlins in your set command ?

    L.P Irovetz
    Arcane GroupWare

  • Author
    Replies
  • #7654
    Support 1
    Participant

    L.P.,

    What is the error reported when you try the following?

      set DocBid.Author = DocBid.Creator

    I would not expect this to work without using the set operator. set is not a Formativ command, rather it is a VBScript operator to be used when assigning an object reference to a variable. In this case, you are assigning to an object property (Document.Author) which is possible only if it allows write access in the installed version of GroupWise.

    Have you tried calling the following method before assigning Creator to Author?

      DocBid.Refresh

    I hope this helps.

    Regards,
    Advansys Support

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