Hi all!
I have the following codes which opens a document using its UNID (key).
@If(@DbLookup(“”:“NoCache”;server:db;view;key;1;[FailSilent])=“”;
@Do(@Prompt([Ok];“Error”; “System could not retrieve document”); @Return(null));
@Do(@Command([FileOpenDatabase]; server:db; view2; key; “1”; “1” );
@Command([OpenDocument]);
DbLookup was used as error-handler. Upon execution of the code, the system displays the view, then an error message “Server Error: Entry not found in index” is displayed, although it is true that the given UNID was found in the view. When i click the OK button of the error message, the required document is now opened… How can i eliminate the system’s error message? Is there something wrong with the code?
view2 has its first column sorted… and the selection is exclusive to a form. SELECT ((Form = “Report”))
Thanks!