Hi,
I want to web enable this button which will prompt the user to write some comment in the dialog box and return to the sender. My code is as follows:
@If(@Prompt([YesNo];"Databasename;“Return the " + Type+ " to " + recipient + " for amendment?”);
@Do(
temp:=@If(RevRemarks = “”;“”;RevRemarks);
@SetField(“RevRemarks”;“”);
@DialogBox(“Authoriser Comment”;[AutoHorzFit]:[AutoVertFit]:[NoCancel];“Write your comment here”);
@SetField(“RevRemarks”;
"Comment by: " + @Name([CN];@UserName) + " on " + @Text(@Date(@Today)) + ": "+ RevRemarks + @NewLine + temp );
@MailSend(recipient;“”;“”;Type + " requires some amendment.“;“Please Click on the Icon below, ONCE to open the document.”;”";[IncludeDoclink]);
@SetField(“DocStatus”;“Pending Amendment”);
@SetField(“RevDt”;@Date(@Now));
I used this script but it saved as a separate document in the database. What I want is to temporary store the comment and write to a field and not to appear as a separate record in the application.
var path=location.pathname
var loc=path.indexOf(“/devt/Databasename.nsf”)
var filename=path.substring(0,loc)+“/devt/Databasename.nsf”
urlKey = filename + ‘/Authoriser Comment?OpenForm’
windowOptions = ‘width=800, height= 480, left=200, top=150, status=no, toolbar=no, menubar=no,scrollbars=no’
open(urlKey, ‘’, windowOptions)
Any ideas out there from you guys? Thanks in advance.