Simple dev question

i have a web app that i need an action to do 2 things:change a field value and mail the document with a doclink.

I’ve tried using the formula language but it isn’t working. any help would be appreciated.

Subject: simple dev answer

where is your code?

Subject: RE: simple dev answer

i’ve got the code in a form action button

Subject: RE: simple dev answer

I mean, why have you not posted the code here so someone can take a stab at helping you (as well as all relevant information about the fuield being set)?

Subject: here’s the code

@command([editdocument]);FIELD Approval_Status :=“Rejected”;

@MailSend(supID;“”;“”;“The review for " +Emp_Name +” has been rejected";“EMPLOYEE REVIEW”;“The review for " + Emp_Name + " has been returned to you as rejected. Please check the accuracy of information on this document and resubmit if necessary. This document can be accessed with the following link >>>>>”;[IncludeDoclink]);

@Command([FileSave]);

Subject: You’re trying to do more than macro code can do on the web.

It’s not like you’re in a Notes client. You can’t put the document in edit mode, change a field, then save. There’s no UI on the server for this to be happening. I think you’ll have to do it using a Lotusscript web agent.

Subject: simple dev question

Try using a WebQuerySave event to do the Mail send.

For the first problem, open the document in edit mode (by default) and allow the field to be changed then a button to “Save & Send” with the above will do the rest.

Regards

Rolf Pfotenhauer