How to open a Frameset once the document is open from doclink

Hi,

I have a scenario where user asks for to open a FrameSet with respective view, once the doclink in the mail is clinked and document is open. When user tries to click on close button it should not return to the mail but it should return to the specified view with same frameset.

Though i have used the code below, it works fine but when i try to click on any other document it prompts me an IBM error :

Code to open frameSet on client:

server:=@Name([CN];@ServerName);

pathname := @Subset(@DbName; -1);

str:=“notes://”+server+“/”+pathname +“/fsMFQ?OpenFrameSet”;

@URLOpen(str)

IBM Error

Frameset manager IGNORE return code.

Can anybody help me in avoiding such error and perfect behavior of the frameset.

TIA

Vijay Baswal