Updating the Item Properties Displayed on a Nintex Workflow Task

TechRhodes

By default, certain Nintex workflow task forms include an Item Properties panel that displays all the metadata and certain SharePoint columns for an item in a list/library . Since there could be a long list of columns, you can actually limit the columns that are displayed in the Item Properties panel. Here are the steps:

  1. Go to the list/library that the workflow applies to.
  2. Open and modify the “Workflow Task View”. If that view does not exist, then create it with that exact name.
  3. Add or remove the desired column fields, then click OK to finish.
  4. The Item Properties panel on workflow tasks for that specific list/library will now display the column fields in the Workflow Task View.
  5. Notes:
    • The “Workflow Status” column will always be the first item in the Item Properties panel.
    • Any list/library view has to have at least one column in the view, so the…

View original post 10 more words

Advertisements

SharePoint 2013 Visual WebPart .g.cs files not being generated /Updated by Visual Studio 2012

Sharepoint Developer Blog

1.Navigate Visual Webpart.

2. Right Click on VisualWebPart1UserControl.ascx file and click on  Properties.

3.if  VisualWebPart1UserControl.g.cs is present then delete it first.

4.Go To Custom Tool Text box on properties window and  type “SharePointWebPartCodeGenerator” keyword and press enter. then it

automatically generate background file forcefully(VisualWebPart1UserControl.g.cs).

customeTool

View original post

When setting the MySiteHostUrl I get a UserProfileApplicationNotAvailableException

Bram de Jager talking Office 365, SharePoint and Azure

When I’m trying to set the MySiteHostUrl via PowerShell it throws an error. Taking a closer look it seems after initializing the UserProfileManager class an UserProfileApplicationNotAvailableException is raised.

The exception you receive is

New-Object : Exception calling “.ctor” with “1” argument(s): “UserProfileApplicationNotAvailableException_Logging :: UserProfileApplicationProxy.ApplicationProperties ProfilePropertyCache does not have 458839b6-4979-413a-a7a3-41d8564faea3”

The PowerShell script I’m using is retrieving the current context and initializing the UserProfileManager object. This should provide me access to the MySiteHostUrl.

Add-PSSnapin Microsoft.SharePoint.PowerShell -ea $site= Get-SPSite “http://my.contoso.com” $context= Get-SPServiceContext($site) $upm= New-Object -TypeName Microsoft.Office.Server.UserProfiles.UserProfileManager -ArgumentList $context$upm.MySiteHostURL = “http://my.contoso.com”

The solution to this is providing the account running the PowerShell script sharing permissions “Full Control” on the User Profile Service Application.

  • Open Central Administration
  • Click Service Applications
  • Select “User Profile Service Application”
  • Click in ribbon the Permissions button
  • Add…

View original post 21 more words

Change order of user profile properties in SharePoint 2013 with Powershell

Radu Tut

Management of user profile properties in SharePoint CA user interface is easy and intuitive, but when it comes to changing the display order of user profile properties, this becomes a difficult and frustrating task (and it has been like this since 2007). Powershell scripting proves again very handy.

You can find several other blog posts on this topic, but all I have found use the obsolete SharePoint API (2007) to do this.

First of all we need a PS script to list the current order of user profile properties.

Next step would be to set up a configuration xml file, that lets us define what properties we want to change. The following config sample will change the display order of two user profile properties.

The final step, the PS script that makes the changes. The function for update requires two input parameters: a config file path, and the my site url.

View original post 116 more words

ASP.NET MVC5 and DataTables

Thanks to Stack Overflow

http://stackoverflow.com/questions/28442960/asp-net-mvc5-and-datatables-for-a-beginner-what-goes-where

http://stackoverflow.com/questions/22546986/mvc-jquery-datatables-unable-to-get-property-classname-of-undefined-or-null-re

In BundleConfig.cs I added the following lines:

        bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                    "~/Scripts/jquery-1.10.2.min.js"));

        bundles.Add(new ScriptBundle("~/bundles/datatables").Include(
                    "~/Scripts/jquery.dataTables.js"));

In _Layout.cshtml I added the following to the head tag:

<link href="~/Content/jquery.dataTables.css" rel="stylesheet" type="text/css"/>
<link href="~/Content/jquery.dataTables_themeroller.css" rel="stylesheet" type="text/css" />
http://~/Scripts/jquery-1.10.2.min.js
http://~/Scripts/jquery.dataTables.js

Finally, at the bottom of Index.cshtml is the call to the script:


    $(document).ready( function () {
        $('#products').DataTable();
    } );
For DataTables to work, the <thead> is compulsory and <tbody> is optional. When you are going to add the <thead> tag, its better to add the <tbody> tag also