Search DominoPower's 11,437 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.
Linking Domino to Excel via XML (continued)

If you're also an Excel expert, the R1C1 format for specifying cells might seem obvious, but that runs into an Excel blank wall. R1C1 addressing must be switched on within the worksheet and there is no XML for that (yet).

The answer is to use the Excel OFFSET(cell, rowoffset,columnoffset,height,width) function. This returns the value of a cell a certain number of rows or columns away from a fixed point. Therefore, to access the value in the column F of the current row, the function is:

=OFFSET(F1,ROW()-1,0,1,1)

Out of that one basic principle, you can write many types of formula -- calculating tax, subtracting one column from another -- and without the need for any computed Notes fields. Don't forget, however, to supply a static value for browser viewers, like this:

<TD ALIGN=RIGHT FORMULA="=OFFSET(F1,ROW()-1,0,1,1)*0.30">@Text(Revenue*0.30;"(F,2")

With these basic principles, complex dynamically built spreadsheets can be created with row formula, column totals and more. You'll turn your Excel users into active modelers of your data rather than passive recipients. And no OLE, no DDE , and for these small spreadsheets, no LotusScript.

The XML Icing on the Cake
You were promised the ability to create pivot tables in Excel, and you're almost there.

For the pivot table, create a simple untotalled view - Excel will provide all the column totals itself. Next, choose which field you wish to appear horizontally and which vertically in the pivot. Add a few options to the standard tags, and you're there!

The changes to the tags are:

  • Add parameters CROSSTAB and CROSSTABGRAND to the <TABLE> tag

  • Add ROWFIELD parameter to the field you wish to have appear vertically in the pivot

  • Add COLFIELD parameter to the field you wish to have appear horizontally in the pivot

  • Add DATAFIELD and AGGREGATE parameters to the field you want totaled

The example in Figure D demonstrates how little you need to do to turn the simplest Domino table view into a pivot:

FIGURE D


Here's a $$ViewTemplate form to create an XML pivot table for Excel. Roll over picture for a larger image.

Using agents
For maximum flexibility, Notes views must be passed over in favor of agents. If you were frightened off Web agents by examples of Perl cgi-bin scripts, have no fear -- LotusScript Web agents are comparatively simple. There are three basic principles involved in writing them:-

  • You'll need a special document, known as the DocumentContext, which holds information about the user who called the agent (i.e., the CGI variables)

  • The parameters given to the agent, are held in the item QueryString of DocumentContext

  • The PRINT statement is used to send HTML directly back to the browser

To call an agent, use the format:

DatabaseName.nsf/AgentName?OpenAgent

Parameters are supplied using the "&" character after the ?OpenAgent keyword. For example, the sample agent below can be called to show the view "Excel"


« Previous  ·  1  ·  2  ·  3  ·  4  ·  5  ·  Next »
Other articles you might like
Home > Strategies > Interoperability (15 articles)
   A Sametime plugin for Trillian
   Integrating Twitter with an IBM internal social network
   Fun with Sametime and Skype
Home > Internet Technologies > XML (11 articles)
   How to create a Web service to extract data from XML documents
   Building an XML based Content Management System using Lotus Domino: wrapping it up
   Building an XML based Content Management System using Lotus Domino: overview of the content administration system
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
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
Adding Quick Highlighter support to IBM Lotus Notes Domino Wiki, Weblog, or Webpage
Remember Young Admins...there are 2 files
WebSphere Portal 6.1.0.2 and Lotus Domino 8.5
The CKEditor - with Domino
>> 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 --

Learn Notes and Domino 8 at your place and pace!
Learn Notes and Domino in your office and/or home! TLCC's highly acclaimed distance learning courses for users, developers, and admins will enhance your career and your resume.

The many included activities and demos will make you a pro! Expert instructor help is a click away.

Click here to try a FREE demo course!!

-- Advertisement --

Mark your calendar for in-depth Lotus training, May 12-14, Boston
Join experts and peers May 12-14 in Boston for educational and networking events that deliver real-world Lotus training so you can increase productivity and efficiency in your company, advance your skills, and squeeze the most from your current environment. One registration gets you into THE VIEW's Admin2010 and Lotus Developer2010.

Register by April 10 to save $200.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login