/ Forums / Advansys Formativ / Creating Solutions with Formativ / VOID WritingToolsTextLanguage()

  • Creator
    Topic
  • #4429
    jeka
    Participant

      Hi,
      The users make a choise of your signature (english or german) in a new Mail.
      How can Formativ change the language in the new Mail depending on the signature?

      Regards
      Jens

    • Author
      Replies
    • #8160
      Support 3
      Participant

        You may be able to change language using following GroupWise Token APIs.

        WritingToolsTextLanguage()

        quote:


        Displays the Writing Tools Text Language dialog box.
        Token ID

        BFTKN_WT_TEXT_LANGUAGE or 429

        Syntax

        VOID WritingToolsTextLanguage()


        PrefEnvironment()

        quote:


        Sets the default Environment options.
        Token ID

        AFTKN_SET_ENV or 611

        Syntax

        VOID PrefEnvironment( [ANSISTRING Language];
        [ENUM AdvanceOnDelete];
        [ENUM NewScreenOnSend];
        [WORD UpdateRateSeconds];
        [WORD UpdateRateMinutes];
        [ENUM OpenItemAction];
        [ENUM OpenAttachmentAction];
        [ENUM Mnemonics];
        [ENUM PromptEmptyFilter];
        [ENUM PromptEmptyFind];
        [ENUM AutoSpellCheck];
        [ENUM LaunchNotify])


        Formativ example code:

          
          groupwise.WritingToolsTextLanguage() 
        

        Hope this helps.

        Regards,
        Advansys Support

        #8156
        jeka
        Participant

          Thank you for the answer. Is it correct, that you can’t call groupwise.WritingToolsTextLanguage() without option? For Example: call groupwise.WritingToolsTextLanguage(german or english) without Dialogbox!

          Best regards
          Jens

          #8158
          Support 3
          Participant

            Unfortunately you can not provide parameters to WritingToolsTextLanguage() token.

            You can try PrefEnvironment() token to set language but I am not sure whether it will set globally or only to draft message, you may need to set language to previous state once draft message complete.

            Regards,
            Advansys Support

            #8157
            jeka
            Participant

              What a pity Frown

              Thank you for answer

              Best Regards

              #8159
              Support 3
              Participant

                No problem. Please feel free to post an enhancement request to Novell or GroupWise Token API forum.

                Regards,
                Advansys Support

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