Solved

Dynamic URL Link Hotspot Continues

Posted on 2000-04-20
3
244 Views
Last Modified: 2013-12-18
This question is an expanded version for the "Dynamic URL Link Hotspot" question from Wed. Jan 5, 2000. id # 10255094.

What I'm after is similar in that I want to produce a picture, icon, to link to a file attachment for web users. My approach is as follows:

1. After creating a document library, based on the r5 web doc library template, I would create a simple form that would allow for fields category, document title, and file attachment, as well as a radio button indicating file type. (ie. Abobe, MS Word, etc.) Then I want to create a view that will display an icon, based on the file type selection. (I also thought about eliminating file type and parsing the attachment for its file extentsion, ie. .pdf would display an adobe icon, .doc a word icon.) This customized view would also have a short description, title of the document.

2. When a user clicks on this generated icon in the view from the web or otherwise, it will launch the file attachment.

This way, I can create a document library that users could add file attachments to and by using the view these attachments would automatically be published on the web site. Without the need for an admistrator to add document links every time a user has a MS Word or Excel document to link to the Web page.

Now you know my idea.

My question is how do I launch the file attachment from the icon in the view?

If you have any tips on how to accomplish any other aspects of this problem or an easier approach to accomplishing the same thing please tell me.

As a bonus how would I accomplish generating the view icons based on file attachment extentsion.
0
Comment
Question by:jz6pwc
3 Comments
 
LVL 2

Expert Comment

by:amit_dutta
ID: 2744381
Hello jz6pwc,

I think 20 points is too less for this question.
0
 
LVL 1

Author Comment

by:jz6pwc
ID: 2747216
Adjusted points from 20 to 40
0
 

Accepted Solution

by:
sam_clayton earned 40 total points
ID: 2751252
I have an example of something similar which we could adapt.
The way it works in the system we have is that the link to the document in the view column used to access it is of the form:
<a href='database.nsf/view/" + @Text(@DocumentUniqueID)+ "/$FILE/" + @AttachmentNames + "?OpenElement\'>

what you could do is put a computed field at the top of the form with:
<script>
document.location ='database.nsf/Docs/' + @Text(@DocumentUniqueID)+ "/$FILE/" + @AttachmentNames + "?OpenElement\';
</script>
(the result of the formula that is)
The formula will be something like:
"<script>document.location='/database.nsf/view/" + @Text(@DocumentUniqueID)+ "/$FILE/" + @AttachmentNames + "?openElement';</script>"
But I haven't tried it,
let me know how you get on.
Cheers,
Sam
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
DAOS - Backup / Restore 2 188
Event in Notes Form after open and visible 10 220
@ command if structure getting unmanageable 12 100
Add a cc field to email code 3 110
For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

809 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