How do I open a frameset from a different db within frameset?

OK, I thought this was a simple frameset navigation issue, but I can’t find an answer.

How do I open a frameset in another database within a frameset from this database? I’d prefer to do this in formula, to incorporate into an existing button, but Lotusscript is good, too.

Thanks,

-Jeff

Subject: How do I open a frameset from a different db within frameset?

I am not sure that this function will open a frameset in another db:

@SetTargetFrame(“frameset name”);

Subject: RE: How do I open a frameset from a different db within frameset?

I think you left something out here. @SetTargetFrame does not open anything, it just defines, what should be the target for the following code. But, it’s use is restricted to a couple of functions.

Use @SetTargetFrame before opening or refreshing the view, page, or frameset, or before composing or editing a document. The following @commands use the frame specified in the @SetTargetFrame:

@Command([Compose])

@Command([EditDocument])

@Command([OpenFrameset])

@Command([OpenPage])

@Command([OpenView])

@Command([RefreshFrame])

It’s actually the third time, I’m posting this bit this week … :slight_smile:

Subject: RE: How do I open a frameset from a different db within frameset?

But @Command([OpenFrameset]) only seems to work on the current database. What if I want to open another database’s frameset – which has an embedded outline in the left pane and a view in the right pane – within the current database’s frameset – which has a banner and outline in the top pane and the new frameset from the other database in the bottom pane?

Subject: RE: How do I open a frameset from a different db within frameset?

Correct. Did you try a notes:// link to the frameset instead of using an action?

Subject: SOLVED: How do I open a frameset from a different db within frameset?

Sorry to take so long to report back. Your suggestion works out nicely. Do it like this ($keyword form ResourceDB contains the name of the target database, obviously):

svr := @Subset(@Name([cn]; @DbName); 1);

db := @ReplaceSubstring(@DbLookup(“”:“NoCache”; “”; “$Keywords”; “ResourceDB”; 2); “\”; “/”);

@SetTargetFrame(“BottomFrame”);

url := “notes://” + svr + “/” + db + “/StaffAllocationFS?OpenFrameset”;

@Prompt([okcanceledit]; “url”; “url”; url);

@URLOpen(url)

The value of ‘url’ in the prompt (which I remove in production) is: notes://interdev7/WIP/WIPresource.nsf/StaffAllocationFS?OpenFrameset

It works perfectly.

Thanks for all the help,

-Jeff