RE: [SP2010]External Data column cannot be edited in datasheet view in sharepoint 2010

2011-10-19 Thread ken zheng
thanks Paul. From: ptur...@smsmt.com To: ozmoss@ozmoss.com Date: Thu, 20 Oct 2011 15:00:58 +1100 Subject: RE: [SP2010]External Data column cannot be edited in datasheet viewin sharepoint 2010 I am sure I saw it in a MSDN article.. but can’t find it… here is an alternate s

SP2010 Page layouts - RichImageField

2011-10-19 Thread Nigel Hertz
Hi all I'm creating a page layout for news articles in our 2010 dev environment. On the page, I have a "Page image" field (PublishingWebControls:RichImageField) into which I want to add an image. I've got a new page, using the above page layout. When editing it, I can click the 'Click here to

RE: [SP2010]External Data column cannot be edited in datasheet view in sharepoint 2010

2011-10-19 Thread Paul Turner
I am sure I saw it in a MSDN article.. but can't find it... here is an alternate source: http://www.sharepointanalysthq.com/2010/07/bcs-external-list-limitations/ So the bottom line is "no"... if you have access to the original data source (SQL or something), you could try to update it there.

[SP2010]External Data column cannot be edited in datasheet view in sharepoint 2010

2011-10-19 Thread ken zheng
Hi Guys, I have a list that has a couple of columns are extenral data. when editing individual item, you can edit it without problem. but if I switch to a datasheet view, you cann't edit them. the errors are "Teh Selected cells are read-only". So is that true you cannot edit the External D

RE: Check null or empty on it field

2011-10-19 Thread Paul Noone
Thanks for all the different methods! I’ve had no luck with the non-coalescing or ternary operators. Checking for null value simply doesn’t seem to cut it. Finally cracked it with Salaman’s example. string iTitle = "Untitled"; if (listItem["Title"] != null && SPEncode.HtmlEncode(listItem["Titl

Re: Check null or empty on it field

2011-10-19 Thread Shahram Banihashem
This is the way I go: country = (item["Country"] ?? "No Country").ToString(); All in one line, neat and easy!   Regards,   Shahram. From: Salman Ahmad To: ozmoss@ozmoss.com Sent: Wednesday, 19 October 2011 10:21 PM Subject: RE: Check null or empty on it field

RE: Check null or empty on it field

2011-10-19 Thread Salman Ahmad
It should work, if (item["Country"] != null ) { country = item["Country"].ToString(); } You can also check this way, if (item["Country"] != null && SPEncode.HtmlEncode(item["Country"].ToString()) != string.Empty && !string.IsNullOrEmpty(item["Country"].ToString())) { country = item["Count