@command problem in view used in a frameset

I have a view with only the following line in the postopen event:@Command([ViewShowOnlyCategories])

When I open this view in the notes client everything works as expected, but when this view is used in a frameset I get the error

‘Cannot execute the specified command.’ and I see everything not only the categories.

Has anyone an idea how I can solve this error or if there is any other possible way to get a similar result?

Subject: @command problem in view used in a frameset

In the PostOpen of the view put the following code:

@Command( [ViewExpandAll] );

@Command([ViewShowOnlyCategories])

In the QueryClose of the view put the following code:

@Command( [ViewExpandAll] );

@SetTargetFrame( “NotesView” );

@Command([OpenView]; @ViewTitle);

@Command([ViewShowOnlyCategories])

Subject: RE: @command problem in view used in a frameset

Brilliant! Works great