Search DominoPower's 11,429 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
How to query Domino from within Excel (continued)

The sample database described in the Product Availability and Resources section contains two agents, WebGeneralQuery and WebDateQuery, together with a script library containing useful functions for reuse in Web Query agents. Both agents have two sets of parameters: the ODBC connection details from a profile document called Settings and the four parameters which make up the query itself -- Tablename, Columns, Query, Order -- supplied as part of the URL. These agents are set to query any table from any database for which the Domino server has an ODBC connection. The parameters for these queries can be defined as static within the Excel Web query definition, or selected by the Excel user as a dynamic parameter when running the query. Either way, hundreds of queries for many different corporate databases can all be run using a single Domino Web agent.

The agents also implement simple intranet security. You could password-protect the database containing the agents and force users to log in each time. However, to prevent that inconvenience to users, you can alternately set up a list of TCP/IP networks (IP numbers or alias names) in the Settings document which are to be allowed access, as shown in Figure D. Any user trying to gain access from outside the list of permitted IP numbers or names will receive a polite security denial message. A function called CheckAddress() is supplied in the database's script library to simplify this check.

FIGURE D


The settings profile document in sample database controls ODBC and intranet security. Roll over picture for a larger image.

The need for a separate date query is to simplify entry of SQL parameters. Dates usually must be entered using an RDBMS specific formula, for example TODATE('31/10/98','dd/mm/yy'), which is cumbersome for users. The date-specific query replaces this with three parameters: one which specifies the column of the database to be queried on a date basis, and the other two which specify the start and end dates. This isn't necessary, but it does make life much easier for both your Excel users and for anyone writing Web query files.

While these are generic agents for maximum flexibility, they also serve as the basis for custom queries for your own projects. For example, you may wish to replace the generic Query parameter with specific columns to be queried, or format the resulting data in particular ways. To make writing your agents quicker and easier, reuse the ParseCGiString$() and CGITranslate$() functions from the database script library.


« Previous  ·  1  ·  2  ·  3  ·  4  ·  5  ·  Next »
Other articles you might like
Home > Microsoft Technologies > Office (7 articles)
   DAMO deep-six: is there a future for Outlook/Domino integration?
   Quick guide to using the Microsoft Outlook 2002 Connector with a Domino server
   How to easily connect Notes and Microsoft Office
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Application development, William Shatner, and the origin of the universe
Learn Domino Designer 8.5 for free
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Latest Lotus Headlines
IBM Lotus to Google Apps Migration Remorse
Webcast Series: Mobile Collaboration with Lotus Software
Domino Login Control for Mobile Apps
Sys Admin Tips March 2010
Quickr place Superusers
Writing Client-Side Javascript for Re-Use
Lotus Notes R8.5.1: Bug in Contacts "Print Selected View"
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad defenders have spoken
David Gewirtz Online: CNN commentary and analysis
OutlookPower: More about disappearing text
-- Advertisement --

Sophisticated Meets Simple For Document Management
Share. Control. Manage.
Documents, emails, and content in the context of how work is done. Native to Lotus Domino. The User Experience unseen for Lotus Domino. Do more with less. Really.

See the possibilities Docova unleashes for Lotus Domino.
-- Advertisement --

Teamstudio Edition 25 has shipped
It's finally here! Now that Teamstudio Edition 25 has shipped, listen to our latest Tool Time audio program to find out what's changed. Updates to all your favorite Teamstudio tools will be discussed.

Plus, you'll get an introduction to Teamstudio Undo (formerly known as Teamstudio Snapper).

Tap here to get started!

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login