New answers tagged

2

Most often there are no IDs. And hardcoding IDs (generated by SharePoint) in CSS rules will get you in trouble sometime in the future. When you add,(re)move other WebParts the IDs can change. Learn how to use CSS selectors to target with metadata used in other attributes. http://www.w3schools.com/cssref/css_selectors.asp Although not perfect, the ...


1

Inspect the webpart after it has rendered on the page. Look for it's element ID, then use that to apply styles. Afterwards you will be able to drop css onto the page to alter it: <style> #RenderedWebpartID { /* css attributes here */ } </style>


-1

try following it worked for me: $('div[title="People Picker"]').attr("contenteditable", false);


1

As Wjervis mention, features that are new in SharePoint 2016 On premise has been and are being deployed and you might be using them right now. However, Microsoft pushes out new features to servers, not tenants so there is no guarantee that you have access to anything new yet. And there is always a chance that features that will make it to on premise won't ...


0

You mentioned that you have indexed the columns, but it still sounds to me like an indexing issue. I would double check that column you are filtering on is indeed indexed. From this article: The threshold limit error message shown above could even pop-up when attempting to load items from a view that doesn’t even display more than 5000 items. How ...


1

Filters aren't true security as you note. You could add folders to the list and secure the folders, then only the users who have access to the folders would see the information below. Item level permission performance scales horribly and is a pain to maintain.


0

If you're hosting your own page as a form, you could use the REST-API from the server. This would enable you to use a techical user to access SharePoint. REST-APIs are usable from any language (PHP, Java, etc.) If you're hosting your own page as a form on an asp.net-enabled server you could also use CSOM. Again, this would enable you to use a techical user ...


0

Solution was to save the file as xlsx, not xls. apparently old xls extension can not be shown in excel web access!


1

By web form if you are referring to a .Net page, you could use CSOM to connect to your site and create a new list item. MSDN article on CSOM Another great idea would be to use REST API if you cannot have managed code. Research a bit and you will be able to make a choice.


0

That one looks to fit your exact requirements: http://spjsblog.com/2010/02/18/hit-counter-for-sharepoint/. It looks from the description you can differenciate pages by the ID of the "post" item (second parameter of hitCounter: isDispForm). It's based on JavaScript files to store in a doc lib of your blog site, and a list to create in the blog site as well. ...


1

Web Analytics will give you numbers very easily. http://blogs.msdn.com/b/ecm/archive/2010/03/21/introducing-web-analytics-in-sharepoint-2010.aspx For the identity of users you could try using auditing, that will let you see who's accessing the site. Other than auditing you'd need to look at custom code of some sort that runs when a web-part is rendered. ...


0

