"Cannot execute the specified command"

Hello

When accessing a view, we want the search bar to be displayed and closed when the view is left. So we put in PostOpen event :

@Command([ViewShowSearchBar]; 1)

And in QueryClose :

@Command([ViewShowSearchBar]; 0)

This last command generates a “Cannot execute the specified command” error when leaving the view. And the search bar is not closed.

We didn’t have the problem in R5.

Any clue ?

Thanks

Subject: “Cannot execute the specified command”

Michael,

We are experiencing this same issue.

Did you ever find an answer to this ?

Thanks

Nick

Subject: “Cannot execute the specified command”

I had this problem as well and solved it by adding the following to PostOpen:

@SetTargetFrame( “NotesView” );

@Command([OpenView]; @ViewTitle);

@Command( [ViewShowSearchBar]; “1” )

And the following to QueryClose:

@SetTargetFrame( “NotesView” );

@Command([OpenView]; @ViewTitle);

@Command( [ViewShowSearchBar]; “0” )