Tag Info

Hot answers tagged

5

Well you can hide it to appear on forms, go to List Settings -> Advanced Settings -> Allow management of content types -> check the box Now come back to List Settings -> Under Content Types -> Click Item content type -> Under columns -> click Title -> Hidden (check the box) Now it won't appear on the forms, you can similarly remove it from Views.


3

You're missing the WebId property: var xlv = new XsltListViewWebPart(); using (var oSite = new SPSite(" http : / / app:3333/ ")) { using (var oWeb = oSite.OpenWeb("/ProxymIT/Direction")) { var oList = oWeb.Lists["AdministrativeNotes"]; //your list name xlv.WebId = oWeb.ID; xlv.ListId = oList.ID; xlv.ViewGuid = ...


3

As part of using AddFieldAsXml you need to provide the field's internal and staticname announcementy.Fields.AddFieldAsXml("<Field Type='User' DisplayName='Created By' StaticName='CreatedBy' Name='CreatedBy'/>", true, AddFieldOptions.AddToAllContentTypes); announcementy.Fields.AddFieldAsXml("<Field Type='DateTime' DisplayName='Date Created' ...


3

If you neither want to use InfoPath nor Workflow, then you have to use SharePoint web services to fetch corresponding data in Column B for a selected value in dropdown Column B. You can achieve this functionality using SPServices library. Its a js library used to call SharePoint web services and perform operation very easily and in efficient way. You have ...


3

It's not possible to change the outgoing e-mail address today, but it's a requested feature which may be implemented in the future. I guess you where just lucky receiving another outgoing e-mail adress, since the default is no-reply@sharepointonline.com.


3

When you get this type of requirement, you normally start with trying to understand what the real business case is. I mean, the security model in SharePoint is there for just that, security. When you get requirements trying to bypass it, you should be careful and really make sure to understand the real need. With that said, there are cases when you need to ...


2

dam, you didnt set the auto function off... There is a time to live on workflows that occures i think by default every 60 days... once it reaches 60 days its removed by a timer job. Its active by default as its auto cleaning after two months to save on server speed and resources. If you disable it than it would over time slow sharepoint down! to sort it ...


2

their are two methods: Use Powershell to create new permission level which have Add items but no View items. $spweb=Get-SPWeb -Identity ""; $spRoleDefinition = New-Object Microsoft.SharePoint.SPRoleDefinition; $spRoleDefinition.Name = "Submit only"; $spRoleDefinition.Description = "Can submit/add forms/files/items into library or list but cannot ...


2

Update this <Value Type='Text'>" + objdocument.Title + "</Value>


2

I would create a new content type that inherits from the issue content type. You could then remove and use the fields you need from issue content type. The created modified fields are system fields. These are usually defined in the base type item. http://msdn.microsoft.com/en-us/library/office/ms472236(v=office.14).aspx


2

Try the SharePoint UI from browser instead of SharePoint Designer to delete and re-create a column if you have made any mistake while creating it. You can go to List Settings, go to the Columns section, click the existing column to open its properties. There you will see an option to delete the column. Once deleted, you should be able to re-create it with ...


1

After deleting you can refresh using the refresh Icon on top of the SharePoint Designer. This will reload the cached information (which includes site column names etc.) You can also use F5 key to invoke a refresh


1

