Load other database in database frame

Hello,

I could not find my answer on this site yet so there for my question;

I’m building a database. I have now 2 frames. One “top” and one “main”. Simple :wink: When pressing a button in the topframe i want to load another database in te main-frame.

If i load another database it opens a new window/screen.

For the link i use an “hotspot retangle” using a formula;

server := (“…”);

db := @GetProfileField(“…” ;“…”);

@Command([FileOpenDatabase]; server : db ; “”;“”;“0”;“”)

Is there a way to open this second database in the mainframe of my first database?

Thanks!

Subject: Look up @settargetframe in designer help

Subject: Load other database in database frame

Try using javascript. Something similar to thise will work.

Server = “”

DB = “mail/mwagner.nsf”

Element = “MailFS”

Type = “Frameset”

Url = “Notes://” + Server + “/” + DB + “/” + Element + “?Open” + Type

parent.Main.location = Url

Subject: RE: Load other database in database frame

Thanks for so far! It’s getting better but still won’t work.

I’m using now this


Server = “SERVER1/My Company”

DB = “database.nsf”

Element = “wheredoiusethisfor”

Type = “main”

Url = “Notes://” + Server + “/” + DB + “/” + Element + “?Open” + Type

parent.main.location = Url;


Where do i use the element for?

I also tried;

parent.main.location.href = Url;

and also

Server = “SERVER1\My Company”

&

Server = “SERVER1//My Company”

@settargetframe is not working by the way. It can’t be used to open database. Only for pages en views, or so the “help” says.

Regards,

Mick

Subject: RE: Load other database in database frame

You are on the right track but dont use the full name of your server. For instance

Server = “SERVER1” : Shoud include just the server name. If you want to open local then leave blank (i.e. Server = “”)

DB = “database.nsf” : This is ok. Use the full file path in relation to your data path. For instance the if the database is in a directory under the data directory like “Test”, then the database reference should be “Test/Database.nsf”.

Element = “wheredoiusethisfor” : Should be the name or alias of the object you want to open. For instance if you want to open the inbox of a mail datbase then the element would be “($inbox)”.

Type = “main” : the Type parameter should be either view, folder, frameset, page. Whatever the element type is.

Url = “Notes://” + Server + “/” + DB + “/” + Element + “?Open” + Type

The following is javascript code that can be placed in the javascript window for the client in a button or hotspot.

parent.main.location = Url;

The “main” reference in the above statement is the name of the Frame within the frameset you want to open the element in.