I have a form with a POSTOPEN event of:
@If( @IsMember( @Subset ( @UserAccess( @DbName ) ; 1) ; “3” : “4” : “5” : “6” ) ; @Command( [EditDocument] ; “1” ) ; @Command( [OpenDocument] ) ) ;
REM { @If(@Left(@Name([CN] ; @UserName ) ; 1 ) = “&” | @Name( [CN] ; @UserName ) = “SRS APPS” ; @Prompt( [Ok] ; “No Admin Accounts” ; “Please do not use an administrative account with this form” ) ;@If( @IsNewDoc & @IsMember( @Subset ( @UserAccess( @DbName ) ; 1) ; “3” : “4” : “5” : “6” ) ; @Command([FileSave]) ; “” ) ) };
@If(@Left(@Name([CN] ; @UserName ) ; 1 ) = “&” | @Name( [CN] ; @UserName ) = “DoNotUse” ; @Prompt( [Ok] ; “No Admin Accounts” ; “Please do not use an administrative account with this form” ) ; “” );
FIELD EscapeCheck := “NoExit”;
In Notes 7.x and 8.x, this works fine. If, however, I change to (adding a REM to the 3rd line):
@If( @IsMember( @Subset ( @UserAccess( @DbName ) ; 1) ; “3” : “4” : “5” : “6” ) ; @Command( [EditDocument] ; “1” ) ; @Command( [OpenDocument] ) ) ;
REM { @If(@Left(@Name([CN] ; @UserName ) ; 1 ) = “&” | @Name( [CN] ; @UserName ) = “SRS APPS” ; @Prompt( [Ok] ; “No Admin Accounts” ; “Please do not use an administrative account with this form” ) ;@If( @IsNewDoc & @IsMember( @Subset ( @UserAccess( @DbName ) ; 1) ; “3” : “4” : “5” : “6” ) ; @Command([FileSave]) ; “” ) ) };
REM {@If(@Left(@Name([CN] ; @UserName ) ; 1 ) = “&” | @Name( [CN] ; @UserName ) = “DoNotUse” ; @Prompt( [Ok] ; “No Admin Accounts” ; “Please do not use an administrative account with this form” ) ; “” )};
FIELD EscapeCheck := “NoExit”;
I receive “Cannot execute specified command.”
I am trying to set the EscapeCheck field so my endusers can not press escape to exit the form.