Notes:// links - custom coding how they display

I have an application where I want to use a Notes:// url to direct a user back to a specific page in my database from an email message. I’d like to customize the way the Notes:// url displays in the email message, so the user sees text of my choosing, which then launches the Notes:// url. Any thoughts on how to make this work?

Subject: Notes:// links - custom coding how they display

maybe this will help. I just posted this a few days ago.

https://www-10.lotus.com/ldd/nd6forum.nsf/ShowMyTopicsAllFlatweb/27f71fb93fcd04d78525723a006c720b?OpenDocument

Subject: RE: Notes:// links - custom coding how they display

I should have added I’m doing this via a LotusScript agent. I need to be able to compose the link in LotusScript. Also, I cannot hardcode any server names since the environment where this will run ultimately I have no access to.

Subject: RE: Notes:// links - custom coding how they display

I don’t think it’s possible. A HotSpot link is what you want but there are no LS Methods for Named Elements that I can find.

Subject: Notes:// links - custom coding how they display

If you dummy up such a note in your app, run it through NotesDXLExporter, and work backward from that, I think you will figure out how to build such a hotspot via script. AFAIK there is no LS method you can call to do what you want in one step.

Or you could just dummmy up the link you want and leave it in a rich text item in some hidden keyword doc somewhere, and then append it to each message you send. Crude, but it should work.

Subject: Notes:// links - custom coding how they display

you can just create a Hotspot->Link Hotspot and paste the notes:// url as the link.

Subject: Notes:// links - custom coding how they display

There are basically four approaches to solving this, with different advantages and disadvantages. They are:

  1. Create a hotspot in HTMl and import it. In other words, write the string My document link to a text file as import.htm, then use the NotesUIDocument.Import method to import the HTML to get My document link. Requires use of front end methods, since the Import method is part of a front end class, and it requires writing to the file system, but otherwise, quite easy.

  2. Use DXL to create the rich text, then import that. Pain in the neck for this trivial an action, and it is hard to import DXL into a specific spot, but it allows you to grow the solution to do more things if you need to.

  3. Create a URL hotspot in a very simple form, and make the URL be computed from a field which you set, then use RenderToRTItem to render the whole thing, which is nothing but the URL hotspot, to rich text and copy that. A bit of a pain, but works with backend methods.

  4. Buy a third party product that allows real manipulation of rich text, such as our Midas Rich Text LSX. Costs money, but your employer has certainly used it before, although I do not think they have any current licenses.