I have a button that opens a particular view. The coding is below. It opens the database great but then when it changes the view it opens a new window and loses the formatting in the left frame, I don’t want that. If you are in a database and click on another view it just changes it in the right frame, why is this opening another window? Any help would be appreciated.
@Command([FileOpenDatabase]; “RiscApp03” : “inddbs\usc_db.nsf” ; “”;“”;“”;“” );
@Command([ViewChange];“Meetings View”)
Subject: Button to Open View
The second argument to @Command([FileOpenDatabase]) is the desired view. Put your view name here and get rid of this @Command([ViewChange]) (I think, I’ve never used this in my whole life …).
Subject: RE: Button to Open View
I have tried that but I get the same result. For some reason it opens the database with the correct formatting in Frame B but not in Frame A which is the left-hand side with the categories, it strips the formatting on that side and I am left with an outline list with folders next to the names. That is why I tried the ViewChange command but I still get the same result.
Here is a little more info. - There are two buttons one on the database form saying “Inform Committee of this Entry”, that button creates an email with another button that is suppose to take them directly to the new entry, it also automatically inserts the “Send To” list of email addresses. The second button is the one I am having problems with.
Subject: RE: Button to Open View
The layout of your application is still pretty unclear to me. How many frames (any nested framesets?), what’s displayed in them (Pages? Forms? Embedded outlines? Embedded views?) and so on.
Most probably the problem is a simple mismatch of target frame settings. You should note, that there are multiple places (with different priorities) to specify a target frame.
E.g., you can (and usually should) provide a target frame for the navigation frame in your main frame set. That’s the most general (lowest priority) level. Each embedded outline has its own target frame setting (overwriting the frame property). Each outline entry has its own target frame setting (overwriting the embedded outline property). Shared actions have their own target frame setting, The code within any (shared) action might use @SetTragetFrame (for the supported set of functions). Forms have an “auto frame” property (which is useful/required, because opening a document from a view does not obey any other target frame settings. Embedded views can specify targets and I probably still forgot about one or two places.
I would guess, that a missing or misspelled target name is the cause for the code in this one button to jump out of your frameset.
Subject: RE: Button to Open View
Thanks for trying to help but I had already checked all those places and understand there are more than one spot to specify target frames.
It is really a simple database, a frame with two framesets MainA and MainB. In MainA is a designated Page with an embedded outline. In MainB is the designated frame to display the view from the outline entries. The database is set to launch with the designated frameset of Main which holds the two framesets.
Subject: Button to Open View
The button to switch from view is on a form? In that case open the designer, open the form. Goto the Object browsers and set the “Target Frame”.
Subject: RE: Button to Open View
When I do this, it removes the button and opens the database frame in the email.
There are two buttons one on the database form saying “Inform Committee of this Entry”, that button creates an email with another button that is suppose to take them directly to the new entry, it also automatically inserts the “Send To” list of email addresses.