As the title suggests, this is a quick example on how to read user details from users in a SharePoint site’s group. Note that the group name must be adjusted within the code to the one you are requesting. To run this script quickly you can just place a Script Editor part on your page and wrap the code in script tags.
A big thanks to Phil Harding who posted an Article explaining how a property bag can actually be indexed as part of the SharePoint Search Service. While Phil provided the core of the implementation I just wanted to show the code needed to run his snippet. Be sure to set the username, url, and password as indicated within the code to your specific environment.
GUID with braces i.e. {751902c2-6302-45cf-bd64-b7849cdf0998} 38 Characters GUID without braces i.e. 751902c2-6302-45cf-bd64-b7849cdf0998 36 Characters GUID without dashes i.e. 751902c2630245cfbd64b7849cdf0998 32 Characters GUID Section Lengths Represented as character counts 8-4-4-4-12
During my time developing a import/export MMS script for a client I came across a very detailed and informative error: Failed to read from or write to database. Refresh and try again. If the problem persists, please contact the administrator After I finished rolling my eyes I started with permissions. I checked the application service permissions, made sure I was running my code with administrative rights, checked the database owners....
Not long ago I was working away with the term store though Powershell. I had to remove all of a particular group’s termsets and to do this I ended up calling the Group’s delete function. It appeared to work just fine, until I later found that I was unable to import terms with GUID’s used previously. This is somewhat of a common problem that developers will come across if they...
While further developing an iOS app, one of the issues I had was the fact that I needed a view containing several components to be scalable by the user. There are a few approaches. We all know about auto-layout, and the older springs and struts approach. But these will not always work, or may not be a good fit. This article is geared towards a scaling approach provided you know...
This article covers how to give View Controllers managed by a Page View Controller the ability to know when they are being ‘left’ or ‘entered’ by the page controller. Protocol To start off I made PageVieWTransitionCallback.h to create a protocol: #import <Foundation/Foundation.h> Implement protocol as above in your view controllers With that done implement this within any view controllers that you will be using in the page view controller that...
I had no trouble finding code elsewhere to use UIPageViewController’s however I found that there was little for paging through actual view controllers. On top of that, the examples that did exist had a lot of added on code instead of the barebones approach which I prefer. While not a tutorial this is more of a dump of my barebones controller some added description. This code uses iOS 8 however...
A common issue: parsing user input that may need to be recognized as a number in code. This is done relatively easily using NSScanner and will not cause a crash should invalid data be entered, leaving a way to easily alert a user of the problem. By Example To understand how this works I’ve posted an example of how one would validate a GPS coordinate (comprises of two doubles, latitude and...
While working with SharePoint 2013’s modal dialog there were a few cases where the dialog lost its scroll bar position and jumped back to the top whenever a resize ocurred. For those who may have stumbled here looking for the resize code it begins as follows: If the user has scrolled down to activate a part of the form that may expand its always handy to try to get the...