If this is possible in any way it would be good to know, but I haven’t been able to find any way of doing it, even though it would be extremely useful.
Basically I just want to be able to set a column to use the value as color, or to display value as icon while creating new columns in the background with notesviewcolumn.
There is a property IsIcon, but it’s read-only (WHY?).
Considering, starting with 6, we’ve been able to add columns and set various properties, it’d be good if you just had access to all properties. I was trying to create a simple Gantt chart in notes, and the ability to set either of the above properties would make it possible, but as it is I have to scrap the idea.
Can you use DXL in your particular application? There aren’t a whole lot of restrictions there. Oh – Notes and Domino 7 is essentially feature-complete, so any requests can’t make it into the stream unitl ND7.5 or 8 or so. I’d expect to see a better way of doing things in Notes 8 than playing with column formulas on the fly.
In the meantime, Ben Langhinrichs had been using Layers to do essentially what you’re trying to do in a view:
and
I have used static views to do the same thing since R5.0.4 (okay, I had to use icons rather than colours back then, but the idea was the same). And on the web there’s DHTML and/or SVG.
The Help for the DXL stuff is pretty good, and the examples are right on point. You’ll need to take a look at NotesDXLExporter, NotesDXLImporter, NotesDOMParser (it’s just like playing with HTML using the DOM methods) and NotesStream. You won’t need the stream in production, but you will need it to create a file representing your “starting” view and and example of what your “target” view would look like. Most of your code will be in your PostDOMParse event handler – the description in Help is not clear, but the example is.
I’ve been having a go with DXL, but have come to a limit in my understanding of it.
I’ve managed to export a dxl file with my folder as is, and I can loop through the nodes in it, but the problem comes with trying to get to the right parts of the file, and then change/copy them with alterations.
Problems I have are:
a) There are just 3 nodes to loop through, the two header tags and then the database details. There doesn’t seem to be any way of getting to the details of the folder itself, even though this is in the dxl file. I’ve just used the example straight out of the help, and numchildren returns 3, with the 3rd and last child node being the database details which has 35 attributes I can loop through. I just want to get to the folder details as well.
b) Do I need to change the original file, or copy to a new file? If I try and copy I can’t find the method to just copy over the entire text of a node. I can do a domParser.serialize to export the complete text, but I haven’t managed to change it first anyway (see first point).
Can you shed any light on this? I have a feeling I’m missing the point of how to use the whole process.