Tip

More convenient open of navigator-based database

Navigators are nice for restricting the end users' feature set; however, if you support databases that always open to custom navigators with a standard view, you may face an inconvenience when working with it as the developer.

Most of the time, when you as the developer open the database, you don't want to be encumbered by the end-user's custom navigator and standard view. You are forced to either build in database code that recognizes your access level and doesn't open the custom navigator, or you have to do a "View>Go to" to get into the database with the standard Views/Folder navigator. Another option is to embed a hidden hotspot in the custom navigator that does this.

However, all of these are very specific to the particular database, and may involve additional mouse-clicks. I discovered that a simple one-line command can be used on a SmartIcon to simplify this admittedly trivial but still annoying aspect of day-to-day development.

Add a SmartIcon with nothing in it but "@Command([OpenView])". What is nice is that the SmartIcon will work even without opening the database first. This is not true of the command "ViewNavigatorsFolders", which only works when the database is already open.

By clicking on a database icon, then clicking the SmartIcon, the database opens to the navigators or folders view. It opens to the last view you had open, even if it is a hidden view. This is normal for Notes if the database isn't launching into a standard navigator and view, but those databases are not a problem anyway.

I have found this to be a real timesaver. It works with any database, so no custom code is needed.


This was first published in April 2003

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.