Need link to attachment from a list.

I've got a user who has a very large SharePoint list, to which she is attaching files (normally, I'd recommend a Document Library, but that's its own story).  She wants to be able to have a direct link to the attached file as a list column.  Much
to my surprise, this is not possible OOTB.
I've seen this described for 2007
elsewhere, but was unsuccessful in adapting it to SPD 2010.  Has anybody encountered a solution for this for 2010, or know how the 2007 solution could be adapted?
Many thanks!

Hi Josh,
From your description, I’d recommend you create a new column for attachments in the current list. Here are the steps:
1.In the List Tools > List > Modify View > Modify in SharePoint Designer (Advanced).
2.Then you come to SharePoint Designer 2010. Switch to Split view and locate the column. Then right-click and insert Column to the Right.
3.Then locate the td part as below:
<td><xsl:text xmlns:ddwrt="http://schemas.microsoft.com/webparts/v2/data....
</td>
4.Replace it with the code as below:
<td id="ItemAttchment" class="ms-vb">
          <xsl:element name="SharePoint:AttachmentsField">
          <xsl:attribute name="runat">server</xsl:attribute>
           <xsl:attribute name="FieldName">Attachments</xsl:attribute>
          <xsl:attribute name="ControlMode">Display</xsl:attribute>
          <xsl:attribute name="Visible">true</xsl:attribute>
          <xsl:attribute name="ItemId">
          <xsl:value-of select="@ID"/>
          </xsl:attribute>
          </xsl:element>
</td>
5.Then view in the IE browser and see if it works as expected.
The screen shot below is the result from my lab environment:
Regards,
Rebecca Tu
TechNet Community Support

