Can anyone have some sample code for creating action hotspots using LotusScript. i’ve been seraching the forum and it sounds like it can be done using DXL. SO is there any sample code that i can reference?
Thanks!!
Can anyone have some sample code for creating action hotspots using LotusScript. i’ve been seraching the forum and it sounds like it can be done using DXL. SO is there any sample code that i can reference?
Thanks!!
Subject: dxlimporter Sample code
DXL code tends to be really long. What you really want to do is create a form or document with the hotspot you want, then export it (the Designer Help on NotesNoteCollection and NotesDXLExporter are just about right on target) to a file. Take a look at what you want to create – it’s very similar to HTML, so finding what you want and adapting it is pretty easy. The trick comes in putting the hotspot where you want it to go – you need to first export the document or design element through the NotesDXLEporter to a NotesDOMParser, then use DOM methods to locate the place to insert the hotspot and create the elements (several) in place. (You could also use a SAX parser if you are looking for a particular string to pop up, but there’s less control when you don’t know what you’re looking for.) Once you’re finished, you Serialize the DOMParser content throgh a NotesDXLImporter and back to the database.
There’s nothing to it but work – it’s not tricky, there’s just a LOT of typing to do. Designer Help has everything you need – except a picture of what a hotspot looks like, and the trial export will give you that.