Hi frens, There is a form in which i created a field which is of rich text type and I used it for attachment .I want that when it is showed on the web then noone other than authenticated users can open that attachment .How can I do this ? I don’t want all users to see those attachments
Any Help wud be highly appreciated
thanx
Subject: related to opening of attachment on web
Use “Hide-Whens” to restrict users from viewing the attachment.
Subject: RE: related to opening of attachment on web
But I want that the names of attachment will be showed to all users but only some authenticated users can download that
Subject: RE: related to opening of attachment on web
ok no problem.You could create hyperlinks only for the authenticated users, for the rest just show them the attachment names ( without a link )
i.e. create a computedtext and put the following code and make it pass thru html ( this will be hidden for Un-Authorized users)
ThisDBW :=@ReplaceSubstring (@Subset (@DbName; -1); “\” : " "; “/” : “+”);
a:=@AttachmentNames ;
links:=“<a target=_blank href='/”+ThisDBW + “/0/”+ @Text(@DocumentUniqueID) + “/$file/” + a +“'>”+a + “”;
@Implode(links;“
”)
Create another computedtext and put the following code and make it pass thru html (this will be hidden for Authorized users)
@Implode(@AttachmentNames;“
”)
hope this helps !!
Ashish
Subject: RE: related to opening of attachment on web
Hello Ashish, I’m not getting the code …
Cud u explain me if possiblem for u ...
n when I used this code in my form it is showing like
Full News and a text box
Subject: RE: related to opening of attachment on web
You need to make this computed text as Pass Thru HTML i.e. select it then click on the Text Menu and choose the option Pass Thru HTML
Also replace the earlier code with this ( the if condition will make sure to return a blank when there are no attachments )
ThisDBW :=@ReplaceSubstring (@Subset (@DbName; -1); “\” : " "; “/” : “+”);
a:=@AttachmentNames ;
@If(@Trim(a)=“”;@Return(“”);“”);
links:=“<a target=_blank href='/”+ThisDBW + “/0/”+ @Text(@DocumentUniqueID) + “/$file/” + a +“'>”+a + “”;
@Implode(links;“
”)
Also searching the forum can help you alot. Use this string to search i.e.
web AND attachment AND display