Solved

closewindow failed

Posted on 2004-04-27
9
274 Views
Last Modified: 2013-12-18
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];"Already Sent";"Do you want to notify assignee again?");"";@Return("")); "");
@MailSend(SendTo;CopyTo;BlindCopyTo;"PPCR" ;"";"A new PPCR is submitted.";[IncludeDoclink]);
@SetField("MAIL_SEND"; "Y");
@SetField(regHis;@Now+user);
@Command([FileSave]);
@Command([FileCloseWindow]);
@Command([OpenFrameset];"Sales")
0
Comment
Question by:damoncwk
9 Comments
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 10926884
Does regHis contain a value?
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 10926913
And, what's more, the expression @Now + user might be invalid. If user is a variable, then use

    @SetField("regHis"; @Text(@Now) + " " + user)
0
 

Author Comment

by:damoncwk
ID: 10926933
hi,
regHis might or might not contain any value
and user is another field name
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 10927562
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).
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:damoncwk
ID: 10927970
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.....
0
 

Author Comment

by:damoncwk
ID: 10927975
by the way,
it is not an agent
it is juz the formula of a button
0
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 10928182
What happens if you remove the FileCloseWIndow (temporarily)?
0
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 125 total points
ID: 10928301
Usually FileCloseWIndow triggers after all the formula is executed.

So try this

@If(MAIL_SEND = "Y"; @If(@Prompt([YESNO];"Already Sent";"Do you want to notify assignee again?");"";@Return("")); "");
@MailSend(SendTo;CopyTo;BlindCopyTo;"PPCR" ;"";"A new PPCR is submitted.";[IncludeDoclink]);
@SetField("MAIL_SEND"; "Y");
@SetField(regHis;@Now+user);
@Command([FileSave]);
@Command([FileCloseWindow]);
@POSTEDCommand([OpenFrameset];"Sales")


~Hemanth
0
 
LVL 31

Expert Comment

by:qwaletee
ID: 10933218
Put @Prompt([OK; "@Command"; XXXXXXXXX ); before each @Command -- replace XXXXXXXX with "FileSave" "FileCloseWindow" "OpenFramSet"

See what prompt you get when you run it.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Lotus Notes 41 184
How do I delete a user in IBM Lotus Notes 2 200
Lotus notes view not working using Trim 14 208
Code for extraction to mkdir folder 5 50
This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now