Showing posts with label sharepoint 2013. Show all posts
Showing posts with label sharepoint 2013. Show all posts

Tuesday, May 22, 2018

Customize a SharePoint List Form with a Web Part

Customize a list form by adding a web part


The forms are contained in web part pages, and you cannot customize the existing web parts at all. What you can do is add another web part, and Peter recommends the Content Editor web part. You can embed code and add tables, links, pictures, videos or another web part to the Content Editor web part. 

  • Click on the button Form Web Parts under the LIST tab in the ribbon.
  • Select one of the options, depending on which form you wish to customize.
  • Click on Add a Web Part.
  • Add the Content Editor web part in the Media & Content category.
  • Click on "Click here to add content" and add the content you wish to add from the options under the ribbon tabs.
  • Edit the web part and set the Chrome Type to None to avoid having the Content Editor caption on the web part.
  • Click on the Stop Editing button.
  • Customize list forms

Wednesday, February 14, 2018

SharePoint mobile app—your intranet in your pocket

The intranet is the nerve center of many organizations. It provides content-centric collaborative spaces that give teams the resources they need to work together. It lets users consume and contribute news and information within their teams and across the organization. It manages knowledge and connects users to content through navigation and search. It hosts applications that support and automate business processes.
SharePoint is now making your intranet more accessible on the go, more intelligent, and more personalized, based on your activities across sites, the people you work with, the content you work on and the business processes you drive.
We’re thrilled to announce the SharePoint mobile app, designed for Windows, iOS and Android, to put your intranet in your pocket, with full-fidelity access to company news and announcements, people, sites, content and apps—no matter where you are. And the app will incorporate your on-premises SharePoint sites, as well.
The new SharePoint mobile app helps you keep your work moving forward by providing quick access to your team sites, organization portals and resources, and even a view into what the people you work with are working on. And this new app is infused with the intelligence of the Microsoft Graph, which applies machine learning to activity in Office 365 to connect you to the relevant documents and people around you. The SharePoint mobile app works with SharePoint Online in Office 365, SharePoint Server (2013 and 2016) on-premises and your hybrid environment. Once you launch the app on your iPhone, you’ll be prompted to sign in with your SharePoint credentials. The SharePoint mobile app lets you easily switch between accounts.
The Sites tab takes you to a list of the sites you visit frequently and sites you’re following. Click on a site to see recent activity, recent files and the site’s assets (documents, lists, subsites, pages and more). You can also share the site. When you click to a team site, you immediately see how the SharePoint mobile app natively renders the site elements quickly and beautifully.
The SharePoint mobile app also links to other Office apps. For example, when you click an Office document in the Recent files pivot, it will take you directly into the corresponding Office mobile app. Similarly, when you access a SharePoint document library within a team site, you will be taken into the OneDrive mobile app for iOS to view, share, discover and manage files stored across Office 365. Learn more how the two apps work together.

The People tab
 gives you visibility into what the people you work with are working on. Find and browse colleagues in your network. Tap on an individual to see their contact card and discover what they are working on and who they are working with based on intelligence powered by Office 365.
The Links tab takes you to sites and portals programmed for everyone in your company to see. These are curated by your SharePoint admin(s) from the SharePoint home in Office 365. And if you have invested in responsive, mobile-designed portals, they will shine through in the app. Microsoft, too, is investing in responsive design as a top priority to ensure all new experiences (like the SharePoint home in Office 365, Microsoft Delve and Office 365 Video) are mobile and responsive by default.

SearchThe SharePoint mobile app provides search throughout with clean results—filtered by sites, files and people. When you perform a search in the SharePoint mobile app, you are connecting through full enterprise search, so you can find content and people from across your intranet, SharePoint team sites, company portals and the OneDrive for Business folders you have access to, including content recommendations powered by the Microsoft Graph.

What’s next

The SharePoint mobile app for iOS is just a first step on the SharePoint mobile journey, and we are excited to continue to build on what we’ve started. We’ll continue delivering enhancements to the app, such as support of cross-company news and announcements, coming later this year. We are also working on Android and Windows Universal versions, which we expect to release before the end of this year.

Saturday, October 28, 2017

Different Ways To Add Item In SharePoint 2013 List

Out-of-box- Add an item to a list:

  1. Navigate to the site containing the list for which you want to add an item.
  2. Select Settings > Site contents and then in the appropriate list section, select the name of the list.
  3. Select the Items tab, and then in the New group select New Item.
  4. Select Save.
Using C#(server object model): Add Item programmatically to SharePoint List using C#.
  1. //Step to Add new list item programmatically to SharePoint List using C#  
  2. using(SPSite site = new SPSite(SPContext.Current.Site.Url))  
  3. {  
  4.     Using(SPWeb web = site.OpenWeb())  
  5.     {  
  6.         SPList list = web.Lists["DemoList"];  
  7.         SPListItem item = list.Items.Add();  
  8.         item["Title"] = "using C# :Add new list item programmatically";  
  9.         item.Update();  
  10.     }  
  11. }  
Using C#(Client object model): Add Item Programmatically to SharePoint List using CSOM.
  1. using System;  
  2. using System.Collections.Generic;  
  3. using System.Linq;  
  4. using System.Text;  
  5. using Microsoft.SharePoint;  
  6. using Microsoft.SharePoint.Client;  
  7. namespace CreateListItem  
  8. {  
  9.     class Program  
  10.     {  
  11.         static void Main(string[] args)  
  12.         {  
  13.             string siteUrl = "http://servername:2525/";  
  14.             ClientContext clientContext = new ClientContext(siteUrl);  
  15.             List oList = clientContext.Web.Lists.GetByTitle("DemoList");  
  16.             ListItemCreationInformation listCreationInformation = new ListItemCreationInformation();  
  17.             ListItem oListItem = oList.AddItem(listCreationInformation);  
  18.             oListItem["Title"] = "Add item in SharePoint List using CSOM";  
  19.             oListItem.Update();  
  20.             clientContext.ExecuteQuery();  
  21.         }  
  22.     }  
  23. }  
SharePoint Web Services (jQuery): Add a new item list. The jQuery Ajax function is used to POST the data to the Lists.asmx web service.
  1.   
SharePoint REST API: SharePoint REST API and JQuery to Create SharePoint list item.

Reference to latest jquery.min.js.

  1.   
SharePoint PowerShell: Adding list items using PowerShell SharePoint.
  1. #Add SharePoint PowerShell Snapin which adds SharePoint specific cmdlets  
  2. Add-PSSnapin Microsoft.SharePoint.PowerShell -EA SilentlyContinue  
  3.  
  4. #Variables that we are going to use for list editing  
  5. $webURL = "http://yoursiteName"  
  6. $listName = "Demo List"  
  7.  
  8. #Get the SPWeb object and save it to a variable  
  9. $web = Get-SPWeb $webURL  
  10.  
  11. #Get the SPList object to retrieve the "Demo List"  
  12. $list = $web.Lists[$listName]  
  13. #Create a new item  
  14. $newItem = $list.Items.Add()  
  15.  
  16. #Add properties to this list item  
  17. $newItem["Title"] = "Add item in sharepoint List Using SharePoint PowerShell"  
  18.  
  19. #Update the object so it gets saved to the list  
  20. $newItem.Update()  
Final result shows all the Added Items:

Demolist

Welcome to SharePoint Server 2019, a modern platform for choice and flexibility

“Without continual growth and progress, such words as improvement, achievement, and success have no meaning.” Benjamin Franklin Thi...