Tag Info

New answers tagged

0

I don't have a MOSS box handy but this should mostly get you there: [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") $spSite = New-Object Microsoft.SharePoint.SPSite("http://url") $webApp = $spSite.WebApplication foreach ($site in $webApp.Sites) { foreach ($web in $site.AllWebs) { foreach ($list in $web.lists) { ...


0

If you are interested - it was necessary to set up the field, then values ​​began to persist. UPDATE: That was i mean. This is cut of public partial class LookupFieldProperties : UserControl, IFieldEditor. public void OnSaveChange(SPField field, bool isNewField) { var lookUpField = (LookupField)field; if (lookUpField == null) ...


0

Setting default values for custom field types is only possible in changing the implementation on server side. Check out this nice MSDN walkthrough regarding the implementation of custom field types. The sample explains also how to set a default value. protected override void CreateChildControls() { if (this.Field != null) { // Make sure ...


0

Fields by default are not loaded in CSOM, you need to specify what field you would like to load. Here is an example on how to do it. projectContext.Load(projectContext.Projects, c => c.Where(p => p.Id == new Guid(id)) .IncludeWithDefaultProperties(f => f.Description, f => f.FinishDate, f => ...



Top 50 recent answers are included