Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • in reply to: API for font color changes? #7928
    rstarr
    Participant

      I’m not sure I’m understanding your question.
      I want stylize the way my signature block appears on the fly using code, not by importing a signature file. So, I guess I want to change text to the draft message (which is how it will be viewed)

      in reply to: Same code – different results #7875
      rstarr
      Participant

        Using GroupWise.Enter instead of Chr(10)or vbcrlf appears to have fixed this strange problem. Thank you.

        in reply to: Same code – different results #7871
        rstarr
        Participant

          I tried each of the various options which you suggested and came up with the same results, i.e. whenever there is a new window, such as in composing a new mail or as in forwarding as an attachment then I get an extra line break between the FullName and Title. Otherwise I get no extra line break between FullName and Title. This only happens in compose view is HTML. Various users compose in Plain Text and others in HTML so I need a solution which will work for all. Can you duplicate the problem? Suggest a solution? Thanks for whatever you can offer.

          in reply to: Post task #6883
          rstarr
          Participant

            You state above “As there is no ‘On Post’ event, triggering the On send event is logical when some post-processing needs to be performed when an item is initially created. The event does not trigger when subsquent updates are applied to the same item and it is re-posted.”

            Somewhat opposite of what Adnan is looking to do above, we would like an applet to trigger on All On Send events. If we compose and e-mail and click Send then the On Send event is triggered. If we Reply to an e-mail and click Send then the On Send event is not triggered. Similarly, if we Forward an e-mail and click Send then the On Send event is not triggered.

            How can we trigger an applet on Sending a Reply or e-mail Forward? Thanks.

            in reply to: If-then-else statement , if mail is send local #6451
            rstarr
            Participant

              Hate to push my luck, but this all seems easy for you. I want to make sure that the disclaimer only gets inserted only once since it is obnoxiously long, so I want to key off of the Send event and search the BodyText of the message for language particular to part of my disclaimer, i.e.”disclaimer/confidentiality”. If the text is found then I don’t want to insert it again.

              I don’t see an ItemFindText method in the GroupWise tokens API, so I have tried to simply extract the message body into a variable using the ItemGetText method and then check the variable for “disclaimer/confidentiality.” I am stuck again. Here is my code:

              Sub Main(Client, GWEvent)
              Dim FileObj
              Dim sMsg

              On Error Resume Next
              If ValidMsg(sMessage) And (GWEvent = “GW#C#SEND”) Then
              Set FileObj = CreateObject(“Scripting.FileSystemObject”)
              call GroupWise.FocusSet(fcsMessage, “”)
              ‘None of the following 3 work and all I get is a generic ‘an error has occurred at column 0’:
              sMsg = Client.ClientState.CommandMessage.BodyText
              sMsg = GroupWise.ItemGetText(Client.ClientState.CommandMessage.MessageID, fcsMessage)
              sMsg = GroupWise.ItemGetText(Client.ClientState.CommandMessage.MessageID, Message)

              If (Instr(1, sMsg, “disclaimer/confidentiality”) = 0) Then
              msgBox “Did not find disclaimer language”
              Else
              msgBox “Found the disclaimer language”
              ‘ End If
              Set FileObj = Nothing
              End if
              End Sub

              Loading the whole Body Text into a variable seems burdensome.

              This code might also be handy to be sure that the signature block doesn’t get inserted multiple times. Thanks for whatever you can suggest.

              in reply to: Filter in GroupWise Address Book for logged-in user #6866
              rstarr
              Participant

                Thanks for the help. Setting the syntax to:
                set oEntry = oAddressBook.AddressBookEntries.Find(“(<E-Mail Address> CONTAINS “”” & UserId & “””)”)

                Results in the following error in running the applet:
                “Invalid procedure call or argument on [that line], column 0”

                If I try (which is more precisely what I want):
                set oEntry = oAddressBook.AddressBookEntries.Find(“(<E-Mail Address> BEGINSWITH “”” & UserId & “””)”)
                I get an error when running the applet:
                “Invalid operator for data type at [that line], column 0”

                Does either of these work on your end?

                I need the Full Name, e.g. John Q. Smith, and not the display name, e.g. John Smith (missing the middle initial), of the logged-in user. Full Name is not one of the 20 normal Novell GroupWise Address Book fields, thus I made it a Admin-Defined Field in GroupWise mapped to the e-directory Full Name field (thus the oFieldObj.Item(23) in my code). I don’t want to use LDAP to query e-directory for this field directly because doing so requires ActiveX, which is slow to respond and requires a per-user registration of ActiveX on Windows XP. Is there a better/another way to get at the Full Name?

                If I try:
                msgbox “Name: ” & groupwise.account.owner.fullname
                I get the error:
                “Object doesn’t support this property or method: ‘GroupWise.Account.owner.fullname’ at line 20, column 1”

                Very frustrating. Thanks for whatever help you can offer.

              Viewing 6 replies - 1 through 6 (of 6 total)