Tag Info

New answers tagged

0

You will want to create the column in the content type first. I've had mixed results with letting InfoPath create and manage the columns on promotion, in particular with updating after the fact and getting duplicate columns. Once you have it in your content type it should become available to your InfoPath form and when you publish it you will be able to ...


0

I ended up using SPMetal. What I noticed from the generated code is that the CustomListItem class inherits from the Item class. Since Title is part of every list item it is in the Item class. [Microsoft.SharePoint.Linq.ColumnAttribute(Name = "Title", Storage = "_title", Required = true, FieldType = "Text")] public virtual string Title { ...


1

I found some documentation referencing the above behavior and explains it. When attaching content-types to lists/libraries, the content-types event-handlers are automatically added to the list's event-handler collection. This it to support some basic list/library functionality which has been around since WSS 3.0 already. Even though all the event-handlers ...


0

You need to visit the http://{sitename}/_layouts/mngfield.aspx {sitename}- yoursitename to see if there are any duplicate fields are there.and delete accordingly . This site should help you for a detailed step Link


0

If your document template is for a docx file, look into leveraging Word's Quick Parts to accomplish your goal. This article walks through the necessary steps very clearly.


0

I figured it out. It looks like it was a SharePoint "retention" issue. It seems that retracting a solution does not truly remove everything. Using SharePoint Manager 2013, I was able to see that the Comment field was still defined in the List even though the Content Types were removed from the List and the solution was retracted. In addition, when the ...


0

You refer to your custom field "TaskActionComment" as simply "ActionComment" in the content type definition. Amend the content type reference to the field to "TaskActionComment" and test again. Hope that's it!


2

You can make the content type hidden by using PowerShell: Example: $web = Get-SPWeb -Identity http://aissp2013:111 $list = $web.Lists["TestList"] $list.ContentTypes["TestCT"].Hidden = $true $list.ContentTypes["TestCT"].Update() UPDATE However, the above code or the steps given by @Robert will not hide Content Type dropdown from Edit page. That can be ...


2

In the Document Library (or List) settings: Under the section "Content Types" click "Change new button order and default content type" Uncheck "Visible" for the Content Type you want to hide Click OK


2

Instead of CreatedBy, Use Author ,which is internal name of CreatedBy "<Where><Eq><FieldRef Name='="Author' />" + "<Value Type='User'>" + currentUser.LoginName + "</Value></Eq></Where>";


1

I've always used this CAML query client-side and has always worked. <Query><Where><Eq><FieldRef Name='Author'/><Value Type='Integer'><UserID/></Value></Eq></Where>


0

Use the following query: "<Where><Eq><FieldRef Name='CreatedBy' LookupId='TRUE'/>" + "<Value Type='Lookup'>" + currentUser.ID+ "</Value></Eq></Where>"


0

I suggest to you to use a tool like this: https://spcamlqueryhelper.codeplex.com/ and do some test by yourself to check what is wrong with your CAML query Use this program to help build and test SharePoint CAML Queries (Collaborative Application Markup Language). Compatible with SharePoint 2007, SharePoint 2010, SharePoint 2013 and Office365, in ...


0

'New Document' on the top is part of the Web Part's tool bar. It points to Upload.aspx and you can't change it by modifying the settings but you can change the toolbar type of the web part from Full Toolbar to Show Toolbar or No Toolbar. To modify the web part's toolbar go to Edit Page -> Edit Web Part -> Toolbar Type. With Show Toolbar you'll have 'New' on ...


0

This issue is solved. For people who have the same problem, the answer is extremely simple. Instead of using currentItem.Update() at the end of the event receiver, just use currentItem.SystemUpdate() and it will update even the document is still open in your Office client.


0

First you need to add a Site Column, following function will help: public void CreateSiteColumn(SPWeb site, string columnXml, Guid columnGuid) { if (site.AvailableFields.Contains(columnGuid) == false) { site.Fields.AddFieldAsXml(columnXml); site.Update(); } } Than add the column to content type: public void ...


0

Following PS script should help: #Get site object and specify name of the library to look for in each site $site = Get-SPSite http://portal $lookForList = "ABC" #Walk through each site and change content types on the list specified $siteA = $site.OpenWeb("http://portal/sites/A") write-host "Checking site:" $siteA.Title #Make sure content types ...


0

In addition to republishing the content types from the hub, you will need to go into every subscriber (consuming) site collection -> content type publishing -> Refresh all content types. Also, the content type hub timer job and content type subscriber timer job(s) need to be run.... Which you don't have access to with SharePoint online (at least I don't ...


1

If you already made the changes and as you are aware of changes you made in production. Make similar changes in dev,test box . Write the custom code to remove the changes you made and write the code for adding content types,lits etc . Deploy it and test in dev/test. Its safe , not a problem.


0

Go to: Library -> Library Settings You can updating the content type by removing then insert the new content type


1

Once a column is provisioned/created, you cannot change the internal name. This is one of the areas in SharePoint that requires careful planning.


0

As of this time there is no EventReceivers property on the ContentType object in the Microsoft.SharePoint.Client.ClientObject namespace. I would love to hear from the SharePoint product team why that property is omitted. grr. I am having to first add a ListAdded Event Receiver of which detects if my content type is present. If it is a ItemAdded event ...


1

Your sub sites will have the content types. Make sure that you have created the content types, and the hub, on the root site. You know that you are on the root site because if you go to site settings, you will see the "Site Collection Administration". Really the only possibility is that the hub is not coming from the root site of the site collection (I ...


0

I set the deployment process of VS to "No Activation" now, so it needs a few more clicks to deploy the Workflow but that works fine.



Top 50 recent answers are included