Notes Ninjas Notes Ninjas
Lotus Notes hints, tips, error messages
PostedCommand or Default View Problem

Hint Short Cut: Add this to your code & documentation to help you find this page.
http://www.notestemplates.com/#DOMM-54AGXU or http://www.notestemplates.com/A555F9/nn.nsf/ByAlias/DOMM-54AGXU


A strange error that was an issue for R5 clients but not R4 clients. The code was written for R4.





This code did not worked:

REM "Finished updating the current answer";

@PostedCommand([FileSave]) ;
@Environment("Unid";@Text(@DocumentUniqueID));
@PostedCommand([FileCloseWindow]);
@PostedCommand([FileOpenDatabase]; @DbName; "AllByUnid"; @Environment("Unid");0;0);
@PostedCommand([EditDocument];"0");
@PostedCommand([FileOpenDatabase]; @DbName; "AllByUnid"; @Environment("Unid");0;0);
@PostedCommand([FileCloseWindow])

 

 

This code did work:

REM "Finished updating the current answer";
REM "8-11-01 AF added extra save and extra open by unid and close";

@Command([FileSave]) ;
@PostedCommand([FileSave]) ;
@Environment("Unid";@Text(@DocumentUniqueID));

@PostedCommand([FileCloseWindow]);
@PostedCommand([FileOpenDatabase]; @DbName; "AllByUnid"; @Environment("Unid");0;0);
@PostedCommand([FileCloseWindow]);
@PostedCommand([FileOpenDatabase]; @DbName; "AllByUnid"; @Environment("Unid");0;0);
@PostedCommand([EditDocument];"0");
@PostedCommand([FileOpenDatabase]; @DbName; "AllByUnid"; @Environment("Unid");0;0);
@PostedCommand([FileCloseWindow])

 

 

I am not sure what is going on, but the Postedcommand(Filesave) either didn't work or

the view was already open and was not being refreshed.

 

 Jump to:     Notes Tips
    Lotus Notes Index 
  Register for Tips
Previous Lotus Notes Tip 
    Next Lotus Notes Tip
Your company logo here?
Adam Foster
Free Cash Making Web Site
Free Revenue Earning Blog Site
 Free Revenue Earning Newsletter Site   
Free Search Pages Free Web stats
Free Contact Us page
Cheap .com domain names
 Need a website or 
   Lotus Notes
  problem solved?
Adam Foster
Lotus Notes 5 All-in-one Certification Exam Guide by Libby Schwarz, Ben Malekzadeh
Sort out your CLP with this book.
See at: Amazon.co.uk | Amazon.com |