Wednesday, December 9, 2020

How do we give Full Trust in CAS policy?

 We have GAC manger small application available in github.

Download the application 

InfoPath cannot generate a form template for the SharePoint list - warning message received across the site

 Check your existing file Might be checked out the form some other name.

                    or


Export the .xsn file.


Open the SP designer

Then All the folder>open the list and Save the xsn in the forms folder

Retry the publish with that location

How to Set Specific Date and time in Field of SharePoint List?

We can add the content editor or script editor webpart 


d = $("#myDatepicker1").datepicker("getDate");

$("#myDatepicker2").datepicker("setDate", new Date(d.getFullYear()+1,d.getMonth(),d.getDate()));

jQuery working in IE, but not in Chrome/Edge

 Method 1:

$.getScript("js/jquery.min.js", function () {

});


Method 2:

$(document).ready(function(){

 

 $.getScript("largejs.js"); 

});

how-to-resolve-javascript-spclientpeoplepicker-is-not-defined-in-edge-works- in IE?

In this article , add the internal name 


function SetAndResolvePeoplePicker(fieldName, userAccountName) {

var controlName = fieldName;

var peoplePickerDiv = $("[id$='ClientPeoplePicker'][title='" + controlName + "']");

var peoplePickerEditor = peoplePickerDiv.find("[title='" + controlName + "']");

var spPeoplePicker = SPClientPeoplePicker.SPClientPeoplePickerDict[peoplePickerDiv[0].id];

peoplePickerEditor.val(userAccountName);

spPeoplePicker.AddUnresolvedUserFromEditor(true);

//disable the field

spPeoplePicker.SetEnabledState(false);

//hide the delete/remove use image from the people picker

$('.sp-peoplepicker-delImage').css('display','none');

}