How to rebuild a view in a frameset?

I use NotesUIWorkspace.ViewRebuild in the view’s postopen event, but it doesn’t work in a frameset.