Download by link

Hi,
I had created one table view to diasplay KM Data with 3 columns  Name, path, created.For path column with LinkbyURL property and i can able to display it in explorer but i want down load that file whenever i clicked on that link .How can it possible.
Regards,
surya.

public void getListOfResources( )
   wdContext.nodeAttachments().invalidate();
    String decoderResourceName = null;
   ArrayList al1 = null;
    try {
    String initialpath = "/documents/Test";
    com.sapportals.portal.security.usermanagement.IUser user = null;
    int localPort = 0;
    String localhost = null;
    ResourceContext ctx=null;
    IResourceList children = null;
    IUriReference uriRef = null;
    IHierarchicalUri uri = null;
    String accessURI = null;
    IURLGeneratorService ug = null;
    try {
           ug = (IURLGeneratorService)com.sapportals.wcm.repository.ResourceFactory.getInstance().getServiceFactory
            ().getService(IServiceTypesConst.URLGENERATOR_SERVICE);
   catch (ResourceException e1) {
     e1.printStackTrace();
   ArrayList file_names = new ArrayList();
     ArrayList file_modify_date = new ArrayList();
     IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
     com.sap.security.api.IUser sapUser = wdClientUser.getSAPUser();
     user = WPUMFactory.getUserFactory().getEP5User(sapUser);
     ctx = new ResourceContext(user);
     RID aRid=RID.getRID(initialpath);
     com.sapportals.wcm.repository.IResource resource =
                     com.sapportals.wcm.repository.ResourceFactory.getInstance ().getResource(aRid, ctx);
     uriRef = ug.getResourcePageUri(PathKey.CONTENT_ACCESS_PATH,resource.getAccessRID(),null);
     uri = ug.createAbsoluteUri(uriRef);
     IWDRequest req = WDProtocolAdapter.getProtocolAdapter().getRequestObject();
     if(req != null)
          localhost = req.getServerName();
          localPort = req.getServerPort();
     //this is the URL where it will give the absolute path
     String uriPath = null;
     if(uri != null)
          uriPath = uri.getPath();
     accessURI = "http://"+localhost+":"+localPort+uriPath;
     ICollection collection = (ICollection)resource;
     children = collection.getChildren();
     IResourceListIterator listchild = children.listIterator();
     al1 = new ArrayList();
     while(listchild.hasNext())
          IPrivateUploadFileKM_View.IAttachmentsElement attachmentsEle =
                                           wdContext.createAttachmentsElement();
          com.sapportals.wcm.repository.IResource element = listchild.next();
          if(element.getName() != null && !al1.contains(element.getName()))
          decoderResourceName = java.net.URLDecoder.decode(element.getName(),"UTF-8");
          attachmentsEle.setAttachmentText(decoderResourceName);
          al1.add(element.getName());
          String resourceName=element.getName().toString();
          //If % exists in the file name
                                           if(checkIfExeists(resourceName,'%'))
          attachmentsEle.setAttachmentURL(accessURI+"/"+URLEncoder.encode(element.getName(),"UTF-8"));
          }else
          attachmentsEle.setAttachmentURL(accessURI+"/"+element.getName());
          attachmentsEle.setCreateDate(new java.sql.Date(element.getCreationDate().getTime()));
          wdComponentAPI.getMessageManager().reportSuccess("Unique Name "+sapUser.getName());
          attachmentsEle.setCreatedBy(element.getLastModifiedBy());
          wdContext.nodeAttachments().addElement(attachmentsEle);
}catch(Exception e)
wdComponentAPI.getMessageManager().reportException("Exception in method getListOfResources()"+e,true);
Regards,
Charan

Similar Messages

  • When downloading i can only download one link at a time per window. i used to be able to download six links at a time per page. how do i go back to this?

    got a new laptop. unsure of firefox verson on old as the computer quit taking a charge.
    but essentially on my old laptop if a window had six downloadable links i would be able to download all six at once. now i can only download one link at a time. this is very annoying. i do not believe it is an issue with the new laptop itself as it is a highend toshiba.

    Hello cherokeeguy, go to [http://kb.mozillazine.org/About:config about:config] find [http://kb.mozillazine.org/Network.http.max-persistent-connections-per-server network.http.max-persistent-connections-per-server] right-click on it, select modify and put a greater value, try 10 or 16, click ok to save it, exit firefox and restart it.
    BUT this normally should not happen !
    check it also in [https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Safe Mode], select '''''"Start in Safe Mode" '''''and see if this happen again, if not see: [https://support.mozilla.org/en-US/kb/troubleshoot-extensions-themes-to-fix-problems Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]
    also try to update to the latest firefox 16.0.1
    thank you
    Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

  • KEEP GETTING "Unsupported 16-Bit Application" when trying to download Blackberry Link-I need music on my device!!

    KEEP GETTING  "Unsupported 16-Bit Application" when trying to download Blackberry Link.  Im trying to sync music into my new Z10.  here is the whole error message:
    "\??\C:\User.....................cannot start or run due to incompatibity with 64-bit versions of Windows.  Please contact software vendor to ask if a 64-bit Windows comapatible version is available
    Any know how to transfer music without using this Blackberry link?  Is there a quick fix to my problem? Any help would be appreciated.  Thanks

    Just download the Link application directly to your PC, not with your BlackBerry connected.
    There's no need for the connection while your simply downloading the install file.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Download file link in adf command link action

    Hi,
    i want to make a link on my web page , when my users click that link they can download a file
    how can i do that
    i use the thread
    Re: Download File Link in jspx
    but not works for me
    could any one help me to sort out the issue
    Thanks in advance

    Hi,
    i want to make a link on my web page , when my users click that link they can download a file
    how can i do that
    i use the thread
    Re: Download File Link in jspx
    but not works for me
    could any one help me to sort out the issue
    Thanks in advance

  • How do I have a  'download pdf' link?

    Can anyone tell me how I put a download pdf link on my
    website so people can download my CV?
    Thanks,
    Zoe

    Zip your CV. Save it in your local site. Link to the zipped
    file. Upload
    the page and the zip....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "dollecom" <[email protected]> wrote in
    message
    news:eaiotp$jag$[email protected]..
    > Can anyone tell me how I put a download pdf link on my
    website so people
    > can download my CV?
    >
    > Thanks,
    > Zoe

  • Can't download blackberry link Error: 1723

    I hope someone here can help me, because blackberry make it impossible to speak to a human being.
    I've just spent the past 3 hours trying to download bllackberry link onto my netbook so I can move my contacts over from my Bold to my new Blackberry 10. Have tried to reload software twice and both times it's nearly successful until an error message pops up:
    Error 1723
    There is a problem with this Windows installer package. A DLL required for this install to complete could not be run. Contact your support personel or purchase vendor. Action RepairRimusbDriverNT.191E2COC_5A62_43E3_B035...
    Can anyone tell me what this means in human speak and what I need to do?
    Very grateful for any help!

    Someone at an O2 shop told me that Blackberry were meant to be updating the software this past weekend and changes would be made to eradicate the bugs. I was told to try downloading again some time this week. I haven't tried yet.
    Could someone from Blackberry please help us out with this!? As of the moment, I have a Blackberry 10 which I'm entirely unable to use and have no way of exchanging it, since the trial period has now passed. I feel I've been sold faulty merchandise, and they at least owe me some assistance.

  • Blue Download Now link is not working for me.

    When I go to the section of the site to download iTunes, I enter my e-mail address, and click the Download Now link.  Once I click the link, absolutely nothing happens.  Internet Explorer isn't "thinking" after I click.  Any suggestions?  I had ITunes on this computer before I reformatted last night.  Starting with a clean slate.

    Hello Prem,
    Please check the navigation bar profile from your business role.
    Then go to the navigation bar profile settings, you can find the details settings there.
    If it is a link under some work center, you need to start from the work center.
    If it is a direct link, then start from the derect link group.
    Hope this could be helpful.
    Best regards,
    'Maggie

  • Download MP3 links/files

    Hi guys,
    Is there a way to save/ download MP3 links like old style blackberries?
    Thanks,
    M

    When you press the link for n second or 2 , a menu will slide open from the right.
    Right at the bottom of the menu , you will find 3 horizontal dots (...)
    Press it.
    At the bottom of the next menu you will find the option to "Save Linked File"
    Hope this was helpful..

  • Google Chromecast does not work after downloading Blackberry Link

    Google Chromecast does not work after downloading Blackberry Link.
    Both don't work in tandom at the same time.
    Some elements of Blackberry Link are interferring with Google Chromecast's detection and casting.
    Please rectify the problem.

    Yes they are not compatible. I do not have either program so could not try anything.
    Try running one in a different compatibility mode. 

  • [plese help] My Safari cannot download  every link

    My safari cannot download every link when i clicked . it will be back to pevoius page .. its also in Chome
    My osx version 10.6.5

    Hi and welcome....
    Quit Safari (Command + Q)
    Open a Finder window. Select your Home folder in the Sidebar on the left. Now open the Library folder then the Safari folder.
    Move the Downloads.plist file from the Safari folder to the Trash.
    Relaunch Safari.
    Carolyn

  • I do not have the download software link on my LWS homepage

    I do not have the download software link on my LWS homepage. I am an Adobe Reseller and purchased Adobe Acrobat Standard XI (5 copies) through the TLP program via Ingram Micro.
    Brian DeLadurantey
    Direct: 239-325-1482

    Hi,
    FaceTime on your iPhone is integrated with your Phone app.
    Make sure you enable FaceTime first by going to "Settings"  >  "Phone"  Then switch on "FaceTime."
    You now can simply go through your contacts list with your Contacts app (or within the Phone app), select a user, then scroll down to the very bottom of the page, and click on "FaceTime."  Then you can choose the "Phone Number" or "E-mail" that associates with your friend/family's device.  You can even add them to your Favorites list as a FaceTime call, so when you tap their name on your Favorites list, it will initiate a FaceTime call.
    -cwdlin
    Message was edited by: cwdlin

  • Imac 1999 running os x tiger itunes free download website link

    iMac 1999 running os x tiger itunes free download website link thank-u guys I am on a pc that only came out of the box  (ps- I only have 750mb of network data) ------- 30GB hard drive 700 kilohertz processor has microphone and also I want apps
    my music also has worked on itunes for windows

    1. Click here.
    2. Check MacUpdate.
    (112306)

  • Document Name & Download file Link should display together

    Dear Friends,
    i am working with apex_3.2 .
    i have created form with report on forms i have displayed 5 file browser item.
    in report these 5 document file display as a download link in report.-
    i want to display document name Download link together in one report column like below
    eg
    1. documentA.doc download
    2. documentB.doc download
    my Report code is
    select
    ID,
    ACTIVITY_NAME,
    activity_date,
    dbms_lob.getlength(ACTIVITY_FILE) FILE_NAME,
    dbms_lob.getlength(ACTIVITY_FILE_2) ACTIVITY_FILE_2,
    ACTIVITY_FILE_ID_2,
    dbms_lob.getlength(ACTIVITY_FILE_3) ACTIVITY_FILE_3,
    ACTIVITY_FILE_ID_3,
    dbms_lob.getlength(ACTIVITY_FILE_4) ACTIVITY_FILE_4,
    ACTIVITY_FILE_ID_4,
    dbms_lob.getlength(ACTIVITY_FILE_5) ACTIVITY_FILE_5,
    ACTIVITY_FILE_ID_5,
    ACTIVITY_FILE_NAME,
    ACTIVITY_FILE_NAME_2,
    ACTIVITY_FILE_NAME||'<br>'||ACTIVITY_FILE_NAME_2||'<br>'||ACTIVITY_FILE_NAME_3
    ||'<br>'||ACTIVITY_FILE_NAME_4||'<br>'||ACTIVITY_FILE_NAME_5 as DocumentName
    from CRM_ACTIVITY
    where account_id =:P3_id How can i display it in One column in Repot ?
    Thanks
    Edited by: Vedant on Mar 20, 2012 11:40 PM

    While downloading the properties need to be binded properly then it works fine.

  • I purchased adobe photoshop elements 13 from dell to download on my Mac OS   Which has been updated to maverick. When i download the link it goes into the download bucket and tells me to choose an app to open and I can't figure out which app to choose??

    How to download elements 13 to Mac OS computer. It's telling me to choose an app to open file. I can not figure out which

    if you have a serial number, and if you follow all 7 steps you can directly download a trial here:  Adobe Photoshop Elements 13 Direct Download Links, Premiere too | ProDesignTools
    and activate with your serial number.
    if you have a problem starting the download, you didn't follow all 7 steps, or your browser does not accept cookies. 
    the most common problem is caused by failing to meticulously follow steps 1,2 and/or 3 (which adds a cookie to your system enabling you to download the correct version from adobe.com). 
    failure to obtain that cookie results in an error page being displayed after clicking a link on prodesigntools.com or initiates the download of an incorrect (eg, current) version.
    or you can dl from dell,  https://smartsource.dell.com/

  • Why does Firefox 29.x crashes every time I click a download file link?

    Immediately after automatically updated to Firefox 29.0 every single time I click a link to download any file, Firefox crashes. It also crashes when using cPanel (cPanel sometimes opens windows in a frame, or at least that's how in appears). Please see the most recent crash report below:
    bp-72a0abfb-2dfb-419d-85e8-c260c2140508
    bp-116890c7-2849-4ffd-aa1c-629562140508
    I tried the following, which did not help:
    * Reset the profile
    * Turn off hardware acceleration
    * Remove and download list (downloads sqlite)
    I sure would appreciate any help.
    Thank you!

    THANK YOU to [https://support.mozilla.org/en-US/user/114651 Moses] and [https://support.mozilla.org/en-US/user/287 cor-el] , you helped very much in pointing me the right way in terms of the thought process to get this fixed. I also appreciate your time and for providing valid and useful input!

  • Safari does not download files automatically (not able to download at all - unless there is an option for a right click- download the linked file)

    Hello all,
    I have been having this issue for a while now it starts to get very annoying. Not just Safari, all of my browsers are unable to download any files unless I right click to save. However, for some files/apps there is no way to download at all. For example, when trying to download and install Flash for Safari, I was stuck on a blank web page when the file download was supposed to start, but nothing happened so the installation was unable to proceed. Was trying to download Chrome too, same issue... I could see the download link (as URL) grrr...but it just did not do anything.
    Please help!!!
    Niki
    iMac (late 2012):
    2.9 GHz Intel Core i5
    8 GB 1600 MHz DDR3
    NVIDIA GeForce GTX 660M 512 MB
    OS X 10.9.5 (13F34)

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

Maybe you are looking for