Lotus Script

How to append programmable button to mail rich text field(body) by programmatically in lotusscript…

Thanks in advance

Subject: using profile

You could create a profile document with an RT Field, where you create the button later in the UI.

In your script you add the button from the profiledocument using AppendRTItem.

You could also create additional hidden fields by script that can be used by the button

Ex.

if your button-script should send a mail to a specific person, create the button with a script somehow like


dim nss as New NotesSession

dim nws as New NotesUIWorkspace

dim docThis as Notesdocument 'the doc where the button will be pasted

dom newdoc as Notesdocument 'the new maildocument

set docThis = nws.currentdocument.document

set newdoc = nss.currentdatabase.createdocument

newdoc.Subject = "Response to " + docthis.Subject(0)

newdoc.SendTo = docThis.BUTTONSendto

call newdoc.send


The script where the button will be copied should also append the new item ‘BUTTONSendTo’

Subject: reply

Hi Daniel,

Thanks, Ya i already tried it, its working properly, Is there any Straight forward way to dis…

with regards,

yogi

Subject: with javascript

You might want to try to do something with javascript (e.g. call an agent)…

Subject: reply

Hi, How it will be possible in javascript…

Can u explain it briefly…

thanks in advance.

Subject: javascript

try to enable html on your form and create a javascript button mixture of computed text and javascript code which calls an agent (did not try it, but i use this usally in webapps). With this is write html-tables into forms