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.