My Suggestion would be like, Take custom ribbon button ID using F12 developer tools and the button click call the JavaScript function to set the field item. like button id "Ribbon.Library.Share.Button Name" $("#buttonID").click(function() { //Enter the update the field function }); and also try this below link, ...


1

I figured it out! The Body text had been changed from Rich HTML text field to a Plain text field. Changing this back to Rich HTML fixed the problem. I'm not entirely sure why, but I suspect it is because the Reply field and Body text are linked in some way. I cannot see if it is possible to make the Reply field plain text as well; I imagine this would ...


1

GUIDs are globally unique. You should never find two things with the same GUID in any system anywhere. A programmer has made a mistake if you do. So to answer your question - no, List Item GUIDs are not list dependent.


0

I just had the same problem and i solved it by changing the view. As the discussion has sort of 2 levels. Modify the view from where you'd like to go to the issue and then: Got the "folders" section and change the view to top-level If you have show view in all folders, then you almost never find your way back to actually answering to a post.. I actually ...


0

I have found an example here that is copying files between libraries: var context = SP.ClientContext.get_current(); SP.MoveCopyUtil.copyFile(context,"http://sp2016/sitepages/home.aspx","http://sp2016/sitepages/home1.aspx"); context.executeQueryAsync(function(){},function(){}); It claims to copy the metadata as well.


0

Setting IsPathRendered property on the field is one of the solutions. However this will affect not only values returned in CSOM, but also how the field is rendered on forms and list views. You can set this property on newly created field this way: using (var context = new ClientContext("http://contoso.com")) { var web = context.Web; var list = ...


2

There's no difference. What you see is the icon for the calendar from SharePoint 2010, and the second is for 2013. While migrating a 2010 farm to 2013, the icons are not updated. While it can be annoying to have the old icons, there is no impact to the functionality.


1

Enterprise keywords, as defined by the platform, is not a site collection specific feature. All site collections in a web application (or tenant in your case) would share the same enterprise keywords. In addition, the native Enterprise Keyword field, as you noticed, uses a searching/suggestion behavior to help users find terms -- you cannot pick the ...


0

When you add a folder in SharePoint using the Web UI, it actually adds two things: the folder and a list item. It's the list item that shows up in the List View. Also, there are two names. The name of the list item and the name of the folder. You set the name of the list item by setting the Title field value and you set the name of the folder by setting the ...


0

If your problem really is with DNS, you might try adding an entry to the hosts file (c:\windows\system32\drivers\etc\hosts) on your SharePoint machine, and add an entry like this: 192.168.101.4 spapps.contoso.com Where you replace 192.168.101.4 with the actual IP of your remote web. If by "We do not have any dns entry registered for the http url", you ...


0

Skills comes from the People Profile. Try using the Managed Property "Skills" which is mapped to People:SPS-Skills. "ows_" is a list column prefix.


0

You need to take the current value of the status column and add your new line to it. You can concatenate in SharePoint Designer workflows using the String Builder dialog Your workflow will have something like these activities: Set WorkflowVariable1 to Current Item:StatusColumn Set WorkflowVariable2 to [%Variable: WorkflowVariable1%] "New Status Update ...


0

try to using this fuction, all your code will be execute after loading < !--#_ AddPostRenderCallback(ctx, function(){ }); _#-- > sorry for my last response, i was not read good


3

It's still weird that $orderby does not work with Likes and Calculated Type columns. So now can do following things. Sort them in client side Ignore $orderby from url var uri= appweburl + "/_api/SP.AppContextSite(@target)/web/Lists/GetByTitle('listName')/items?$select=LikedBy/Title,LikedBy/ID,Title,Id,LikesCount&$expand=LikedBy&$filter=" + ...


3

No. Removing a user will not remove their files they created on SharePoint sites that are not their OneDrive. Eventually, after 30 days, their person site , which contains their OneDrive, will be purged. In addition to the article mentioned earlier, see also this article: https://support.microsoft.com/en-us/kb/2619308


2

Apparently they are purged after 30 days. See https://support.microsoft.com/en-ca/kb/3042522 for some background and useful information. Cheers


2

You can apply some conditional filtering like following: var filter = ""; if (statusFilter) { filter += "status eq '" + statusFilter + "'"; } if (!statusFilter) { filter += "status ne 'Rejected'"; } if (categoryFilter) { filter += "and category eq '" + categoryFilter + "'"; }


2

It looks like the query is working as it should. Your selector looks off. Try Item.AssignedTo.results.FirstName


-1

Instead of Url try Link property $NavigationNode.Link = $ItemUrlPath


0

You will have to add a column to your list view, then choose Type as Date and Time and put the default value as Today's Date. You create a new column under views in Library settings.


2

Create One Calculated type column and set data return formula type to Number and apply this formula: ="<img src='/_layouts/images/blank.gif' onload=""{"&" var day=new Date();"&" this.parentNode.innerHTML= day ;"&"}"">" You will current date and time. UPDATE For only Date try below formula: ="<img src='/_layouts/images/blank.gif' ...


0

You create the column as you'd like, and set the default value to Todays Date.


0

I would be reluctant to create a public website on SharePoint especially now that Microsoft has confirmed that they are dropping public website feature from SharePoint online. https://support.microsoft.com/en-gb/kb/3027254. If you decide to go with SharePoint online you will need development skills. Alternatively you can consider ASP.NET Open Source ...


0

You can migrate data from Lists using: Write C# console app to get data from one list and store it on another Use Internet Explorer and open those lists in quick edit mode, you can copy data (from IE you can select multiple rows and columns in list) from 1st list and paste it in 2nd list in quick edit mode.


0

Found the issue here. List-B event receiver is always fired but was throwing an access denied exception when running in context of provider hosted app (it was trying to do more than what app permissions allowed). Due to this it didn't do the intended work and it looked like it was not fired. Since it is sponline, I couldn't debug the sandbox code. Added ...


2

For a managed metadata field there are usually two fields. One holding the complete (term) information including the id's etc. And one with only the 'text value'. Look if you have a managed property called ows_SPShSkills (without the 'taxid'). And use that field as a refiner. It will hold the textual value of the managed metadata. If that managed property ...


0

Access http://Your SharePoint Site/_layouts/15/people.aspx?MembershipGroupId=0, and check whether username of the problematic accounts are listed there. If not add the user and try again.


0

SharePoint Server 2013 has a great functionality to track which users have taken what actions in your site collection. Follow the above references to get in detailed. Also check this similar thread having some good suggestions to accomplish this task.


1

Site Usage/Analytics SharePoint captures certain site metrics, such as the most popular pages and destinations, but it has limited granularity. Refer to Microsoft's documentation: Reporting and Usage Analysis Overview (SharePoint 2010) Audit Settings A more in-depth option would be to enable auditing on your site such that page and document views are ...


0

While on the edit form, click on the cog and then edit page. Now add a script editor webpart. You should be able to use jquery selectors to add a new button wherever you want. As far as changing the value in the OOTB field when they click your button, it really depends on what field type you're talking about. You can probably just use another jquery ...


1

It's quite simple actually. You need to open the list/document library in SharePoint designer, and on the right hand side you will find a group of files titled "Forms". Create a new edit form or a new item form as per your requirement. The designer will generate a new aspx file which you would be able to edit, and place your button wherever you need. To set ...


2

I haven't done this but based on my discussions with people I respect in the community I think Azure WebJobs are the way to go. Here are a couple resources that will help you get started. SharePoint Timer Jobs running as Windows Azure Web Jobs Getting Started with building Azure WebJobs ("Timer Jobs") for your Office 365 sites


2

Arf, that's exactly why I 100% prefer on-prem SharePoint! In your situation, in all cases, you'll have to setup and maintain another server. Your options are: Create a Windows Service hosted on a third-part server. You can write in C# and leverage the client-side .NET API of SharePoint. Create a Console application, still hosted on a third-part server. ...


1

I see that you use SharePoint online. So It's possible, but you don't set it at library level. Instead it should be set at site collection level. Just go to Site Collection Administration - > Site collection audit settings and select interesting events for you. After that you can generate report with Site Collection Administration - > Audit log reports


1

One option could be to use Excel charts/graph and publish it on SharePoint Online with Excel Services. Check the links below: http://www.dummies.com/how-to/content/how-to-use-sharepoint-online-excel-services.html https://support.office.com/en-us/article/BI-capabilities-in-Excel-and-Office-365-26c0548e-124c-4fd3-aab3-5f64568cb743


1

If you enable the audit logging on your site collection level then you can track it. You can use the audit feature of Microsoft SharePoint Server 2010 to track which users have taken what actions on the sites, content types, lists, libraries, list items, and library files of site collections If not, enable it now so you will get future ...


-2

NO You Cant Track. Not Possible. However You can see who last modified it.. but that will not be necessarily a permission modification.


1

For client side stuff I came up with the following check: if (typeof O365 === "undefined"){ // I'm executing in the context of SharePoint on-prem. } else{ // I'm executing in the context of SharePoint Online. }


1

IMO, the fastest would be to get all responses for a given QuestionId: In both cases, you'll have to retrieve all items for the QuestionId. The total number of items is the same in both cases. So the traffic on the network will finaly be the same, as well as the the memory consumption. However, in the latter case (get all items and do the loop yourself): ...



Top 50 recent answers are included