Genii Weblog

Interesting challenge for Midas

Thu 18 Mar 2004, 05:16 PM



by Ben Langhinrichs
It is disconcerting that I can't just refer to our Midas Rich Text LSX as "Midas", because now it might be @Midas Formulas instead.  Oh well, times change.

The challenge posed is this.  A previous developer at this company had written an application that used doclinks and titles, but kept them in separate field, one a rich text field and one a text list.  They want to get rid of that rather silly constraint and put the titles in with the titles, more like a newsletter.  The one gotcha is that some of the doclinks are missing, and have some text such as NA (not available) instead of the doclinks.  They just want to skip those lines, including both the title and the "NA".
Inline JPEG image
This illustrates what they have and what they want.  The question was, how would Midas (darn, there I go again - Midas Rich Text LSX) handle this?

Here is the code I came up with.  Not the most elegant in the world, but it shows a real life solution to a real life problem, for those of you who like that sort of thing.

Inline JPEG image

Copyright 2004 Genii Software Ltd.

What has been said:


131.1. anil
(03/30/2004 01:08 PM)

I could not understand this.