Tag Info

New answers tagged

0

When you inherit a content type you inherit the fields or rather the field references as they are. There is no editing of fields as you noticed there is only a reference towards a field. So if you edit the field than all fields that have a reference towards that field will change as well. The only thing that is somewhat flexible is when you add or remove ...


1

Try to put your function into OnPostRender like this: SPClientTemplates.TemplateManager.RegisterTemplateOverrides({ OnPostRender: function(ctx) { as described here: CSR and form templates and here: Modifying ListForm Save & Close button through JsLink


0

Rather than use folders, I create views of the document library and filter the files to display them for your various usergroups. Then, I create a SharePoint "links list" to manage access to these document library views. For example: My flat library contains files for two usergroups. I create two views: Usergroup01.aspx and Usergroup02.aspx. ...


0

Should this field be editable to SPGroupA and not editable to SPGroupB? You can use javascript scom to find the SP group that the current user belongs to : http://stackoverflow.com/questions/22122139/check-if-current-users-belongs-to-sp-group-using-javascript-client-side-object-m And then make the field read-only : ...


0

Assigning permissions at the column level is not possible. My workaround: Create a calculated column (for example "Column001_copy") and give it the formula: "=[Column001]". Display this column in the list view for your user instead of the editable column.


1

You can do this with some simple coding. I can think of two ways of doing this. Inline editing of a ASP.net data control that displays all the list items. Using JavaScript you can change the priority on the run. Then should update all the list items when you are saving changes. Create an event receiver and attach it to the list. So when an item is updated, ...


0

This can be simply done by using an event receiver. Then bind it to your document library. Thereafter you can update the field on ItemUpdating event. eg: properties["Count"]= int.Parse(properties["Count"])+1;


0

You don't need to change the document at all. All you need to do is enable versioning into your SharePoint. SharePoint supports versioning by itself. Follow instructions in this link to enable versioning.


0

None of the code above worked for me (SP Foundation 2013). I did it like this: $webUrl = "http://localhost:80" $newTitle = "New Title for the field" $w = Get-SPWeb $webUrl $ct = $w.ContentTypes["My Content Type Name"] $fl = $ct.FieldLinks["MyColumn"] $fl.DisplayName = $newTitle $ct.Update($true) $w.Dispose()


0

Open the AllItems.aspx page for the specific list. Search for the tag List item LinkToItem="TRUE" to ID column you want the link: <ViewFields><br/> <FieldRef Name="Attachments"/><br/> <FieldRef Name="LinkTitle"/><br/> <FieldRef Name="ID" LinkToItem="TRUE"/><br/> <FieldRef ...


2

You can add the following to an .xsl file and link to it in the "Miscellaneous" options when you edit the web part. By doing it this way, you can reuse the same style sheet over and over. This xsl basically overrides a couple of templates located in the "vwstyles.xsl" file, and removes the lines that add the header. (This code works in production, but I ...


0

Here is the poowershell script to delete the Column from Content Type. #Attach to the web and content type $web = Get-SPWeb http://portal $ct = $web.ContentTypes["Sales Document"] #Get link to the columnn from the web $spFieldLink = New-Object Microsoft.SharePoint.SPFieldLink ($web.Fields["Aliases"]) #Remove the column from the content type and update ...


0

finally it turned out, that the following caused the problem: the structure of the site collection its contained libraries was created semi-automatically by Windows PowerShell scripts and some settings were not set correctly and lead to that problem


0

[Solved] The problem seems to come from a bug in Sharepoint where if a site column is listed a required, it will still show up as required even if the settings in the list are changed to optional. Workaround: change the site columns to optional without updating all the previous content of those columns. create the list; now those columns will be ...


0

After doing some further testing, it looks like a "person or group" column will automatically filter out repeats. Since we actually needed to allow multiple copies of a user or group we ended up storing them in a string and then converting them individually back to a person or group when we need it.


2

There is a calculated column 'trick' where you return a number type but use regular string concatenation and an html 'a' tag and the item will show up for you as a link Something like ="<a href='https://www.google.com?q='"&[searchColumn]&"'>click here</a>" You should be able to add your target _blank attribute using the above. EDIT: ...


0

Powershell Script to dump all the folders in same list and increase the size from 50K to 90K. function Copy-ItemsToFolder([Microsoft.SharePoint.SPFolder]$folder, $srcList, $destList) { $spQuery = New-Object Microsoft.SharePoint.SPQuery $spQuery.Folder = $folder $sourceSPListItemCollection = $srcList.GetItems($spQuery); $destFolder = ...


1

If you're trying this for SharePoint 2013, change "LinkToItem" to "linkToItem" <ViewFields><br/> <FieldRef Name="Attachments"/><br/> <FieldRef Name="LinkTitle"/><br/> <FieldRef Name="linkThisColumn" linkToItem="TRUE"/><br/> <FieldRef Name="data_x0020_column"/><br/> <FieldRef ...


1

In MS tech forum, other user taught me the solution. so I'll share it in here too. in the Default style view, we need to use linkToItem=”TRUE”. However, in Basic Table style view, we need to use LinkToItem=”TRUE” instead.



Top 50 recent answers are included