Need Help with a web href link

All,

I’m trying to create a link for attachments in computed text. My formula for the computed text is:

dbName:=@ReplaceSubstring(@Subset(@DbName; -1); " “:”\“; “+”:”/");

x:=FileAttachmentQ1;

FileName:=@Trim(@Text(@RightBack(FileAttachmentQ1;“\”)));

@If(x!=“”;“<A href =”+“/”+dbName+“/0/”+@Text(@DocumentUniqueID)+“/$FILE/”+@Text(FileName)+“>”+FileName+“”;“”)

The problem occurs when there are more than word in the FileName. In the href link it shows only the first word and nothing after that. For example if I have a document like “My Favourite Document.doc” The link it generates ends after “My”. Although the FileName shows that it has the whole “My Favourite Document.doc”. Somehow it does not include anything after the space. I have tried the @Trim,@Text but nothing seems to be working. Can anybody help me with this.

TIA,

Ki

Subject: Need Help with a web href link

Well I figured it out myself. Had to use a @Replace Substring to replace spaces with %20.

Thanks for all the help.

Ki

Subject: Need Help with a web href link

How about changing

FileName:=@Trim(@Text(@RightBack(FileAttachmentQ1;“\”)));

to

FileName:=@Trim(@Text(@RightBack(@ReplaceSubstring(FileAttachmentQ1; " “; “+”);”\")));

which will switch the spaces to '+'s and should still work fine.