-
Topic
-
Hello all,
I’m writing an applet that launches an HTML form then generates a GroupWise email containing the data in the form.
I’ve gotten pretty far, however I can’t seem to get the data out of the form and into the email. I run the following code with no errors, however my data doesn’t appear in the new GroupWise mail:
Sub Main(Client, GWEvent)
Dim aDlg
Set aDlg = Utilities.NewHTMLDialog
aDlg.Caption = “New Account Request Form”
aDlg.HTMLCode = Utilities.LoadStringFromFile(Utilities.GetDataDirectory & “test.htm”)
aDlg.Execute
FormVariables.ItemByName(“txtLastName”)
Dim Msg
GroupWise.NewMail
Set Msg = GroupWise.ComposingItem
if Msg is Nothing then
MsgBox(“No composing item available”)
else
Msg.BodyText = txtLastName
Set Msg = nothing
end if
End SubAnd here is the HTML code behind test.htm:
<html>
<head>
<meta http-equiv=”Content-Language” content=”en-us”>
<meta http-equiv=”Content-Type” content=”text/html; charset=windows-1252″>
<meta name=”GENERATOR” content=”Microsoft FrontPage 4.0″>
<meta name=”ProgId” content=”FrontPage.Editor.Document”>
<title>Last Name</title>
</head><body>
<form method=”POST”>
<p><input type=”Hidden” Name=”formativapplet” value=”Kates Applet.vbf”>Last Name: <input type=”text” name=”txtLastName” size=”20″></p>
<p><INPUT TYPE=”SUBMIT” NAME=”MROK” VALUE=”OK”><input type=”reset” value=”Reset” name=”B2″></p>
</form></body>
</html>
I’m running GroupWise 6.5. What am I doing wrong?
Thanks,
Kate
- You must be logged in to reply to this topic.