on 09-10-2009 7:01 AM
Hi all,
Need your help.
In my case, I have a table contains some documents user has uploaded.
And user also wants to display the document by click the document link.
So I went to filedownload ui element. But I find that I can't catch the event of clicking the document link.
Why I want to catch the event? Because I don't want to load the document content at first, because if the ducument's size
is too big, that will lead the response speed very slow.I only want to display how many documents are there in the table. and if the user reallywants to see the documents ,then I'll catch the action, and before the action, I'll load the document content for
user. But I've tried several ways, it seems impossible for me to catch that.
Do you have the answer or other solutions.
Thanks and Regards.
Aaron.
> and if the user reallywants to see the documents ,then I'll catch the action, and before the action, I'll load the document content for
user. But I've tried several ways, it seems impossible for me to catch that.
For such an approach, don't use the fileDownload UI element. Use instead a simple LinkToAction. It will look the same to the user. However when the click a link a normal WDA event will occur. You can then handle that event, load your data and trigger the file download with cl_wd_runtime_services=>attach_file_to_response
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Manjunath,
The solution is pretty much like Thomas has said:
in my table, I use the linktoaction UI element instead of filedownload UI element for the document name column.
And then I can catch the event that user click the link, in the action handler, I use cl_wd_runtime_services=>attach_file_to_response method to display document.
Regards,
Aaron.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.