Uploading multiple documents into sharepoint list item with REST in sharepoint 2013 using content editor web part :

hi ,
i am trying to upload multiple document files into sharepoint list item. I followed below link for implementaion.
http://techfindings-prem.blogspot.in/search/label/jquery.multifilejs
It was working for sharepoint hosted app.
 This complete code is written within content edito web part.
It was working when i was in root site collection with below change (hard coded the root level url) in code in "UploadFile" function.
var scriptbase = "http://servername" + "/_layouts/15/";
            console.log(' File size:' + bytes.length);
            $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
                var createitem = new SP.RequestExecutor("http://servername");
                createitem.executeAsync({
                    url: "http://servername/sites/cpg/" + "/_api/web/lists/GetByTitle('SalesRecord')/items(" + attachmentitemid + ")/AttachmentFiles/add(FileName='"
+ fileName + "')",
                    method: "POST",
                    binaryStringRequestBody: true,
                    body: binary,
                    success: fsucc,
                    error: ferr,
                    state: "Update"
                function fsucc(data) {
                    //alert( data.statusText + "\n\n" + data.responseText);
                    console.log(data + ' uploaded successfully');
                    deferred.resolve(data);
                function ferr(data) {
                    //alert( data.statusText + "\n\n" + data.responseText);
                    console.log(fileName + "not uploaded error");
                    deferred.reject(data);
But the issue came in picture when i was working with the other site collection instead of root one. The url was like below.
"http://servername/sites/cpg/". This time i need to be there within "cpg" site collection. 
Now if i hard code the url as i did above my code gets break here while come to below line
 $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
I am getting error when i used below code:
var scriptbase = "http://servername" + "/_layouts/15/";
 $.getScript(scriptbase + "SP.RequestExecutor.js", function () {
                var createitem = new SP.RequestExecutor("http://servername");
                createitem.executeAsync({
                    url: "http://servername/sites/cpg/" + "/_api/web/lists/GetByTitle('SalesRecord')/items(" + attachmentitemid + ")/AttachmentFiles/add(FileName='"
+ fileName + "')",
                    method: "POST",
                    binaryStringRequestBody: true,
                    body: binary,
                    success: fsucc,
                    error: ferr,
                    state: "Update"
                function fsucc(data) {
                    //alert( data.statusText + "\n\n" + data.responseText);
                    console.log(data + ' uploaded successfully');
                    deferred.resolve(data);
                function ferr(data) {
                    //alert( data.statusText + "\n\n" + data.responseText);
                    console.log(fileName + "not uploaded error");
                    deferred.reject(data);
Please hekp in this case. This complete code is written within content edito web part. 
Regards:
Sanjay Joshi

Hi,
According to your post, my understanding is that you have an issue about upload multiple documents files into library vai REST API.
As you have said, you have used the hard code url in your code.
How about use the _spPageContextInfo.webAbsoluteUrl method to get the url?
I have used this method to get the url, then use the code in the article you have pasted within a content editor web part to upload the files.
You can replace the hard code url with the _spPageContextInfo.webAbsoluteUrl method, then check whether it works.
Thanks,
Jason
Jason Guo
TechNet Community Support

Similar Messages

  • Uploading Multiple Documents To a List Item sharepoint 2010

    hi Guys ,
    Is there a way we can enable (out of the box )Uploading Multiple Documents To a List Item sharepoint 2010 ?
    cheers

    No, There is no OOB way to do the same you have to build a custom Page/Control OR customise OOB Form to attache multiple files and that will be through integration of ajax based control (multiple file uploader.)
    the other way to do the same is provision a custom field. we have done this for our many  clients.
    Hi, I also encountered the same problem, could u pls provide detailed information by a custom field?

  • Custom SharePoint Master Page with Content Editor Web Part.

    Hi All,
    I have created a custom SharePoint Master Page to apply within my SharePoint Site and it was a success.
    When I want to add the content I have to use the script editor web part and add HTML snippets. Then the styles will reflect correctly. But when I use content editor web part some of the styles do not reflect. Lets assume that if I want to add a H2 with the
    custom color, the color do not show in the ribbon. And how SharePoint know that this is an <h2> and reflect the other styles like padding, margin and so on.
    Please can someone help me to solve this.
    Thanks and regards,
    Chiranthaka

    Hi,
    From your description, my understanding is that you want to add CSS code in your customized Master Page with content editor web part.
    I tested your issue in SharePoint Designer, and I added CSS code successfully.
    I accomplish your requirement with steps below:
    Add a content editor web part in a list and add some CSS code in the web part.
    Open SharePoint Designer, enter the master page.
    Insert a content editor web part under INSERT tab in the Ribbon.
    Open the list that have edited in step1 in the SharePoint Designer.
    Copy code from the list to the Master Page as the screenshot below.
    The screenshot below is my result:
    In addition, why do not you add CSS code just with <style> tag in your page? Just add CSS code as below(in this method, you do not need any web part.):
    <style>
    h2{
    background-color:green;
    </style>
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Using Content search web part to retrieve items from another site collection

    I have a web application that contains two site collections(team site + enterprise wiki), with the following URLs:-
    -http://applicationname/teamsite
    -http://applicationname/enterprisewiki
    Now I need to display the latest 10 wiki pages from the enterprise wiki site collection(according to the modified date) inside the team site. So I read that using Content search web part allow for cross-site content query. Currently I added a new content
    search web part , inside my team site, and I click on “change query” button. But I am not sure how I can reference the enterprise wiki site collection's wiki page library and to specify that I need to get the latest 10 wiki pages , inside the following dialog:-
    Basically this setting partially worked for me, I provide the following settings inside the “Build Your Query” dialog:-
    From the “Select a Query” I defined the following:- “items matching content type(system).”
    Restrict by app : “Do not restrict results by app”
    Restrict by content type “Enterprise Wiki Page”.
    This showed all the sites, lists and even pages are based on the “Enterprise Wiki Page” content type. But I am facing these three problems:-
    1. The above setting showed only the sites,lists and pages matching the “Enterprise Wiki Page” content type, that exists on another web application, and not that exists inside the current web application.
    2. To test the web part , I got the following results, But I was not able to add additional info for the items such as created by, modified by ,etc.
    3.  Also there is no way to sort the wiki pages by the modified date, as in the Sorting tab inside the “Build Your query” dialog I cannot find the “modified” inside the Soft by list
    So can anyone advice how to fix these three problems

    Hi,
    1. In "Build Your Query" dialog, we can select "Specify a URL" in
    Restrict by app and enter another site URL.
    2. If you want to add more information for the items, we need customize the display template, the following link for your reference:
    http://blogs.technet.com/b/sharepoint_quick_reads/archive/2013/08/01/sharepoint-2013-customize-display-template-for-content-by-search-web-part-cswp-part-1.aspx
    3. In the Sorting tab, we can use "LastModifiedTime" to instead of "Modified".
    Best Regards 
    Dennis Guo
    TechNet Community Support

  • How to retrive latest items from different site collection using content search web part

    I have a web application that contains two site collections(team site + enterprise wiki), with the following URLs:-
    -http://applicationname/teamsite
    -http://applicationname/enterprisewik
    Now I need to display the latest 10 wiki pages that are inside the enterprise wiki site collection (according to the modified date) inside the team site. So I read that using Content search web part allows for cross-site content query.
    So I added a new content search web part , inside my team site, and I click on “change query” button. But I am not sure how I can reference the enterprise wiki site collection's library and to specify that I need to get the latest 10 wiki pages using the
    content search web part's query dialog box? Can anyone advice please ?
    Thanks

    Edit the webpart and click change query in search criteria.  click on switch to advanced mode and enter your path:
    (path:"http://applicationname/teamsite" OR path:"http://applicationname/enterprisewik")
    you can specify sorting by created date and click ok.  in number of items to show, type 10.  this should fulfill your requirement.
    For further reading, here are some links:
    http://office.microsoft.com/en-001/office365-sharepoint-online-enterprise-help/configure-a-content-search-web-part-in-sharepoint-HA104119042.aspx
    http://blogs.technet.com/b/tothesharepoint/archive/2013/04/30/stage-9-configure-the-
    query-in-a-content-search-web-part-on-a-category-page.aspx
    http://blogs.technet.com/b/tothesharepoint/archive/2013/05/23/stage-10-configure-the-query-in-a-content-search-web-part-on-a-catalog-item-page.aspx
    kashif

  • Relative Path for Jquery into Content Editor Web Part

    Hi;
    I'd add a Content Editor Web Part (CEWP) to a web part zone. I'd edit that CEWP in HTML view and add my script which load Jquery and my question :  how to use a relative
    path for Jquery :
    <SharePoint:ScriptLink Name="SP.js" runat="server" OnDemand="true"
      Localizable="false" />
    <script src="/sites/XXX/Style%20Library/Scripts/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    My code
    </script>
    Regards

    Hi;
    Firstly, I have used : 
    <script src="/Style%20Library/Scripts/jquery.min.js" type="text/javascript"></script>
    But any result and any change and If I add /Sites/XXX/ : it works correctly ?
    My code is :
    <SharePoint:ScriptLink Name="SP.js" runat="server" OnDemand="true"
        Localizable="false" />
    <script src="/sites/XXX/Style Library/Scripts/jquery.min.js" type="text/javascript"></script>    
    <script type="text/javascript">
    ExecuteOrDelayUntilScriptLoaded(displayTitle, "SP.js");
    var site;
      var context;
      function displayTitle() {
        //Get the current client context
        context = SP.ClientContext.get_current();
        //Add the site to query queue
        site = context.get_web();
        context.load(site);
        //Run the query on the server
        context.executeQueryAsync(onQuerySucceeded, onQueryFailed);
    function onQueryFailed(sender, args) {
      alert('request failed ' + args.get_message() +
        '\n' + args.get_stackTrace());
    function onQuerySucceeded(sender, args) {
        $("#layoutsTable table th span").html("Bienvenue sur le site " + site.get_title() + " - Direction Technique");
        $("#zz17_V4QuickLaunchMenu ul.root li span:contains('Biblioth')").parent().parent().hide();
        $("#zz17_V4QuickLaunchMenu ul.root li span:contains('Listes')").parent().parent().hide();
    </script>

  • SharePoint 2013 Client Side People Picker in Content Editor Web Part

    Has anyone tried to use the client side people picker in a content editor web part? I have successfully got it to work in IE by adding all the script references and initialize function to the content editor web part. Now the strange part is, the people
    picker doesn't render in other browsers, I tried in Chrome, Safari, and Firefox. Any ideas?

    Below can be used to create people picker in CEWP
    <asp:content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
    <script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.2.min.js" type="text/javascript"></script> 
       <script type="text/javascript" src="../Apps/_layouts/15/clienttemplates.js"></script> 
       <script type="text/javascript" src="../Apps/_layouts/15/clientforms.js"></script> 
       <script type="text/javascript" src="../Apps/_layouts/15/clientpeoplepicker.js"></script> 
       <script type="text/javascript" src="../Apps/_layouts/15/autofill.js"></script> 
       <script type="text/javascript" src="../Apps/_layouts/15/sp.js"></script> 
       <script type="text/javascript" src="../Apps/_layouts/15/sp.runtime.js"></script> 
       <script type="text/javascript" src="../Apps/_layouts/15/sp.core.js"></script> 
       <script type="text/javascript">
    <!-- Add your CSS styles to the following file -->
    <link rel="Stylesheet" type="text/css" href="../SiteAssets/PeoplePicker/App.css"/>
    <!-- Add your JavaScript to the following file -->
    // Run your custom code when the DOM is ready.
    $(document).ready(function () {
        // Specify the unique ID of the DOM element where the
        // picker will render.
        initializePeoplePicker('peoplePickerDiv');
    // Render and initialize the client-side People Picker.
    function initializePeoplePicker(peoplePickerElementId) {
        // Create a schema to store picker properties, and set the properties.
        var schema = {};
        schema['PrincipalAccountType'] = 'User,DL,SecGroup,SPGroup';
        schema['SearchPrincipalSource'] = 15;
        schema['ResolvePrincipalSource'] = 15;
        schema['AllowMultipleValues'] = true;
        schema['MaximumEntitySuggestions'] = 50;
        schema['Width'] = '280px';
        // Render and initialize the picker. 
        // Pass the ID of the DOM element that contains the picker, an array of initial
        // PickerEntity objects to set the picker value, and a schema that defines
        // picker properties.
        this.SPClientPeoplePicker_InitStandaloneControlWrapper(peoplePickerElementId, null, schema);
    // Query the picker for user information.
    function getUserInfo() {
        // Get the people picker object from the page.
        var peoplePicker = this.SPClientPeoplePicker.SPClientPeoplePickerDict.peoplePickerDiv_TopSpan;
        // Get information about all users.
        var users = peoplePicker.GetAllUserInfo();
        var userInfo = '';
        for (var i = 0; i < users.length; i++) {
            var user = users[i];
            for (var userProperty in user) { 
                userInfo += userProperty + ':  ' + user[userProperty] + '<br>';
        $('#resolvedUsers').html(userInfo);
        // Get user keys.
        var keys = peoplePicker.GetAllUserKeys();
        $('#userKeys').html(keys);
    </script>
    </asp:content> 
    <asp:content contentplaceholderid="PlaceHolderMain" runat="server">
    <div id="peoplePickerDiv"></div>
        <div>
            <br/>
            <input type="button" value="Get User Info" onclick="getUserInfo()"></input>
            <br/>
            <h1>User info:</h1>
            <p id="resolvedUsers"></p>
            <h1>User keys:</h1>
            <p id="userKeys"></p>
        </div>
    </asp:content>​​​​​​​​​
    Vishnu

  • SharePoint 2003 : Cannot open the Rich Text Editor in Content Editor Web Part

    Error message when you use the Rich Text Editor in a SharePoint Portal Server 2003 Service Pack 3 Content Editor Web Part: "Cannot open the Rich Text Editor"
    Mohamed Gamal Orief Senior Software Engineer ITWORX EGYPT Phone: +202.2673.6377 Mobile:+2010.0552.7971 www.itworx.com

    Hi Mohamed,
    Please check if your issue is the same as the following article cannot use Rich Text Editor in a CEWP on a Vista client, if yes, you can install the kb 941204 hotfix for your SharePoint 2003, then check result again.
    http://support.microsoft.com/kb/949604
    http://support.microsoft.com/kb/941204 (Description of the SharePoint Portal
    Server 2003 post-Service Pack 3 hotfix package: February 26, 2008)
    Thanks,
    Daniel Yang
    Forum Support
    If you have feedback for TechNet Subscriber Support, contact [email protected] 
    Daniel Yang
    TechNet Community Support

  • Uploading Multiple documents to custom list programmatically

    HI,
    I am using VS 2010 and C#, SharePoint 2010.
    I have a custom list ( not using document library).
    I am using a visual web part, in which i have added a asp:file upload control, which has Allow multiple set to true.
    How to upload multiple files to custom list programmatically using the asp:file upload control?
    Thanks

    See if any of the below links give you some pointers
    http://kamilamirul.wordpress.com/2013/01/19/multiple-upload-file-programmatically-using-gridview/
    http://nestorrg-blogs.itequia.com/2010/01/upload-multiple-files-attached-to.html
    http://social.technet.microsoft.com/wiki/contents/articles/2990.programatically-upload-multiple-file-in-sharepoint-list-part-2.aspx
    http://www.c-sharpcorner.com/UploadFile/Freddy_Khalaf/multiple-attachment-custom-control-in-sharepoint/
    http://www.c-sharpcorner.com/UploadFile/sarav82/MOSS11072007065009AM/MOSS.aspx
    Geetanjali Arora | My blogs |

  • On-Premise SharePoint and Exchange Online -need work around to use My Mail web part.

    Due the fact that the My Mail or My Calendar web parts use iFrames they will not display correctly on the page.  I get a message  "This content cannot be displayed in a frame" and then the option to open this content in a new window. 
    The issue is the iframe and the Browser security to prevent Click-jacking.  
    What I've tried - http Response Headers X-Frame-Options -value= Allow-from
    https://outlook.com/owa
    Plus various IE settings.
    Page-viewer web part - same issue.
    I would really like to use these web parts on my SharePoint site.  Any suggestions?
    Thank you,
    DLDevine

    Hi,
    According to your post, my understanding is that you got the "This content cannot be displayed in a frame" error.
    You can add the site in trust site to check whether it works.
    Open Internet Explorer (the desktop version if you are using Windows 8)
    Press Alt + T on your keyboard to show the Tools menu
    Click Internet Options
    Click the Security tab
    Select the Trusted sites zone
    Click the Sites button
    Type https://login.microsoftonline.com or other site URL into the Add this website to the zone:field
    Click Add
    Click Close
    Click Apply
    Click OK
    Close Internet Explorer
    You can also check the below link, just download the zip and deploy the wsp(Its a web application level feature) and select your web application and activate the feature, in which you want to open the site in an IFrame.
    http://ventigrate.codeplex.com/releases/view/79825
    There are two similar threads for your reference.
    http://social.msdn.microsoft.com/Forums/vstudio/en-US/2f95e434-7b30-4401-925e-0739b6227082/ie-8-frame-issue-this-content-cannot-be-displayed-in-a-frame?forum=netfxjscript
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/69801bab-58d6-45ce-960b-2c3c45a7e2e2/view-sharepoint-2010-pages-in-iframe?forum=sharepointdevelopmentprevious
    Thanks & Regards,
    Jason 
    Jason Guo
    TechNet Community Support

  • Create Sharepoint list-item with Software AG

    Hi everybody
    I'm trying to add an item to a list in Sharepoint using the BPM-program Software AG. I've created a webservice using the Lists WSDL and I can retrieve items from the list, so the webservice should be alright.
    But when I try to create a new item I get the error 'Date at the root level is invalid. Line 1, position 1.'
    I have checked all parameters and don't know what I'm forgetting or doing wrong.
    Below a link to an image that shows the structure of the UpdateListItems Service:
    http://imgur.com/cLu41Uo
    The variable tns:listName, user, pass and _port are all correct, I've checked these with GetListItems and it retrieved all data as it should.
    For *body, I filled in following XML:
    <Batch OnError='Continue' PreCalc='TRUE'>
    <Method ID="1" Cmd="New">
    <Field Name="Title">SAG BPM</Field>
    <Field Name="Type of Material">Book</Field>
    <Field Name="Date">20/03/2014</Field>
    <Field Name="Email">[email protected]</Field>
    <Field Name="Person">Test Person</Field>
    <Field Name="Storage Location">Locker 3</Field>
    <Field Name="Position in Storage">Shelf 5</Field>
    </Method>
    </Batch>
    When I run this service the error I mentioned above occurs and I don't know what is wrong or if I'm forgetting anything.
    With kind regards
    Kevin

    I don't seem to find the relevant URL's in my history anymore but here's what I tried.
    I used the same XML as I posted in the question, once without the <Batch> tag and once with <updates></updates> surrounding that XML. Neither worked.
    I also found an example of the structure <updates><xsd:schema>schema</xsd:schema>xml</updates> . Here I replaced
    schema with everything in the updates tag in this link: http://msdn.microsoft.com/en-us/library/dd955870(v=office.12).aspx and
    xml with the XML's I tried before.
    After this didn't work I tried writing my own schema without success.
    Most of the solutions I viewed are about C# or VB.NET, I don't need this because with Software AG I don't have to write code. It just consumes the webservice provided by http://<site>/<subsite>/_vti_bin/Lists.asmx?wsdl
    Hope this helps.
    Kevin
    *EDIT* I have downloaded SoapUI after my internship mentor advised it and this is the result for the first XML I provided: http://i.imgur.com/ZiVosgX.png

  • Open a SharePoint List item in Modal Pop up in SP 2013 fails after you filter or sort the list

    Sorry for the long post. This has been killing me. I had this script working perfectly fine in SharePoint 2010 (online) and basically i have a source custom list (list A) with a hyperlink column and a Destination List with say title and my name.
    Source List (list A) looks like this with these 2 columns
    Title    Test Link
    A         Link 1
    B         Link 2 
    C         Link 3
    Each of these links link to the actual list item in the destination list, so for example, link 1 is/sites/2013DevSite/Lists/Destination%20List/EditForm.aspx?ID=1
    So basically i want anytime the Link are clicked that point to another list's item to open in a modal dialog and the script below worked perfectly fine in SharePoint 2010 (online)
    <script language="javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" type="text/javascript"></script>
    <script language ="javascript" type="text/javascript">   
    jQuery(document).ready(function() {
    jQuery('a[href*="EditForm.aspx"]').each(function (i, e) {
    // Store the A tag's current href in a variable
    var currentHref = jQuery(e).attr('href');
    jQuery(e).attr({
    'href': 'javascript:void(0);', 
    // Use the stored href as argument for the ShowInModal functions parameter.
    'onclick': 'ShowInModal("' + currentHref + '");'
    function ShowInModal(href) {
    SP.UI.ModalDialog.showModalDialog({title: "Edit Item", url: href});    
    </script>
    All it does is find the href tags for that particular value Editform.aspx and the pop modal works in SP 2010 online. So the site page is designed in such a way there is a content editor web part with the reference to this javascript file and the sharepoint
    list is right beneath it and this worked perfectly opening in modal windows in SP 2010.
    Since migration to 2013, this is what exactly happens
    1.) when you come to the site page, the modal works,
    2.) If you filter or sort on say the Title or Test Link column in Source list (lets say you select the Value A), the script does not fire at all, if i hover over the hyperlink, the who hyperlink is shown and does not open the hyperlink in the modal pop up.
    - This is important because i want to be able to sort on a particular item...
    Could someone please let me know what am i doing wrong and why is this not working when i sort the list. Thanks for all the help.
    Once again i am trying to open a sharepoint list item in Sharepoint 2013 from another list using Jquery

    A ListItem has its own unique row id so in all likelihood, an insert with the same data will result in a new list entry. The Lists Web Service however, has an UpdateListItem method which will take an update request. [refer
    http://msdn.microsoft.com/en-us/library/office/websvclists.lists.updatelistitems(v=office.15).aspx ]
    There is another note in the conference (marked answered) to your List Item Update problem. Probably worth a try too. [refer
    http://social.msdn.microsoft.com/Forums/en-US/bee8f6c6-3259-4764-bafa-6689f5fd6ec9/how-to-update-an-existing-item-in-a-sharepoint-list-using-the-wss-adapter-for-biztalk?forum=biztalkgeneral ]
    Regards.

  • Display Custom Fields in a SharePoint 2010 Content Query Web Part?

    Using SharePoint 2010, Having Custom List With 4 Columns, Now I am Using Content Query Web-part To Display List Data ,But Currently It Display Only First Column, SO How to Display Custom Fields in a SharePoint 2010 Content By Query Web Part
    AKshay Nangare

    Hi,
    By default CQWP shows only one column. However, if you want to show more than one column, then CQWP needs to be customized. The property which you are looking for is CommonViewFields. It is used to specify the additional fields that you want to display in
    the Web Part. See this for more information:
    https://msdn.microsoft.com/en-us/library/ms497457%28v=office.14%29.aspx?f=255&MSPPError=-2147217396
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

  • Content Query Web Part - Custom ItemStyle.xsl to display image with hyperlink

    I don't have access to InfoPath or SharePoint Designer to edit the ItemStyle.xsl. So any solution suggested is preffered to be a manual change to ItemStyle.xsl
    I use Content Query Web part (in the main site) to list all the Wikis created in the a sub-site. The idea is to link each wiki to its printable version stored elsewhere.
    The wiki has custom column say "Link" that hold hyperlinks to the printable version.
    I want to create a column in the content query web part that displays an image (same image for all wikis stored in the site Assets) but on clicking takes me to the printable version page.
    I got the image displayed but the hyperlink takes me to the location where the image is stored and not to the printable version page.
    <!--Variable declared to read the link from the column Link-->
    <xsl:variable name="PDFLink">
    <xsl:value-of select="@Link"/>
    </xsl:variable>
    <!-- Image to the hyperlink-->
    <a href="{$PDFLink}">
    <img src="../Images/Icon.jpg"/>
    </a>

    Hyperlink column is treated a little different. The field, by default, puts the URL and then the friendly name concatenated together, but separated by a comma. So I created two variables one that pulls everythng before the comma and the other after. Then
    the html "a" tag looks like this:
    <!--Variable declared to read the link from the column Link-->
    <xsl:variable name="ActualLink" select="substring-before(@LinkColName,',')"/>
    <xsl:variable name="FriendlyName" select="substring-after(@LinkColName,',')"/>
    <!-- Image to the hyperlink-->
    <a href="{$ActualLink}"><xsl:value-of select="$LinkColumnName"/>
    <img src="/Images/Icon.jpg">
    </a>

  • Upload multiple files to a data item in sharepoint list

    The image above shows a list item with two pdf files attached to it.  This is an access databse that was pushed to this sharepoint list.  When we attached these files we used the "attach file" from the edit menu at the top of the page.
     They are put into a data item called "copy of sepration report", which I can't seem to find when I edit the list.  As a further on discussion of this we would like to be able to upload multiple items into their own data field.  I.E.
    one could be seperation report, and another could be accidents, and another would be disciplinary.  Each would have the capability of having multiple items uploaded to it.
    What am I missing????

    Since you can't attach document to list item field, you may need to think other way around. You can create a document library and have the document library all these fields (separation report, copy of separation report etc.). So instead of list item having
    the documents attached, the document library will have the fields attached. Also you can group the fields into two groups - fields that are not directly related to document and fields that are directly related to document. Then you can move the document related
    fields to document library and create another list with the non-related-to-document fields and linking this new list to document library using lookup
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

Maybe you are looking for

  • Can a pdf be converted into a multipage tiff

    In order for me to upload documents into a particular system I use I need them to be in tiff format. Unfortunately most documents I recieve are in pdf. I understand how to use Acrobat XI to convert a pdf to tiff, but each page is its own image. Is it

  • Editing a photo to include a sense of scale

    Hi all, was just wandering if anyone knows of a way of drawing a line on a photo to represent scale or including a scale bar? Just that I'm cropping some photos of experiments carried out in a lab though have to remove the scale ruler though still ne

  • "DBIF_RSQL_SQL_ERROR" CX_SY_OPEN_SQL_DBC

    Hi All, Short dump is occuring while trying to activate the data in the ods. The ods consists of 5 million records. I have gone through the short dump analysis. The error is showing that the file system is full. Database error text........: "SQL0968C

  • A question within SQL form 3.0

    Hi, How about the statement for changing the block's property within such version? How about the similar ones to these? set_block_property('p1b1',updateable,property_false); set_block_property('p1b1',insertable,property_false); I remember that it's u

  • Are reports created in VS2005 supported in VS2010 (CR13)?

    Does anyone know if reports created with Crystal Reports for Visual Studio 2005 are supported in the Crystal Reports for 2010? If I upgrade the report (by opening in VS2010 and saving directly) everything is OK, but out of the box it returns an error