jeudi 26 mars 2015

SharePoint paging control always show 1-30 even there are 400 items



On our SP2013 on-premise farm there is a document library contains around 400 items. All these 400 items have individual permission (inheritance are broken).


If I open the libaray with All Site Content > Doc Library, the paging control is working as expected.


On one of page we have insert the Doc Libary as App. On that view the paging control always showing "1-30 >". When user click on ">" the page have changed but the control still show "1-30 >". Hence, user cannot switch to left page and cannot know the total number of items in libaray.


Is it known bug and can I work around it?






Help! Sharepoint library template broken after replacing



I Went in and changed a sharepoint template (*.xsn) which was being used by a document library to create and modify new items.


I thought the safe way would be to rename my new one over the top of the old...but now it won't allow me to create new items or open old ones in the library.


If I try to open an old library item now it attempts to open infopath and then complains about a domain permission level problem.


How do I link it the library all back to the new template correctly?






Is it possible to update a VS deployed app without changing app's URL?



I'm building a SharePoint hosted app which for now I'm deploying from VS. Every time I redeploy the changes, it completely reinstalls the app also changing its URL (the unique identifier part of it) which means I also need to change IIS bindings (my dev box doesn't have a DNS server) and some client side code every time as well.


Is there any way to update the app without changing its URL?






Cannot query SP.UserProfiles.PeopleManager from the App Web via REST



I'm testing REST results in the browser with mixed results.


The following URL returns the expected result:


http://ift.tt/1E7rCte


however the following URL returns an error:


http://ift.tt/1IB3K00


I get the error code -1, Microsoft.SharePoint.Client.ResourceNotFoundException and error message Cannot find resource for the request sp.userprofiles.peoplemanager. Google doesn't offer up much for the errors. Fiddler responds with a 404 result. I've tried leaving the URL unencoded, tried with lower case sp.userprofiles.peoplemanager and getuserprofilepropertyfor with no luck whatsover. I have also tried other methods within sp.userprofiles.peoplemanager. What am I doing wrong?






Field Labels in InfoPath?



Seems like a really simple question but I can't find anything about how to add labels to InfoPath fields?


I just want a text label beside a checkbox for example.


I know I can just type the text in beside the checkbox, but I would prefer to have an assigned label.


Surely this functionality exists?


Thanks






script in powershell to create a list and add a lookup column



Script to create a custom list and add a look up column into it and add the column into a default view. The look up column should have relationship of Restrict delete.






Need to stop Sharepoint from batching separate requests into single correlation id



I have an installation of Sharepoint 2013 which has a site with a custom full-trust Sharepoint solution web part installed on the main page. This custom web part does extension logging within ULS including start and end times of process execution for all of its custom routines. Under light load this web part performs well. The problem is that under moderate load of 50-250 concurrent users this web part experiences slow page loads of around 60 seconds in some cases. The Sharepoint farm is built to spec according to Microsoft’s recommended practices. Within SolarWinds monitoring we see that the Sharepoint farm’s hardware is not being strained. While investigating the problem I was surprised to find within the Sharepoint Web Front End ULS that Sharepoint appears to be batching separate user requests into a single Correlation Id. I can see this because every time I log to ULS within my custom code that I include the user's login id. The sizes of these batches vary. Some may have two separate user requests within them. Others can have up to 7 separate user requests. Furthermore what I see is that within the batch that there is significant delay in between processing of transactions within the batch. In some cases there can be 10 seconds of delay before the next user's transaction within the batch executes. I have analyzed the ULS logs and from what I have seen the custom code transactions typically execute within fractions of seconds. But the delay in between custom code transactions within the correlation id batch cause a lot of delay. How can I stop Sharepoint from batching separate requests in this way? Is there a configuration setting that can be set to stop this behavior?