Get People Picker Field Value from SharePoint List – JSOM

Following is the JSOM code which will help in getting single or multiple items from a SharePoint’s People Picker Field.

function GetPeoplePickerFieldValue(currentListItem, internalFieldName) {
    if (currentListItem.get_item(internalFieldName) !== 'undefined' && currentListItem.get_item(internalFieldName) !== null) {
        if (currentListItem.get_item(internalFieldName).length > 0) {
            var _user = "";
            //If field has only one item
            if (currentListItem.get_item(internalFieldName).length == 1) {
                _user = currentListItem.get_item(internalFieldName)[0].get_lookupValue();
                if (_user == null)
                    _user = "";
            }
            //If field has multiple item
            if (currentListItem.get_item(internalFieldName).length > 1) {
                for (var i = 0; i < currentListItem.get_item(internalFieldName).length; i++) {
                    //Append all User names with a semi colon separator
                    _user = _user + currentListItem.get_item(internalFieldName)[i].get_lookupValue() + "; ";
                }
                _user.trim;
                if (_user == null)
                    _user = "";
            }
        }
        return _user;
    }
}

Source: Microsoft TechNet Forum

Windows 10 – Change Task Bar & Start Menu Accent based on current wallpaper automatically

Windows 10 is awesome and currently one of the feature which I like is, changing the task bar & start menu accent colour based on current wallpaper.

To invoke this, do the following.

  1. Right click on empty desktop
  2. Click “Personalize” menu item
  3. Select “Colours” tab
  4. Enable or toggle on “Automatically pick an accent colour from my background”
  5. Enable or toggle “Show colour on Start, taskbar and action centre”
  6. Optionally you can make Start Menu, taskbar & action centre transparent by toggling the last option.