The formula worked in 5.0 but we recently upgraded to 6.5. Since the upgrade the send button on the form quit working. Here’s a copy of the formula:
@If ( Sendto = “name” ;
(@MailSend(Author ; "" ; ""; "You have received a Systems Project Request" ; "" ; "Click the link to view."; [IncludeDoclink]));
(@MailSend(Author; "name" ; "" ; "You have received a Systems Project Request" ; "" ; "Click the link to view."; [IncludeDoclink])));
@Command([FileCloseWindow])
Any suggestions would be greatly appreciated.
Subject: Send button does not work! Any suggestions?
Can’t really tell you why this no longer works, but try without the @Command([FileCloseWindow]). If that works , try replacing it with @PostedCommand([FileCloseWindow]).
You could also remove some duplicated code using this approach:
cc := @If(sendTo = “name”; “”; “name”);
@MailSend(Author ; cc ; “”; “You have received a Systems Project Request” ; “” ; “Click the link to view.”; [IncludeDoclink]));
Subject: RE: Send button does not work! Any suggestions?
Morten, we tried your suggestion but it is not working, either. We have found that the send button does work properly if the [IncludeDoclink] is removed from the coding. But we do need the Doclink in the email that is sent.
Subject: RE: Send button does not work! Any suggestions?
Looks like you’ve got your Remarks (‘Click the link to view’) in the BodyFields section of the formula. Try this:
cc := @If(sendTo = “name”; “”; “name”);
@MailSend(Author ; cc ; “”; “You have received a Systems Project Request” ; “Click the link to view.”; “” ;[IncludeDoclink]));
@PostedCommand([FileCloseWindow]);
From designer help:
When you use the [IncludeDocLink] flag (described below) to include a link to the current document, you should set the bodyFields parameter to null (“”).
This may be what is causing the problem. Please post back if this fixes it!
Emily.
Subject: RE: Send button does not work! Any suggestions?
When Dan said “the send button on the form quit working” I didn’t realize the symtom was that no mail was being sent. I assumed that it was the CloseWindow that caused problems. There you go. I guess I should have asked what he meant exactly by “quit working”.
Subject: RE: Send button does not work! Any suggestions?
Well, he didn’t specify and you’d covered the CloseWindow angle so I thought I’d come in from another direction 