Search DominoPower's 11,425 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)

which is displayed as:

QuarterEarningsProfit
Q198300005000
Q298420008000

Additional parameters can be specified within the tags, for example, to right align text, use the ALIGN=RIGHT parameter, as shown here:

<TD ALIGN=RIGHT>32000

This code can be generated almost entirely within a Notes view -- with one exception: Notes Views have a header to hold the opening <TABLE> tag, and the column headers, but have no equivalent footer to place the closing </TABLE>. Fortunately, Domino has an answer to this. View templates can hold both top and tail tags, and do so in a more manageable fashion than cramming HTML tags into the standard view header.

Careful HTML authors would also include closing tags, e.g. </TD> and </TR> at the end of each cell and row respectively. These can however be dispensed with, for simpler views, and quicker page builds. [At DominoPower, we never recommend skipping closing tags, even though most browsers will allow it. -- DG]

Simple example
Let's say you want to create a Notes view of the columns you wish to turn into a Web page. The process is similar to constructing a standard Notes view with the following exceptions:

  • In the "'Propellerhead" tab of the View Properties InfoBox, check Treat View Contents as HTML

  • In the InfoBox, uncheck Show Column Headings

  • Convert all column values to text, using appropriate @text formula for the format you desire. For example, "(F,2" will format a number to decimal places, separate the 1000s with a comma and place negative values in brackets.

  • Prefix the first column value with a <TR>

  • Prefix each column value with a <TD>, as shown in Figure A.

FIGURE A

This shows the first column in the view (nicely coded with a closing </TD> tag).

That's all there is to the view component. Since the header is not being used for the page itself, you're free to use it for your own comments; putting the Excel column letter in here helps when putting in formula later.

Figure B demonstrates subsequent columns:

FIGURE B

Here's a sample formula for a numeric cell in an HTML table.

Here's an important note. Only use currency formats if you're national symbol is the dollar sign ($). Other currency symbols will be displayed correctly in the Domino built Web page, but will likely show up as raw HTML when the sheet is loaded into Excel.

The view template
To add a view template, create a plain Notes form with the name "$$ViewTemplate for YourViewName". Select Embedded View from the Create->Web Element menu to select your view and position it on the page. Then add the top and tail tags, which must be marked as HTML rather than ordinary static text. You can do this either by selecting Treat document contents as HTML in the defaults tab of the form properties, by using the HTML text style, or by putting square brackets around the HTML.


« 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
Quickr place Superusers
Writing Client-Side Javascript for Re-Use
Lotus Notes R8.5.1: Bug in Contacts "Print Selected View"
New Notes/Domino Technotes published about Chile's extended daylight saving time
SnnT: How to prevent Google from listing your Sametime Server
How to send someone an email that shows your calendar availability
"The collection has become invalid"
>> 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 --

Find unused Lotus Notes groups and clean up your address book
Have you ever wanted to get rid of old Lotus Notes groups that were cluttering up your address book, but you weren't sure if they were used? Find Unused Groups can help.

Find Unused Groups will check your ACL, mail, multi purpose and server groups to help you determine if they are used, and who uses them.

Learn how to easily clean up your address book.

-- Advertisement --

Struggling with exporting Notes data to spreadsheets? No More!
Try IntelliPRINT, The world's leading Reporting, Dashboards, and Analysis solution for Notes & Domino

  • Don't spend unproductive time maintaining different versions of the same spreadsheet
  • Preserve data integrity and security in multi-user environments
  • Create reports in minutes INSIDE Notes
  • Get freedom from iterative report requests, deliver self-serve capabilities

Experience Reporting, Dashboards, and Analysis INSIDE Notes.

Try IntelliPRINT NOW!

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