Ben Langhinrichs

Photograph of Ben Langhinrichs

E-mail address - Ben Langhinrichs







Recent posts

Sat 18 Jul 2020

Enduring favorite - Getting Data out of Notes (for whatever reason)



Thu 9 Jul 2020

Maximizing power while minimizing code and effort



Fri 29 May 2020

Round tripping, even while staying put


August, 2020
SMTWTFS
      01
02 03 04 05 06 07 08
09 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31

Search the weblog





























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:


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

I could not understand this.