FAQ - Print a List Item in SharePoint 2010

FAQ - Print a List Item in SharePoint 2010
step 1) Open a List;
step 2) Hit the List tab;
step 3) Click the Form Web Parts dropdownlist;
step 4) Choose “Default Display Form”;
step 5)At the top of the Page – Insert Tab, Click the Web Part button to add a new Content Editor web part (CEWP);
 step 6) From Categories choose “Media and Content” > “Content Editor” and add it to the main section of the page;
 Click the “Click here to add content” and then click the HTML button in the Ribbon to bring up the Edit source code window;
 In the window add the following code to display a Print Button at the top of the list item window.
input type=”button” value=” Print” onclick=”window.print();return false;” 
step 7) Next, hit the Page tab at the top of the page to view the List item. You should see the Print button;
 Hit the Print button to print just the list item.
Amalaraja Fernando,
SharePoint Architect
This post is provided "AS IS" with no warrenties and confers no rights.

References:
http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/28f02631-2291-4f8c-875a-4fa5397536ee/
Amalaraja Fernando,
SharePoint Architect
This post is provided "AS IS" with no warrenties and confers no rights.

Similar Messages

  • Create List Item using SharePoint 2010 Workflow

    Hello everyone.
    I found in youtube video using SP Employee Onboarding Web Part, idea is quite simple and powerful. But this web part available only in SP 2013, and I use 2010. So I wanted to develop my own version.
    Questions is:
    I have 2 lists Employee OnBoards (list contains data about new employee) and Employee OnBoards Tasks (list contains approval task). Where field Employee Name from Employee OnBoards list is lookup field in Employee OnBoards Tasks list.
    I need emplement next:
    When new Item created in Employee OnBoards list, it should copy Employee Name value to the Name field of the Employee OnBoards Tasks list.
    I hope I explained understandable.
    Thanks.

    Hi Azamat,
    This you can do by using SharePoint Designer workflow.
    Create a sharepoint designer workflow and invoke that when new item will create in the list Employee
    OnBoards.
    then use Copy List item action to copy employee name to employee on board task list.
    Below link will help you how to use copy list item action in a workflow.
    http://blogs.salmanghani.info/copy-item-workflow-using-sharepoint-designer-2010/
    Hope this will help you.
    Regards
    Soni K

  • Termstore changes are not getting reflected in the list items in SharePoint 2010 farm environment

    Hi,
    I had created managed metadata with termstores from central admin. Then I had created one list in which added a column of type managed metadata using the managed metadata which I had created. And also added few list items to this list.
    The problem is that after updating a termstore the changes are not reflecting in the list items which were added before the update.
    I have referred the following links:
    http://www.paulgrimley.com/2011/02/managed-metadata-changes-not-applied-to.html
    http://davidfrette.wordpress.com/2010/05/26/taxonomy-update-scheduler%C2%A0timer%C2%A0job/
    According to the links we need to run Taxonomy Update Scheduler on the server for updated termstore to get reflected. After running
    this scheduler on development environment changes are getting reflected but not working on the production environment.
    Kindly help!
    Regards, Shruti

    You should check the obvious.  You made the change in dev, but did you make the change in production too?  And, is the term you updated, actually the one that you are looking at in the list item?
    There is not much, if anything, that can go wrong with that timer job. so I'd guess that the term you are looking at is not the one you think you are updating.
    If you have double checked everything (the term is is in fact the same term id), then you may have something erroring in the update process.  In this case, you should check the ULS logs for any errors.
    Chris
    Chris Givens CEO, Architecting Connected Systems
    Blog Twitter

  • How to update selected list items in SharePoint 2010?

    Hello All
    I have a list containing field named "Category". I want to develope a solution which will take two inputs: Old Category and New Category. The expected result is: all the list items will be fetched which have Old Category input value in
    their category field and the field is replaced with the input value New Category.
    I have a limitation that I can not use Visual Studio. So I am thinking to create aspx page with content editor webpart. But I am new to all these things. Could you please suggest the development approach for this?
    Thanks.

    Hello,
    I don't think CEWP can help you because you won't be able to find old and new category when there is any change in list. However you can identify the latest modified item from list but how will you identify whether category is old or new. If you have any
    other column in list which can tell you that category value has been updated then you can write ECMA or Jquery script to update other items.
    If have any column in list then see below jquery code, where you will see how to query the list: (In my case it is Active)
    var soapEnv = "<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'><soapenv:Body><GetListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'>";
    soapEnv += "<listName>Highlights</listName>";
    soapEnv += "<query><Query><Where><Eq><FieldRef Name='Active' /><Value Type='Text'>Yes</Value></Eq></Where><OrderBy Override='TRUE'><FieldRef Name='Modified' Ascending='FALSE' /></OrderBy></Query></query>";
    soapEnv += "<viewFields><ViewFields><FieldRef Name='Title'/><FieldRef Name='ows_FileLeafRef'/><FieldRef Name='Links'/></ViewFields></viewFields><rowLimit></rowLimit>";
    soapEnv += "</GetListItems></soapenv:Body></soapenv:Envelope>";
    Please comment if i misunderstood you?
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Update item in SharePoint 2010 list when a entry made in SQL server

    Hi there,
    I have four lists on a SharePoint 2010 site. There is a column - Equipment Name - in each of the lists. I want only this column to be updated in all the lists, when a new entry is made in SQL server.
    I referred
    http://oszakiewski.net/eric/connecting-a-sharepoint-2010-list-to-external-database-table and found it good, however I want to only update one column and not to perform CRUD. Also, can it be possible to achieve this without referring to Central Administration
    settings?
    Thanks

    Hi,
    Let’s verify the following:
    Whether your four lists are external list with SQL Server data source. If not, you can’t sync the list with SQL Server.
    External list items are sync from data source, they keep sync all the time.
    Whether you aren’t want to perform CRUD in the list. You can select some of them instead of using all of them.
    You can create all of the column from the four lists in your SQL Server database table, and then create four external lists with that table as data source.
    Modify view-> in each external list check the columns which you want display in every list. Then you can update the “Equipment” column in each external list.
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • How to display the count of a list item in Sharepoint Designer?

    How to display the count of a list item in Sharepoint Designer? please reply with the proper code line to add for this.

    Hello,
    What version of sharepoint you are using? Try below approach:
    http://sharepointlogics.com/2010/03/total-count-of-items-in-list-in.html
    Hope it could help
    Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer
    Please feel free to unmark answer if does not resolves your problem.

  • Attach multiple files to a List Item in SharePoint 2013

    Hi Guys,
    I have a customer that want to attach multiple files to single list item in a dialog box. like Datasheet View, if we set up a Datasheet View and click on the Attachment cell, it opens a dialog box that allow to select and attach multiple files as one operation. 
    Does anyone know how to solve this issue?
    As we know, if we want to attach multiple files, it only allow me to attach one file at a time, then repeat this process for every other file.
    Thanks in advance!
    Jodie

    Hi,
    According to your post, my understanding is that you wanted to upload multiple files in SharePoint list.
    There is no out of the box way to accomplish this with SharePoint.
    You can refer to the following articles to achieve it programmatically.
    Multiple Upload File Programmatically Using GridView:
    http://kamilamirul.wordpress.com/2013/01/19/multiple-upload-file-programmatically-using-gridview/
    Upload multiple files attached to a SharePoint list item.
    http://nestorrg-blogs.itequia.com/2010/01/upload-multiple-files-attached-to.html
    Programatically Upload Multiple File in SharePoint List
    http://social.technet.microsoft.com/wiki/contents/articles/2990.programatically-upload-multiple-file-in-sharepoint-list-part-2.aspx
    Programmatically uploading multiple files to Custom sharepoint list 
    http://www.c-sharpcorner.com/UploadFile/sarav82/MOSS11072007065009AM/MOSS.aspx
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Is it possible for a 3rd party program to create a list item in sharepoint online 2013?

    I have limited experience with the online version of sp. I've been asked if it's possible for a 3rd party app that our company is beginning to use, to programmatically add items to a list.    I don't have any details about the program yet,
    but I've been told that a batch would run at night and they would like it to create items in a SP list and pass along several fields of metadata.   
    Is this possible in the online version?   I know that Power Shell can do this, but is it possible for an app to get access to run a PS command?   
    thanks,

    Yes.
    There is something known as the Client Side (?) Object Model or CSOM. This allows you to create list items, lists and even sites with .Net code from a non server machine.
    You could run 'classic' Server Object Model  C#/VB.NET or PowerShell to do the same job and it might be easier as there's alot more material out there on how to do it. On the other hand it's probably going to make your solution more complicated and
    harder to maintain over the long run.
    This article introduces you to the CSOM and how to use it and is applicable to O365 as well as on-premise:
    http://msdn.microsoft.com/en-us/library/office/fp179912%28v=office.15%29.aspx
    As an alternative you can look at the REST API which allows you to use web services to interact with SharePoint.
    http://msdn.microsoft.com/en-us/library/office/fp179912%28v=office.15%29.aspx

  • Is there any option for voting on a list item in SharePoint 2013?

    Dear All,
    I am looking for a feature vote a for list item from multiple users and need to show consolidated results on that.
    for SharePoint 2013 we have "like", "rating" by using these can we show the consolidated results.
    otherwise is there any alternative for this.
    Thanks & Regards,
    Jithendar

    I haven't seen any OOB vote feature in sharepoint list. It's better to go with "like" or "ratting" options.
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer :)

  • Automatically upload documents to list items in Sharepoint Online

    Hi
    I need to upload pdf documents to a list (not
    a document library, this is not an option) on SharepointOnline (Office365).
    In practice, whenever a document is "sent" or "uploaded" to the list, a new list item would be created automatically and the document would be attached to the list item automatically.
     At the moment, we are doing this manually but this is not practical with 1,000s of documents.
    Any help would be appreciated. The community365 people were unable to help and redirected me here.
    Many thanks,
    AK

    For those who may be interested, I found a workaround that does the trick.
    Rather than uploading the actual documents to each list item, I upload the documents to a document library and then include hyperlinks to the locations of the documents in the document library.
    This can be achieved by:
    (i) creating a new workflow in Sharepoint Designer;  the workflow must be attached to the document library where the documents are located AND must be set to launch automatically when a new item is created in the library (see the parameters of the workflow);
     and
    (ii) in the workflow, choose the action "create a new item"; click on "this list" and choose your destination list; choose a list column where the hyperlink will appear and click on "add" to add a field directing towards that column; choose "Current Element/Encoded
    Absolute URL" as the source of data. And bam! it works. A life saver.
    Cheers
    AK

  • Rich List Pagination in SharePoint 2010

    I have SharePoint list with data that I need to display page by page. The must requirement is ability to jump through pages and show total page count (i.e. 1,2,3 ... 15). Does SharePoint allow to do that?
    By far I tried: CAML : seems not to be possible, as the CAML query requires element from the previous page to display the next one.
    REST : using /_vti_bin/listdata.svc and LINQ query:
    //VS2010 creates classes for all list items when adding reference to listdata.svc
    RootDataContext context = new RootDataContext(new Uri(Utils.ListServiceUrl));
    context.Credentials = System.Net.CredentialCache.DefaultCredentials;
    //this works like a charm, I am able to filter items by category and page them
    //(category is a single lookup)
    var query = (DataServiceQuery<NewsItemsItem>)context.NewsItems.
    Where(i => i.CategoryId == 2).
    Skip(3).
    Take(2);
    //however, if I need more advanced filtering (Tags is multilookup) I fail
    //(the code below won't work as this approach does not allow to make aggregation
    //queries inside other query)
    var query = (DataServiceQuery<NewsItemsItem>)context.NewsItems.
    Where(i => i.Tags.Where(t => t.Id == 3).Count() > 0).
    Skip(3).
    Take(2);
    I would be grateful if you could give me any advise.

    Just did a quick search, it appears that:
    Queries for multi-value lookup fields and users Because multi-value lookup fields are returned
    as a string of multiple values, there is no way to query for them (for example, the equivalent of an Includes element or NotIncludes element is not supported).
    I guess then, that neither CAML, nor REST can help me to directly filter items I need... I'll need to query all the items and then filter them separately by getting and comparing multilookupfield values for each one... This can be a huge performance
    issue for large lists, what do you think?

  • How to delete a list item in Sharepoint 2007 via SOAP?

    I am looking to delete a list item using soap web services. I am using the Lists.asmx web service.
    The XML looks like this:
    <Batch OnError="Continue" ListVersion="1">
    <Method ID="1" Cmd="Delete">
    <Field Name="ID">7</Field>
    </Method>
    </Batch>
    I got this from the msdn docs at http://msdn.microsoft.com/en-us/library/lists.lists.updatelistitems%28v=office.12%29.aspx
    And I am using the Lists.UpdateListItems Method.
    I am doing this in python and python has a library, suds for this purpose. However I get this exception:
    suds.WebFault: Server raised fault: 'Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.'
    I have looked for typos, and verified the XML format. Where am I going wrong?
    Some help please.

    http://linesofcode.net/snippets/166

  • Single approval workflow to apply on multiple selected item in Sharepoint 2010

    Hi All,
    I have the following work flow requirement:
    1. Select multiple list items/ documents from a library
    2. Start a single approval work flow for all the selected items
    3. Which creates single approval task for all the approvers (Hence Multiple approvers)
    4. rejection by single approver rejects all the approval process
    (step 4 i know)
    How can i go ahead with this?
    Met vriendelijke groet / Best Regards,
    ir. Poojith Jain | SharePoint Developer
    LinkedIn

    Hi All,
    I have the following work flow requirement:
    1. Select multiple list items/ documents from a library
    2. Start a single approval work flow for all the selected items
    3. Which creates single approval task for all the approvers (Hence Multiple approvers)
    4. rejection by single approver rejects all the approval process
    (step 4 i know)
    How can i go ahead with this?
    Met vriendelijke groet / Best Regards,
    ir. Poojith Jain | SharePoint Developer
    LinkedIn
    Hi, which solution did you follow to accomplish that?

  • Create list item in sharepoint online list throws error in iPhone

    Hi all :
    I have got a piece of JS code where I am creating multiple list items. So first I am creating an Expense item and then each of the expense line item( 5 of those ) in a different list. It creates the Expense item successfully and then when it tries to
    create the line items, I am getting the following error :
    Request failed. Unexpected response from server. null
    However when I go to the line items list, I can see all the items being created!!! I am also inserting my code below.
    clientContext.executeQueryAsync(function (sender, args) {
                    var createdExpenseID = viewModel.listItem.get_id();
                    //Now create the expense line items - one by one
                    clientContext = SP.ClientContext.get_current();
                    web = clientContext.get_web();
                    list = web.get_lists().getByTitle("Expense Items");
                    var expenseIDLookup = new SP.FieldLookupValue();
                 expenseIDLookup.set_lookupId(createdExpenseID);
                    /*for (i = 1; i <= 5; i++) {
                        var descriptionField = "description"+i;
            alert(viewModel.model.window[descriptionField]);
                    itemCreateInfo = new SP.ListItemCreationInformation();
                 this.listItem = list.addItem(itemCreateInfo);           
                 //alert(list);
                 this.listItem.set_item('Title', viewModel.model.description1());
                 this.listItem.set_item('Date', $('#date1').val());
                 this.listItem.set_item('ProjectNumber', viewModel.model.projectNumber1());
                 this.listItem.set_item('ClientToPay', viewModel.model.selectedClienttopay1());
                 this.listItem.set_item('Amount', viewModel.model.amount1());
                 this.listItem.set_item('ExpenseCurrency', viewModel.model.selectedExpenseCurrency1());
                    this.listItem.set_item('ExchangeRate', viewModel.model.exchange1());
                    this.listItem.set_item('ConvertedAmount', viewModel.model.converted1());
                    this.listItem.set_item('Expense', expenseIDLookup);
                    this.listItem.update();
                    clientContext.load(this.listItem);
                    clientContext.executeQueryAsync(function (sender, args) {
        function (sender, args) {
                     alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
                    itemCreateInfo = new SP.ListItemCreationInformation();
                 this.listItem = list.addItem(itemCreateInfo);           
                 //alert(list);
                 this.listItem.set_item('Title', viewModel.model.description2());
                 this.listItem.set_item('Date', $('#date2').val());
                 this.listItem.set_item('ProjectNumber', viewModel.model.projectNumber2());
                 this.listItem.set_item('ClientToPay', viewModel.model.selectedClienttopay2());
                 this.listItem.set_item('Amount', viewModel.model.amount2());
                 this.listItem.set_item('ExpenseCurrency', viewModel.model.selectedExpenseCurrency2());
                    this.listItem.set_item('ExchangeRate', viewModel.model.exchange2());
                    this.listItem.set_item('ConvertedAmount', viewModel.model.converted2());
                    this.listItem.set_item('Expense', expenseIDLookup);
                    this.listItem.update();
                    clientContext.load(this.listItem);
                    clientContext.executeQueryAsync(function (sender, args) {
        function (sender, args) {
                     alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
       //Now redirect to the newly created item edititem.aspx page for attaching attachments
                    window.location.replace("/sites/process/Lists/Expense/EditForm.aspx?ID="+createdExpenseID+"&Source=/sites/process");
    function (sender, args) {
        alert('Expense creation failed');                
    The outermost executeQueryAsync creates the Expense item and on being successful, I create the line items.
    Any help will be much appreciated.
    Thanks and regards,
    developer_melbourne

    Ok so I resolved the issue and thought to provide the answer. It was caused by the line where it is doing redirection using window.location.replace. Somehow it works in IE, not in Safari in iPhone.
    Anyways you can do the redirection after all the items get created in the last success  method of the last item creation OR you can use deferred/promise of jQuery to achieve the same.
    Thanks

  • How to set item level permission for list item in SharePoint 2013

    Hi we had a custom List "ABC".
    List had 2 columns:
    Project Name: (P1, P2, P3, P4, P5, P6)
    Project Leads: (PL1, PL2, PL3, PL4, PL5, PL6).
    All project Leads can have permission to edit only their Project (P1, P2, P3) like
    PL1 can edit P1
    PL2 Can edit P2.....
    But my Question is how to restrict PL2 cannot have permission to edit P1
    is it possible to set permission for this through OOTB in SharePoint 2013.
    Any help will be appreciated......

    Hi
    check this similar post
    http://social.technet.microsoft.com/Forums/ro-RO/e1ea3655-0c6f-4b3d-a336-c42e8eb54c09/rights-to-edit-own-items-for-list-residing-on-publishing-site?forum=sharepointdevelopmentprevious
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

Maybe you are looking for

  • Conditional statement in html

    This is actually not a JSP question but an HTML question. I could'nt find any good html forum sites out there, and since I received excellent replies in my previous post, I am hoping that those of you who know JSP also know html. Heres my question, i

  • I used to have films and TV shows on my Itunes account, now they have gone. I bought them as well. How can i get them back?

    I used to have my films and TV shows on my Itunes, they are not there anymorre, Help?

  • Recovery mgr.exe - Application Error

    I have purchased compaq presario CQ61 312TU notebook in 2009 but my windows crashed. I have recovery drive and discs too.As my laptop isn't starting ,i decided to do recovery. After powering on,i press esc,then choosed Boot device option to CD/DVD RO

  • Having problems with streaming audio

    Please Help, I'm Trying to add audio to my site. I've gotten it so that it works with Internet Explorer. It has to work so that there is music on the front page slide show and the galleries. It now works great on IE. However on both Firefox and Safar

  • Google Reader: Mark All as Read?

    I am using Google Reader with Safari on the iPhone www.google.com/reader/m/subscriptions This is an excellent way to keep up with Blogs. I find that when I make changes in Google Reader on the PC with Firefox or IE, the subscriptions change nicely on