Using ViewRebuild or ViewRefresh without opening the view in the current workspace. --- any suggestions people

The problem is getting the handle of the UIView. The problem is that if the view is not in the current workspace then how can you get the handle for the view and use ViewRefresh or ViewRebuild.

I have used another approach. What i do is, I open up the view and then as soon as the View Opens, i have put the code in the PostOpen.

– Send user a message to save everything in the excel sheet

– As soon as the save is done, then close the current view.

This is working fine but the only problem is that the view opens infront of the user and then closes. if i get the handle of the view then i dont need to open up the view. Any suggestions.

Regards,

Jawad Rana

Subject: Using ViewRebuild or ViewRefresh without opening the view in the current workspace. — any suggestions people

What about using NotesDatabase.GetView to get the view handle, then NotesView.Refresh.

You’ve left out a huge amount of information about your application and what you’re trying to do this for. I have no clue why you mentioned Excel. It’s quite possible that there’s totally a better way to do whatever you’re trying to do.