Tag Info

Hot answers tagged

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 ...


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 = ...


2

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


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 ...


2

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


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 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

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

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

(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 ...



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