Computed text as passthru HTML, containing a Notes link

Uhm, I have a Page for the Notes client where I want to display a list with references to documents in the same DB. The list is computed text and collects the data from a View. I have set the text as passthru html and enabled the render passthru HTML in Notes.

Here is the formula I am using in the View column:

@Text(@Date(@Created)) + ” – ” + Tx_DocTitle + ” <a href=\”notes:///__”  + @Replacesubstring(@Text(@ReplicaID);”:”;””) + “/0/” + @Text(@DocumentUniqueID) + “?OpenDocument\”>link</a>”

Information about the structure I have taken from this site:

http://www.nsftools.com/tips/NotesTips.htm  -> section: Notes Client Command-Line Options

In the Notes client the links just don’t work, however if I open the Page in a browser they work perfectly.

  • Does html references in the Notes client just don’t work?
Advertisements

7 thoughts on “Computed text as passthru HTML, containing a Notes link

  1. Peter von Stöckel 2009-July-21 / 2:23 pm

    I have a Notes app for managing images, which displays an image as a thumbnail in a computed rich text field, with a link to the document containing the full sized image. This is all done in the Notes client, and works like a charm. No problem at all.

    You might want to make sure you use a server name in the link, like notes://servername/, and see if that works any better.

    Since it works from a web browser on the same PC, there shouldn’t be a problem with any registry settings.

  2. Ben Langhinrichs 2009-July-21 / 3:22 pm

    Peter –

    I think it is a sequence issue. The Notes client will recognize an http link and make it “hot” unless you have the setting turned off in your preferences. To prove that, simply type the full Notes URL in your rich text and save, close and open. The question is, does it do that before or after computing the computed text? If it does it before, there is no opportunity for the link to become hot. Of course, you could skip the computed text and make a hotspot with a computed URL and it would work, and also allow you a more interesting link text than a URL.

    – Ben

  3. Peter von Stöckel 2009-July-21 / 3:46 pm

    Actually, I just noticed that I don’t have a rich text field, but use a Computed text. Somewhere along the line I changed it from a computed rich text field for some reason.

    This could mean that it might not be a sequence issue as Ben suggests. Have you checked that you are actually getting what you expect from the computed text? If you remove the passthrough html setting for it, is the html correct?

    A hotspot with a computed URL could work here, but couldn’t work in my application, because I don’t know how many links there will be. It shouldn’t be a problem using passthrough html for this functionality though.

  4. Ben Langhinrichs 2009-July-21 / 10:49 pm

    Jan – A good solution, but he needs it to work for a Notes client. – Ben

    • Jan Schulz 2009-July-22 / 6:22 pm

      It does 🙂 In fact, it is a Notes only solution, at least as far as I tested it 🙂

  5. quintessens 2009-July-22 / 2:49 pm

    Hej Jan

    your code does the job, I thank you!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s