/ Forums / Advansys Formativ / Creating Solutions with Formativ / SendOptions function (token)

  • Creator
    Topic
  • #4222
    mdanilof
    Participant

      Can’t figure out how to use GroupWise.SendOptions call. I’m using Formativ Creator 2.0

      Tried different notation, the call fails.

      GroupWise.SendOptions 2, 0, 276, 0, 0, 0, 0, 0, 0, 0, 0

      GroupWise.SendOptions 2, False, 276, 0, 0, 0, 0, 0, 0, 0, False

      GroupWise.SendOptions priHigh, False, rovMail, rovNone, rovNone, 0, 0, 0, 0, 0, False

      ” is not a valid integer value at line 665

      By the way using Tokens directly works as a charm:

      ParamStr = “SendOptions(2;0;276)”

      Cmd.Execute(ParamStr, strResult)


      Related question, can I mix GW Token API calls with Formativ applet solutions engine? (In case I can’t get the code above to work).

      I would put Token API calls in the separate DLL.

      Thanks,

      Michael

    • Author
      Replies
    • #7531
      Support 2
      Moderator

        We will need to review the Formativ GroupWise.SendOptions operation to see if a problem exists with the Formativ call. In the meantime, you can use the Formativ GroupWise.ThrowToken call as an alternative method for executing a GroupWise token.

        The GroupWise.ThowToken method calls the native GroupWise token directly, and returns a boolean indicating if the token execution success status.

        For example:

        iSyntax = “SendOptions(2;0;276)”
        msgbox groupwise.throwtoken(iSyntax, iReturnVal)

        Note: The operation of the above syntax has not been checked but it provides the general idea of how to use it.

        You also need to be aware that some GroupWise tokens perform different functions depending on whether a composing (draft) message has the focus or if the main GroupWise Client has the focus.

        Please see the Formativ Language Guide for more information.

        Hope this helps.

        Regards,

        Advansys Support

        #7532
        mdanilof
        Participant

          ThrowToken worked perfectly.

          Thanks for the quick response.

          Michael

          #7533
          Support 2
          Moderator

            Great news, thanks for letting us know!

            Regards,

            Advansys Support

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