Solved

Attachment handling

Posted on 2004-04-25
11
517 Views
Last Modified: 2013-12-18
How does attachment handling work on Web? In a workflow a document will go through many levels of approvals/rejections. In each round a document or two may be added. What should be the approach?
0
Comment
Question by:small_doubts
11 Comments
 

Author Comment

by:small_doubts
Comment Utility
Pardon the points. I will add more later.
0
 
LVL 19

Expert Comment

by:madheeswar
Comment Utility
u can attach as normal attachments as we do in Notes or u can provide a link to those attachments with yopur own test and with the file name and hide attachments.
0
 

Author Comment

by:small_doubts
Comment Utility
Sorry if my question is not clear. Actually I want to know how do I implement attachment adding/removal capability in my website.
0
 
LVL 13

Assisted Solution

by:CRAK
CRAK earned 40 total points
Comment Utility
Just add the embedded element "File upload control" to your form. The rest is don automatically!
Unfortunately, if a single user needs to upload 2 attachments, you'll need to provide 2 upload controls.
0
 

Author Comment

by:small_doubts
Comment Utility
Thanks CRAK :) for your help again. I have been able to get started with this. But probably for a bigger problem now. All the attachments are displayed at the bottom of the document. I either do not want to display them at all while editing or may be I need to display the attachment only when it was added by the current user. But I think this should be a different question. So may be I can return later with a bigger question and more points :) I will accpet your answer.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Author Comment

by:small_doubts
Comment Utility
Thanks for your tip madheeswar.
0
 
LVL 19

Assisted Solution

by:madheeswar
madheeswar earned 40 total points
Comment Utility
create $V2AttachmentOptions field and the default value is zero("0")

this will hide all the attachments.
0
 

Author Comment

by:small_doubts
Comment Utility
Wow. This is nice. They are all gone. Now what I can do is, get the user names and generate links to selected attachments manually. Thanks madheeswar.

I will close this question in a few days. Please give me some time. Thank you both for your help.
0
 
LVL 14

Accepted Solution

by:
p_partha earned 50 total points
Comment Utility
Hey small_doubts

Just create a field by name $V2AttachmentOptions
and make that default value as "0". This will make sure that the attachments are not visible. Create a computed text and put this formula into that...

@If(!@Attachments; @Return(""); "");
@Implode("<a href=\"" + @Text(@DocumentUniqueID) + "/$file/" + @AttachmentNames + "\">"+@AttachmentNames + "</a>"; "<br>")



and to delete the attachments instead of the above formula u can use this:

@If(!@Attachments; @Return(""); "");
@If(@IsDocBeingEdited;
"<p>Remove attachments here:<br>" +
@Implode("<input type=\"checkbox\" name=\"%%Detach\" value=\""+@AttachmentNames+"\">"+@AttachmentNames; "<br>");
"<p>View attachments here:<br>" +
@Implode("<a href=\"" + @Text(@DocumentUniqueID) + "/$file/" + @AttachmentNames + "\">"+@AttachmentNames + "</a>"; "<br>"))

(this is from codestore)


HTH
Partha
0
 

Author Comment

by:small_doubts
Comment Utility
Thanks p_partha. That looks good. I will try it :)
0
 

Author Comment

by:small_doubts
Comment Utility
Thanks again guys!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now