Similar Messages

  • Moving a List Item attachment from one list to another

    Hi,
    What are the best way of coping / moving the List Item attachment using
    jQuery / JavaScript in SharePoint 2013 from one list to another.
    Thanks
    Saroj
    Impossible is nth but good coding :-)

    For your needs better try to code your own solution. See
    SharePoint JavaScript Class Library for details. You can have two possible architectures:
    Make all work from JavaScript. And the first your step will be
    addItem method of SP.List.
    Make processing of selection on client in JavaScript and call your custom server-side component (may be an application page) for items copying (creating copies in new list of already existed items from initial list.). See
    this for example.
    Also be careful with context.load. It's recommended to write all next code in context.executeQueryAsync. Use Firebug in FF and developer tools in Chrome for debugging your code and to find what is wrong.
    Or 
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/1d01a48f-c28b-467b-acd1-22e5fb266670/how-to-retrieve-list-items-and-copy-it-to-other-list-using-javascript-object-model?forum=sharepointdevelopmentprevious
    <script type="text/javascript">
    ExecuteOrDelayUntilScriptLoaded(retrieveListItems, "sp.js");
    var siteUrl = 'Site Url';
    function retrieveListItems() {
    var clientContext = new SP.ClientContext(siteUrl);
    var oList = clientContext.get_web().get_lists().getByTitle('List1');
    var camlQuery = new SP.CamlQuery();
    camlQuery.set_viewXml('<View><Query><Where><Geq><FieldRef Name=\'ID\'/>' +
    '<Value Type=\'Number\'>1</Value></Geq></Where></Query><RowLimit>10</RowLimit></View>');
    this.collListItem = oList.getItems(camlQuery);
    clientContext.load(collListItem);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
    function onQuerySucceeded(sender, args) {
    var listItemInfo = '';
    var listItemEnumerator = collListItem.getEnumerator();
    while (listItemEnumerator.moveNext()) {
    var objListItem = listItemEnumerator.get_current();
    var clientContext = new SP.ClientContext(siteUrl);
    var oList = clientContext.get_web().get_lists().getByTitle('List2');
    var itemCreateInfo = new SP.ListItemCreationInformation();
    this.oListItem = oList.addItem(itemCreateInfo);
    oListItem.set_item('Title', objListItem.get_item('Title'));
    oListItem.update();
    clientContext.load(oListItem);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceededFinal), Function.createDelegate(this, this.onQueryFailed));
    function onQueryFailed(sender, args) {
    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
    function onQuerySucceededFinal(sender, args) {
    //Do next set of operation if needed
    </script><input name="btnVarIQReject" onclick="retrieveListItems()" type="button" value="Submit"/>
    Please use my above POC code to start. This will copy all the title field value from list1 to list2
    If this helped you resolve your issue, please mark it Answered

  • Lookup Attachment from another list

    I am looking to have an attachment field linked to another list in InfoPath 2010.  How can I set up the data connection?  Thanks!
    David L. Crooks

    Hi David,
    According to your description, my understanding is that you want to use an attachment field linked to another list (like “Link from SharePoint”) in InfoPath form. Is it right?
    Per my knowledge, there is no OOB way to achieve it. I suggest you develop a custom control in InfoPath to do it.
    For developing customizations in InfoPath, I suggest you create a new thread on Visual Studio Tools for Office (VSTO) forum, more experts will assist you with Office development.
    VSTO forum:
    https://social.msdn.microsoft.com/Forums/en-US/home?forum=vsto&filter=alltypes&sort=relevancedesc&searchTerm=VS
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Need to remove movie from video list

    Hi, I imported a movie into my iTUnes 6 video list and I want to remove it. I put it up there as a test and I even deleted the file but the thumbnail is still up there on teh screen with my other videos. THis isnt a major deal but jsut kind of annoying.
    I tried right-clicking and going up to the menu but i saw nothing abotu removing. Cut was grayed out so it wasnt an option. Is there a setting i need to change to give me manual control or something?
    Thanks.

    I'm having the same problem. I had some old Rocketboom.com videos on my hard drive that I didn't know I had. When I updated to iTunes 6.0 it added these videos to my iTunes library. The problem is that the files had a read-only attribute set. Windows/XP OS. Since the files have read-only permission, iTunes won't allow me to delete the files. So I deleted the videos manually from the OS, unfortunately iTunes still won't let me delete the video from iTunes, even though the videos no longer exist. UGH! iTunes does ask me if I want to "browse" and find the file. I tried pointing the library to a file that was deleteable, but iTunes still thinks the file is protected and won't let me delete the file. I'm stumped. I can't think of way to delete all these files from my iTunes video library. We may have to wait for the next update. I hope it's not too long in coming.

  • Fastest way to get data from Multiple lists across multiple site collections

    HI
    I need to get data from multiple lists which spread across 20 site collections and need to show it as list view.
    I have searched on internet about this and got some info like options would be to use search core APIs or BCS . I can't use search because I want real time data. Not sure of any other ways.
    if anybody can provide ideas it would be help.

    Might LINQ be an option for you?  Using
    LINQPad and the
    SharePoint Connector, you should be able to write a query that'll retrieve this data, from which you can tabulate it.  I'm not sure how you'd be able to automate this any further so that it's then imported in as list.
    For something more specific, I used a third party tool called the
    Lightning Tools Lightning Conductor, which is essence a powerful content roll-up tool.  In one of my solutions, I created a calculated column that gave an order / ranking on each item, so that when lists were combined, they'd still have some form of
    order.  The web part is also fairly customisable and has always proven a useful tool.
    Hope that helps.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Get information from multiple lists

    Hi,
    Environment: - SharePoint 2013
    Question :- My client needs a get information from multiple list from the same site to be displayed on the page, 
    they would need a dropdown list with the user names , and once a user is selected all the tasks and calendar entries of the user must be filtered and displayed.
    Please suggest how this can be achieved.
    Satyam.

    Hi,
    According to your post, my understanding is that you wanted to get information from multiple lists once a user was selected.
    There is no out of the box way to accomplish this with SharePoint.
    As a workaround, I recommend to create a list to store the user names. Then you can create relationships between lists using the browser UI. Once you select the user name in the parent list, the associated items will be displayed in the child lists.
    Here are two great articles for you to take a look at:
    http://office.microsoft.com/en-in/sharepoint-server-help/create-list-relationships-by-using-unique-and-lookup-columns-HA101729901.aspx#_Toc270607416
    http://msdn.microsoft.com/en-us/library/ff394632.aspx
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • I bought OSX Mountain Lion 10.8.2 in the App Store. I have accidentally dleted it from my list of purchases. How can I restore it in case I need to use it again?

    I bought OSX Mountain Lion 10.8.2 in the App Store. I have accidentally deleted it from my list of purchases.
    How can I restore it in case I need to use it again?

    To recover Mountain Lion to your purchases, open App Store > Featured > Account (under Quick Links) > Show hidden purchases, and show OS X Mountain Lion. Finally, it will appear on Purchases tab

  • Hide link to SAPguiDetails from completed task list in UWL

    Below is the code I have in XML file to hide links to SAPGuiDetails.
    <Action name="launchSAPDetails" handler="SAPMiniAppLauncher">
    <Properties>
    <Property name="display_order_priority" value="uwlExcludeFromPreviewDetail"/>
    </Properties>
    </Action>
    This works fine however when user selects drodrown in UWL to show completed tasks and open the completed taks, they can still see links to SAPGUIDETAILS. Appreciate if I can get any help how I can hide the link to SAPguidetails from completed tasks list.
    Thanks,
    Bobby

    The simplest way to hide it from all the views in UWL is to put launchSAPDetails in the "List of UWL Actions to exclude" property of the UWL iview.
    If you want item specific or view specific customization, you will need to identify which item and view configuration is used and include the above XML in each of those.
    Thanks,
    Shanti

  • I've already changed email for my apple id more than 6 months. But 2-3 months ago until now I've recieved and email to ask apple id confirmation from me. I never confirm anything because I don't know,the link's attached, it's legal or illegal.

    Dear Apple support team,
    I've already changed email for my apple id more than 6 months. But 2-3 months ago until now I've recieved and email to ask my apple id confirmation from me about 6-8 emails. I never confirm anything because I don't know,the link's attached, it's legal or illegal.
    The latest link (just be sent to my email 1 hr. ago) : http://www.smartpixeladv.com/proma/Login/index.html 
    Text is:
    Dear Customer,
    We recently noticed an unusual activity in your iTunes account. Please complete the process to confirm your
    informations.
    Confirm Now>
    This link will expire three days after this email was sent.
    If you don’t make this request, your account will be blocked for security reasons.
    Apple Support​
    In my opinion, i think      "http://"   should be   "https://"  right?  Or Apple should show the link on your website  that we can find, re- check and click by ourselve. Or  Apple should do "How to confirm apple id" on your main page. ( in fact  i'm not sure you already done "How to" on your website yes or not, because I cannot find it)
    The apple id is sensitive security, it's concerned personal security and any credit card payment so please understand me that's why i must to interrupt your team to help me to solve this problem. I'm scared my account will be blocked. Please advice me.
    Wassa. (BKK)

    It is a phishing attempt to get your Apple ID and Password.
    You should forward it to Apple : [email protected]

  • How to Open a New window from a List region Link, Please help

    I am trying to get a new full window( Not popup window) open from a list region link. The list region entry is an Image. I get the new page open, but it is not in new window, it is in the same window.
    I know I have to give the target = "_blank" somewhere. But In List region, I dont know where to add this.
    Please help
    George

    Yes, you are right Arun. That is more elegant way of
    doing it. Keep it up. thankx..
    Btw, why do you hate javascripts? Can you imagine the
    internet world without javascript (or ant scripting
    language)?yep i agree... but i try my best to avoid scripts.. as i had been workin around some japanese technologies... and there are three major mobile market players there... who has their own content type and all those devices never support javascript..
    more over i donno that... in all 3 yrs i have never used that ;-))

  • I need to save an online file to my ipad and then email it as an attachment from my school email? It is my college gmail account and I can't add it to my mail app.

    I need to save an online file to my ipad and then email it as an attachment from my school email? It is my college gmail account and I can't add it to my mail app. This was an assignment for class to make sure we could use the BB email system.

    You can use your gmail account within the native Mail app using IMAP
    Make sure you've enabled IMAP in your main Gmail settings
    Open the Settings app on your device
    Tap Mail, Contacts, Calendars
    Tap Add Account...
    Tap Gmail
    Enter your account information, being sure to use your full Gmail address, including '@gmail.com'
    Tap Next
    Tap Save

  • How can I delete all of my contacts from my iphone? I have updated my contact list in Outlook, and need to re-import that "clean" list.

    How can I delete all of my contacts from my iphone? I have updated my contact list in Outlook, and need to re-import that "clean" list.

    There is a checkbox on the 'info' tab in iTunes that will allow you to overwrite the address book on the phone with the one from the computer on the next sync.

  • HT1222 I need some help.... I Have the iPhone 4S and downloaded the new software (6.0) and everything seems great so far except when I try to open a link in safari from a different app (messages, Facebook, ext..) it glitches and won't load. Any advice?

    I need some help.... I Have the iPhone 4S and downloaded the new software (6.0) and everything seems great so far except when I try to open a link in safari from a different app (ie..messages, Facebook, ect..) it glitches and won't load. The blue loading bar will just jump back and forth and the page will not load properly if at all....

    It sounds like you may have multiple problems, but none of them are likely to be caused by malware.
    First, the internet-related issues may be related to adware or a network compromise. I tend to lean more towards the latter, based on your description of the problem. See:
    http://www.adwaremedic.com/kb/baddns.php
    http://www.adwaremedic.com/kb/hackedrouter.php
    If investigation shows that this is not a network-specific issue, then it's probably adware. See my Adware Removal Guide for help finding and removing it. Note that you mention AdBlock as if it should have prevented this, but it's important to understand that ad blockers do not protect you against adware in any way. Neither would any kind of anti-virus software, which often doesn't detect adware.
    As for the other issues, it sounds like you've got some serious corruption. I would be inclined to say it sounds like a failing drive, except it sounds like you just got it replaced. How did you get all your files back after the new drive was installed?
    (Fair disclosure: I may receive compensation from links to my sites, TheSafeMac.com and AdwareMedic.com, in the form of buttons allowing for donations. Donations are not required to use my site or software.)

  • I need a document open password to open a attachment from a email

    i need a document open password to open a attachment from a email

    Ask the author of the file for it...

  • Link an image field to a value selected from a list

    Hello!
    I'm newbie to Dreamweaver - PHP and I have a problem. I have
    made a list that displays the names of all the images of my
    database. Now, I want every time the user selects a value from the
    list the corresponding image appears on the same page. How can I do
    this?
    Please help me!!!

    Hi Stefan,<br /><br />Thanks for responding to my last mail. I am talking about the XFA(xml form architecture). Actuallly i am working on Picture form field in PDF which Adobe has newly introduced. In this type of form field , user can add an image. But i am not able to differentiate between the "Picture form field" and "push button". The only thing i have found that the picture form field entry exist in dataset but not the Push button.<br /><br />29 0 obj<br /><<<br />/Length 13533<br />>><br />stream<br /><xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/"><xfa:data><form1><IMAGE href="" xfa:contentType="image/jpg"></IMAGE></form1></xfa:data></xfa:datasets><br />endstream<br />endobj<br /><br />In the above case the "Image" is a picture form field.<br /><br />Another difference i found between "push Button" and "Picture Form Field" is the MK dictionary as below.<br /><br />Pushbutton<br />-----------<br />/MK <<<br />/BG [ 0.831375 0.815689 0.784317 ]<br />/CA (Print Form)<br />/BC [ 0 0 0 ]<br />>><br /><br />Picture form Field<br />-------------------<br />/MK <<<br />/TP 1<br />/I 17 0 R<br />>><br /><br />But i want to find the exact difference. May be some bit in Form Field Flag(ff) signify the picture form field. It will be very helpful to me if you could tell me the exact difference.<br /><br />Kind Regards,<br />Shekhar Kumar Keshri

Maybe you are looking for

  • Need help booting from DMG file without DVD drive

    okay so i have 6 computers with me right now. i need to use one that has a dvd drive to install it on a comp that doesnt via firewire. 1- macbook with superdrive and os 10.5 (cant even open tiger install because its a new macbook 2-iBook g4 with DVD

  • JNDI lookup issue in weblogic 10 server

    Hi all, I have a serious problem in getting the datasource lookup. My application uses EJB3 and JPA and it is deployed in weblogic10. I configured datasource in the domain (ex:mydomain) using weblogic 10 admin console. Now when i try to call from a c

  • Strange repeating strings in multiple files possible virus?

    A few months ago when I ran netstat I noticed about 10 TCP ports that said: Local Address [::]:5000, Foreign Address [::]:0, all were just listening. I ran the netstat with -noa to get the PIDs and resolved the issue, but when I started digging aroun

  • Doubt on managed beans...

    Hi, I am using JDeveloper and ADF. Whenever i am creating a bean by default its taking bakingbean scope. And if i bind that bean to page (Auto Bind), EL's on page are with prefix "backingBeanScope". If i change scope, change is not affecting for thos

  • Database reset alert

    I have been getting an annoying popup from iSync titled "Database Reset Alert", saying that "Inconsistencies in your sync information for Contacts and Calendars were detected and have been repaired". "The next sync for entourage 2008, address book, e