logo

New Response

« Return to the main article

You are replying to:

    • avatar
    • Jake
    • Posted on Thu 22 Feb 2001

    Can't think how you'd go about showing pasted images in a view!

    To do it with attachments use one of the following formalae in your column (view needs to be treated as HTML). This assumes you don't know the name of the attachment and that there is only one (otherwise an alternate solutions can be used)

    "<img src=\"" + @Text(@DocumentUniqueID) + "/$file/" + @AttachmentsNames + "\" alt=\"img\" />"

    This assumes that the view is on a $$ViewTemplate which means that it is at the same level of the database structure as view and links can be generated from that level onward*. i.e. The following URL:

    "DocumentID/$file/image.gif"

    is the same as:

    /dir/db.nsf/view/DocumentID/$file/image.gif"

    when the link itself is already at the level of the view.

    *Otherwise you will have to "hard-code" the full path in the view which can lead to problems with indexes if the DB moves.

    HTH Jake Howlett -CodeStore

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: