Calendar view and @settargetframe issue

I have 2 calendar views in a db. 1 is set to open on a 2 day calendar format and the other is set to open as a 1 week format.

For some reason when i open 2 day calendar and then open the 1 week calendar view it opens as 2 day.

I had this working but soon as i put these into a frameset and called @settargetframe it stopped working.

Below is the code…

When the 2 day calendar view is open i have this forumla in an action. It should open the second view that is set to 1 week default.

@SetTargetFrame( “Main” );

@Command([OpenView];“Calendar With Company Data”);

When i click it the second view opens but opens to the exact format as the previous calendar view that was open.

Any help is much appreciated.