< Back

Document Subject: PostedCommand or Default View Problem
Hint Short Cut: Add this to your code & documentation to help you find this page.
http://#DOMM-54AGXU or http://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.