Changing font color of a column in jqGrid.


Hi,

We had a requirement to change the font color of a particular column in jqGrid. We achieved it in the following manner.

Using the formatter property


The fontColorFormat function


function fontColorFormat(cellvalue, options, rowObject) {
 var color = "blue";
 var cellHtml = "<span style='color:" + color + "' originalValue='" + cellvalue + "'>" + cellvalue + "</span>";
 return cellHtml;
 }

Hope it helps!

Implementing Marking Item as Read functionality for list item in SharePoint 2013.


Hi,

We recently had a requirement where we wanted to mark list item as read when they are opened (DispForm.aspx).

For this we added a Yes/No (checkbox) field to the List.

Opened the DispForm.aspx for editing and added a Content Editor web part there.

Uploaded a text file having following script in one of the document libraries.

</pre>
_spBodyOnLoadFunctionNames.push("updateListItem");

function updateListItem() {

var siteUrl = window.location.protocol + "//" + window.location.host;
 var clientContext = new SP.ClientContext(siteUrl);
 var oList = clientContext.get_web().get_lists().getByTitle('Notifications');

 JSRequest.EnsureSetup();

//Get a query string parameter called Id. i.e - "page.aspx?Id=11" will return 11
 var itemId = JSRequest.QueryString["ID"];
 this.oListItem = oList.getItemById(itemId);
 oListItem.set_item('MarkAsRead', true);
 oListItem.update();

clientContext.executeQueryAsync(
 Function.createDelegate(this, this.onQuerySucceeded),
 Function.createDelegate(this, this.onQueryFailed)
 );
 }

function onQuerySucceeded() {
 alert('Item updated!');
 }

function onQueryFailed(sender, args) {
 alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());
 }
<pre>

And refered that txt file in our content web editor web part.

Hope it helps.

Set AssignedToId for a ListItem using SharePoint 2013 Rest API.


Hi,

Was working on a requirement in which we had to create new listitems of task type and set the Assigned To field in it.

It wasn’t as straight forward as we thought. Finally this is what worked


var fieldUserValues = new Array();
 fieldUserValues.push(userIdForTask);

var item = {
 "__metadata": { "type": eventToSave.TaskTypeName },
 "Title": eventToSave.EventName,
 "StartDate": startDate,
 "DueDate": endDate,
 "Body" : eventToSave.Description,
 "Priority": eventToSave.TaskPriority,
 'AssignedToId': { "results": fieldUserValues },
 };
 executor.executeAsync(
 {
 url: appweburl + "/_api/SP.AppContextSite(@target)/web/lists/getbytitle('" + eventToSave.TaskName + "')/items?@target='" + hostweburl + "'",
 method: "POST",
 headers: {
 "accept": "application/json;odata=verbose",
 "content-type": "application/json;odata=verbose",
 "X-RequestDigest": $("#__REQUESTDIGEST").val()

 },
 body: JSON.stringify(item),
 success: function (data) { succeededInsert(data); },
 error: failedInsert
 }
 );

Hope it helps.

Manage New Icon Indicator for list items (DaysToShowNewIndicator) in SharePoint.


Hi,

Was looking into how long the new icon appears for a newly created list items in SharePoint.

The default is 2 days.

And this is configurable through DaysToShowNewIndicator property.

Powershell

http://www.deliveron.com/blog/post/Change-Settings-for-e2809cNewe2809d-Icon-in-SharePoint-2010-using-PowerShell.aspx

STSADM

http://technet.microsoft.com/en-us/library/cc287681(v=office.12).aspx

Programmatically

http://code-journey.com/2009/change-how-long-a-listitem-is-considered-a-new-item-setpropery-daystoshownewindicator/

Hope it helps.

Dynamics CRM 2013 Links


Donna Edwards's avatarDonna Edwards

The long awaited Dynamics CRM 2013 product is available Online and for OnPremise installations.  Microsoft did a great job with the product and I’m sure you’ll appreciate the many improvements and additions to the product.  Here are the links:

Microsoft Dynamics CRM Server 2013 (Online)

Microsoft Dynamics CRM Server 2013 (OnPremise)

Microsoft Dynamics CRM 2013 for Microsoft Office Outlook (Outlook Client)

Check out my Microsoft Curah article for the latest download updates.

In addition Microsoft Dynamics CRM 2011 Update Rollup 15 is also available.   As with any update rollup, read through the list of fixed items and determine if any address issues you are experiencing.  Install the Update Rollup in a development environment first, test it for a couple of weeks and then roll it into production.

Cheers

View original post

An object of the type Microsoft.SharePoint.Administration.SPWindowsServiceCredentialDeploymentJobDefinition named “windows-service-credentials-FIMSynchronizationService” already exists under the parent Microsoft.Office.Server.Administration.ProfileSynchronizationService named “FIMSynchronizationService”. Rename your object or delete the existing object in SharePoint 2013


Hi,

Got the below error while trying to change the Service Account for User Profile Service Application.

As the error suggests we need to delete the existing job definition to resolve this issue.

Open Central Administration à Monitoring

Select the service

Delete it

Now if we try changing the Service Account associated to the User Profile Synchronization Service it will work properly.

Hope it helps.