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 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?
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.