/ Forums / Advansys Formativ / Creating Solutions with Formativ / Want to use Formativ to update my signature – anything special required? / Reply To: Want to use Formativ to update my signature – anything special required?

#7819
Support 3
Participant

Use ThrowToken to execute a token. See the Formativ Language guide for more information. ThrowToken uses the native GroupWise Token Commander to execute the given token. See the URL for the Token API: http://developer.novell.com/documentation/gwtoken/index.html?gwtokens/data/hj8ej8g5.html

I have noticed the default GroupWise signature (Tools – Options – Environment – Signature) need to be enabled for this token to work. See below the sample code.

  
 dim iReturnValue
 dim iSyntax

 QtySpamBlocked = 3
 Sig1 = "David Gerisch, Systems Technician"
 Sig2 = "A.C.S. / Tulare County Information Technology"
 Sig3 = "Yesterday, we blocked " & QtySpamBlocked & " spam messages."

 SignatureTextString = Sig1 & HRT & Sig2 & HRT & Sig3

 iSyntax = "PrefSignature(1;0;0;""" & SignatureTextString & """;"""";"""";"""")"
 msgbox groupwise.throwtoken(iSyntax, iReturnValue)

Hope this help. Look forward to hear from you.

Regards,
Advansys Support

[This message was edited by Support 3 on February 13, 2007 at 03:27 PM.]