damoncwk
asked on
closewindow failed
Hi,
I tried the following however though the mail is sent out
and the file is saved but the form window is not closed
and the Sales frame is not displayed.
any clues? Thanks!
@If(MAIL_SEND = "Y"; @If(@Prompt([YESNO];"Alrea dy Sent";"Do you want to notify assignee again?");"";@Return("")); "");
@MailSend(SendTo;CopyTo;Bl indCopyTo; "PPCR" ;"";"A new PPCR is submitted.";[IncludeDoclin k]);
@SetField("MAIL_SEND"; "Y");
@SetField(regHis;@Now+user );
@Command([FileSave]);
@Command([FileCloseWindow] );
@Command([OpenFrameset];"S ales")
I tried the following however though the mail is sent out
and the file is saved but the form window is not closed
and the Sales frame is not displayed.
any clues? Thanks!
@If(MAIL_SEND = "Y"; @If(@Prompt([YESNO];"Alrea
@MailSend(SendTo;CopyTo;Bl
@SetField("MAIL_SEND"; "Y");
@SetField(regHis;@Now+user
@Command([FileSave]);
@Command([FileCloseWindow]
@Command([OpenFrameset];"S
Does regHis contain a value?
And, what's more, the expression @Now + user might be invalid. If user is a variable, then use
@SetField("regHis"; @Text(@Now) + " " + user)
@SetField("regHis"; @Text(@Now) + " " + user)
ASKER
hi,
regHis might or might not contain any value
and user is another field name
regHis might or might not contain any value
and user is another field name
Did you correct the formula? I suppose the FileSave didn't work too? Is this in an agent, or where? Background? Then look in the log.nsf file for the error messages (if any).
ASKER
Hi,
The FileSave command did work and the file is saved successully.
and in the log file there is no error message.
therefore just wonder what's happening there........oops.....
The FileSave command did work and the file is saved successully.
and in the log file there is no error message.
therefore just wonder what's happening there........oops.....
ASKER
by the way,
it is not an agent
it is juz the formula of a button
it is not an agent
it is juz the formula of a button
What happens if you remove the FileCloseWIndow (temporarily)?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Put @Prompt([OK; "@Command"; XXXXXXXXX ); before each @Command -- replace XXXXXXXX with "FileSave" "FileCloseWindow" "OpenFramSet"
See what prompt you get when you run it.
See what prompt you get when you run it.