Answer: var item = list.getItemById(92); $(document).ready(function () { appContext.load(item); appContext.executeQueryAsync(function () { $('#GEN_1').val(item.get_fieldValues().GEN_1_Sum_Scope_Assigment); $('#GEN_1_D').val(item.get_fieldValues().GEN_1_Sum_Scope_Assigment_D); $('#GEN_2').val(item.get_fieldValues().GEN_2_CRMname); ...


1

Try below $("input[name=GEN20][value=" + item.get_fieldValues().GEN_20_EL == false ? 0 : 1 + "]").attr('checked', 'checked'); //OR $("input[name=GEN20][value=" + item.get_fieldValues().GEN_20_EL == false ? 0 : 1 + "]").prop('checked', 'checked'); Another option if(item.get_fieldValues().GEN_20_EL == true) { $('#GEN_20_1').attr('checked','checked'); ...


1

Try setting the property to 1 $column.FriendlyDisplayFormat = 1. This is enumeration type as we can see here: SPDateTimeFieldFriendlyFormatType enumeration


1

Try this: =IF([PO Date]="", "", IF(NOT([Balance Qty]=0),"OPEN","CLOSED")) You can chain the 'IF' statements inside of each other, since the IF function for calculated columns takes true and false arguments (IF(<conditional>, <evalIfTrue>, <evalIfFalse>)) -- you just replace an entire <evalIf...> argument with another IF Here is an ...


1

You should explicitly load the URL using the load method this.context.load(this.collList, "Include(Title, DefaultViewUrl)"); so your onSucceed will be like function onSucceed () { var listEnumerator = this.collList.getEnumerator(); while (listEnumerator.moveNext()){ var oList = listEnumerator.get_current(); var ...


1

Go to List Settings -> Advanced Settings -> Launch forms in a dialog?. Check Yes here. Update The corresponding property which needs to be set in code is NavigateForFormsPages. Here is a sample schema.xaml file of a List Definition containing this attribute: <List xmlns:ows="Microsoft SharePoint" Title="ClientAnnouncementsListDef" ...


1

There is a pretty simple solution and it is totally based on calculated column. Steps: 1) Create a calculated column named Status 2) Specify the following formula: =IF(NOT([Balance Qty]=0),"<span style='color:red'>OPEN</span>","<span style='color:green'>CLOSED</span>") It is assumed that Balance Qty column exist and set ...


1

You can open the site in SharePoint designer , go to your SharePoint List and create a new Display form. In that display form you can re use the same html and JavaScript code of your Survey page. See this blog to know about custom list form.


1

You can use the [Me] variable when you configure a filter on a view. It's valid to People type columns. It will not show the row when the AssignedTo column is targetting a Group. For that you need to go to a more complex solution of using SharePoint designer to configure the filter for the list view.


1

Try adding the items to the ListItemCollection rather than adding it directly to the list, like below. The try block that you have only makes the matters worst as you are getting the list object and updating it without having anything to update. SPList list; list = web.Lists["Milestones"]; for (int i = list.ItemCount - 1; i >= 0; --i) { ...


1

What you most likely need to do is update the SchemaXml property of the lookup field - the imported Posts list now should have a new ID, this change must be reflected in the field schema in the List attribute. There's a utility for that on CodePlex: https://splookuplinker.codeplex.com/ but you can also do the same with a PowerShell script or SharePoint ...


1

Creating a calculated column with the following formula should resolve your issue: = TEXT([Customer Number], "0")


1

You could just use SP.CamlQuery.createAllItemsQuery() as the parameter for getItems() although simply setting the scope to 'RecursiveAll' and inserting the filter that wjervis suggests should also do the trick. Example of my proposal: list.getItems(SP.CamlQuery.createAllItemsQuery()); You can inspect exactly what this does in your browser dev tools if ...


1

public static DataTable GetListData() { DataTable returnTable = null; SPSite thisSite = null; SPWeb thisWeb = null; SPList thisList = null; try { thisSite = new SPSite(siteLink); thisWeb = thisSite.OpenWeb(); thisList = thisWeb.Lists["Resources"]; SPQuery ...


1

You have to midify alerts template. Read this article: http://www.alectang.com/blog/archive/2012/05/16/how-to-customise-sharepoint-alert-email-template.aspx And MSDN documentation: http://msdn.microsoft.com/en-us/library/bb897925(v=office.14).aspx


1

(Since this question was posted 3 years ago, I'm not sure I should be answering, but forgive me for being a noob) I think there are a few things you want to look at: First - Reusable Workflows typically want to use "Site Columns" that are associated through the "Association Columns" button. I think the reason for this is to help ensure that your workflow ...


1

I found a solution to the original problem that was posted here, it took me whole day struggling with xml returned by query. Solution is, In ViewFields, terminate the internal name up to 32 charachters. And then, while getting value, use the internal name terminated up to 32 chars. This is definately poorly tested code by Microsoft pushed in SP 2010. ...



Only top voted, non community-wiki answers of a minimum length are eligible