Search

Languages

Other languages on request.

About Me

I am the "Lotus Technology & Productivity Advisor" for IBM Asia Pacific. I'm based in Singapore.

Ads by Google

Visitors

« Developing OpenSource Software is fun (allways) and paid for (sometime) | Main| IBM's product names finally get a bite? »

What are you hiding from me?

QuickImage

By now you should be able to extract your database design as DXL. This opens a series of possibilities to run reports against your database to gain more insights into its design. Since Notes is around for so many years you will face the situation to inherit a database you haven't written. To understand its logic you need so see how Hide-when formulas have been used in the all over design. The following XSLT allows you to do this extraction.

Use it at a starting point and play with the layout. Ideas you could look at: Pack the whole report into a single table and load it into your favorite spreadsheet for sorting (a fancy Ajax lib could do that to).

<xsl:stylesheetversion="1.0" >
<xsl:outputmethod="xml"version="1.0"encoding="UTF-8"indent="yes" />
<xsl:templatematch="/" >
<html >
<head >
<title />
<styletype="text/css" />
</head>
<body >
<table >
<xsl:apply-templatesselect="//d:form" />
<xsl:apply-templatesselect="//d:subform" />
</table>
</body>
</html>
</xsl:template>
<xsl:templatematch="d:form" >
<tr >
<thcolspan="3" >
<h1 > Form
<xsl:value-ofselect="@name" />
</h1>
</th>
</tr>
<tr >
<th />
<th />
<th />
</tr>
<xsl:apply-templatesselect="//d:pardef[d:code/@event='hidewhen']" />
</xsl:template>
<xsl:templatematch="d:subform" >
<tr >
<thcolspan="3" >
<h1 > Subform
<xsl:value-ofselect="@name" />
</h1>
</th>
</tr>
<tr >
<th />
<th />
<th />
</tr>
<xsl:apply-templatesselect="//d:pardef[d:code/@event='hidewhen']" />
</xsl:template>
<xsl:templatematch="d:pardef" >
<tr >
<tdbgcolor="#EEEEFF" >
<xsl:value-ofselect="@id" />
</td>
<tdbgcolor="#EEFFEE" >
<xsl:value-ofselect="d:code/@enabled" />
</td>
<tdbgcolor="#FFEEEE" >
<xsl:value-ofselect="d:code[@event='hidewhen']/d:formula" />
</td>
</tr>
</xsl:template>
</xsl:stylesheet>

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::rolleyes:;-)

Disclaimer

This site is in no way affiliated, endorsed, sanctioned, supported, nor enlightened by Lotus Software nor IBM Corporation. I may be an employee, but the opinions, theories, facts, etc. presented here are my own and are in now way given in any official capacity. In short, these are my words and this is my site, not IBM's - and don't even begin to think otherwise. (Disclaimer shamelessly plugged from Rocky Oliver)

© 2003 - 2009 Stephan H. Wissel - all rights reserved as listed here: Creative Commons License
Unless otherwise labeled by its originating author, the content found on this site is made available under the terms of an Attribution/NonCommercial/ShareAlike Creative Commons License, with the exception that no rights are granted -- since they are not mine to grant -- in any logo, graphic design, trademarks or trade names of any type.

Get Firefox Use OpenDNS