Menu
Cutty
  • Chryslers
  • Lutherie
  • YLSNED
  • About
Cutty

Category: You Learn Something New Every Day

Proof that you do actually learn something new every day.

Page Layout drop down shows no layouts in Sharepoint 2010

Posted on September 26, 2014February 18, 2015 by Iain 'Cutty' Carlin

When trying to change a page layout, was seeing nothing.

Using browser developer tools I was seeing a javascript error, which with a bit of searching led me to this article: http://johnliu.net/blog/2010/12/22/sharepoint-2010-quick-fix-for-ribbon-page-layout-switch-java.html which solved the problem.

(Basically there are page layouts that are broken and cause the drop down not to display, removing non-used layouts fixes the problem).…

+

ylsned goes missing. Is cloud really the way to go?

Posted on June 26, 2014February 19, 2015 by Iain 'Cutty' Carlin

Interesting, I came to post something on this blog this week, and found it inoperative.

Investigation revealed that all the data for it and my other blog had disappeared off the server. Now, either I’ve been hacked or my hosting provider has deleted my data for some reason.

Unfortunately I didn’t have a backup of everything from the last couple of years (I could go back to 2011) and when I checked with the host they wanted to charge to restore my data.

So, lesson learned, I need to make sure I keep better backups of everything on my site locally.…

+

Infopath form – drop down field not updating with new values

Posted on May 11, 2013February 19, 2015 by Iain 'Cutty' Carlin

This one had me stumped for days. Infopath form with drop down field populated by internal values in the drop-down.

I needed to add one option, which I did and uploaded the form. I could see the version number updating on the form (I display that as a field) but the drop-down wouldn’t change!

Turns out I had a read-only and updatable versions of the form. The read-only version is displayed after the form has been submitted. I was editing the read-only version not the editable one that gets filled in. Doh!…

+

Setting AssociatedMembersGroup using Client Object Model

Posted on May 5, 2013February 20, 2015 by Iain 'Cutty' Carlin

I had some code that set the AssociatedMembersGroup in SharePoint using the Client Object Model. For whatever reason (possibly a CU recently installed), the code below no longer works:

ClientContext lClientContext = new ClientContext(vSiteURL);
lClientContext.Credentials = new NetworkCredential(Utils.APP_USERNAME, Utils.APP_PASSWORD, Utils.APP_DOMAIN);
Web lWeb = lClientContext.Web;

lClientContext.Load(lWeb, website => website.AssociatedMemberGroup, website => website.SiteGroups);
lClientContext.ExecuteQuery();

foreach (Group lGroup in lWeb.SiteGroups)
{
if (lGroup.Title == vGroupName)
{
lWeb.AssociatedMemberGroup = lGroup;
lWeb.Update();
lClientContext.ExecuteQuery();
break;
}
}

I had to change to doing this inside my create group method:

 ClientContext lClientContext = new ClientContext(vSiteURL);
lClientContext.Credentials = new NetworkCredential(Utils.APP_USERNAME, Utils.APP_PASSWORD, Utils.APP_DOMAIN);
Web lWeb = lClientContext.Web;

GroupCreationInformation lGroupDef = new GroupCreationInformation();
lGroupDef.Title
…
+

Controlling the parallel port using Ubuntu, Mono and C#

Posted on December 12, 2012February 19, 2015 by Iain 'Cutty' Carlin

I have an old PC that I use to control my christmas lights. They are driven by an electronic box that I build that plugs into the parallel port which then drives 8 outputs to switch them on or off.

I had written a C++ program that I was previously running on an old Dos box, but the machine this year. I opted to use a slightly newer spare machine and to run Ubuntu on it. I was keen to use Mono to learn a bit about it (as I program in C#.Net on Windows for a living).

Unfortunately there’s no libraries in C# for accessing parallel ports (at least not that I could find).…

+

SSIS Text File Data Source Quote Delimiter

Posted on June 16, 2012February 19, 2015 by Iain 'Cutty' Carlin

I have an SSIS package that imports data from various comma-delimited text files that use quotes as the text delimiter.

The package works fine on my local machine, however when I deploy it to the server, the quote delimiter is ignored and all my data contains the quotes around the text. Worse, integer fields fail to convert as to SSIS it looks like the field is a string (“1”) rather than an integer (1).

Turns out that because the filenames of the text files are specified at runtime (they come from a variable in the database), the text delimiter field in the text file connection is also ignored.…

+

Setting timezone for appointment using EWS

Posted on April 4, 2011February 18, 2015 by Iain 'Cutty' Carlin

I had an issue with creating appointments in Exchange using EWS. The appointment would create fine, the time would be correct, but the Time Zone set would be Monrovia, Rekiyavik (UMT).

After much searching on the internet, I finally found this article: http://msdn.microsoft.com/en-us/library/cc500306.aspx from which I used the helper method and the following code in my method that calls the EWS appointment creation code (sorry it’s VB but it is old code):

Dim lLocalTimeZone As New TimeZoneType() 
lLocalTimeZone.BaseOffset = TimeSpanToXSDuration(TimeZone.CurrentTimeZone.GetUtcOffset(vStartTime))

If vStartTime.IsDaylightSavingTime Then 
    lLocalTimeZone.TimeZoneName = TimeZone.CurrentTimeZone.DaylightName 
Else 
    lLocalTimeZone.TimeZoneName = TimeZone.CurrentTimeZone.StandardName 
End If

appointment.MeetingTimeZone = lLocalTimeZone

Now both the time and the time zone are correctly set.…

+

Lock request timeout period exceeded

Posted on March 29, 2011February 19, 2015 by Iain 'Cutty' Carlin

Our SharePoint database server ran out of disk space. In addition to causing the obvious problems, we were also seeing this message in the SharePoint front end server logs:

Failure trying to synch web application ddbd3051-0aa4-4db5-8197-e450a718dede, ContentDB 7393dd21-a0fe-42f6-8d6b-b87c8ce31496 Exception message was System.Data.SqlClient.SqlException: Lock request time out period exceeded.

Turns out that the cache was out of sync, which was resolved by following this kb article:
http://support.microsoft.com/kb/939308…

+

SharePoint 2010 ribbon buttons not working.

Posted on February 22, 2011February 20, 2015 by Iain 'Cutty' Carlin

Had one user of our SharePoint intranet unable to access the Edit Page (or indeed any other Ribbon toolbar buttons). The button was there and available but clicking it had no effect.

Turns out there is an issue with DivX Plus Web Player HTML5 add-on for IE because it interferes with JSON call-backs – which I gather the Ribbon bar is using.

Disabled the Add-on and ribbon menus are working again.…

+

Infopath 2010 getuserprofilebyname and field values changing when loading existing form.

Posted on February 8, 2011February 18, 2015 by Iain 'Cutty' Carlin

In InfoPath 2007, I created several forms that load the user’s contact details into fields using the getuserprofilebyname service.

When we upgraded to SharePoint 2010 the forms still worked, but the user details were being changed every time the form loaded.

Turns out that the “Refresh value when formula is recalculated” setting does something different in 2010 compared with 2007.

Turning the setting on in 2010 causes the formula to recalculate every time the form opens and then overwrite whatever was already saved. So I have had to go to every form and uncheck the value on that field to get them all to work.…

+
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • Next

Recent Posts

  • 2024 was the best year for our solar system
  • Books I read in 2024
  • Books I read in 2023
  • Happy New Year 2024
  • Lawson – A life in words and music

Categories

  • Chryslers (1)
  • Cutty's Blog (12)
  • Lutherie (38)
  • You Learn Something New Every Day (43)
©2025 Cutty | Powered by Superb Themes