Hot answers tagged

4

Have you tried moving your code into the jQuery.getScript() success callback? Like this: $.getScript(hostweburl + "/_layouts/15/SP.RequestExecutor.js", function() { var executor = new SP.RequestExecutor(appweburl); // rest of code... });


3

Dates are calculated in milliseconds (since 1/1/1970) with 1000 milliseconds in a second 60 seconds in a minute 60 minutes in an hour 24 hours in a day Each day is 1000*60*60*24 = 86400000 milliseconds to prevent typos and type less characters you can use the scientific notation: 864e5 So to add 15 days, the JavaScript code is: var dueDate = new ...


2

Here are the steps you should execute Get the XML for webpart Load Limited Webpart Manager object Add web part. You can find details on https://msdn.microsoft.com/en-us/library/office/hh185010(v=office.14).aspx#sectionSection1 Add an existing WebPart Using the Sharepoint client object Model


2

Use a Chrome Browser and the Cisar Extension to make CSR development a breeze with Live Editing in the browser. If you want to develop less CSR code, take a peek at iCSR.GitHub.io You can check all available rows/fields in a displayed View by executing (in the F12 console) ctx.ListData.Row.forEach((row)=>{console.dir(row)}) And learn all about ...


1

This is possible by creating a question of type "Lookup" and creating a list of reports in SharePoint (custom list). Using a lookup column you have to option to add or update reports in your reports list. All changes made to your list are directly visible in your survey.


1

SharePoint has WebService as well as REST end points. You can access these using JavaScript AJAX. The biggest hurdle you will encounter will be with Authentication and Cross Domain service calls.


1

Please try below CSS code. .ms-dialog #ctl00_PlaceHolderDialogBodySection_PlaceHolderDialogBodyMainSection_ctl13_tablerow1, .ms-dialog #ctl00_PlaceHolderDialogBodySection_PlaceHolderDialogBodyMainSection_ctl13_tablerow2, .ms-dialog #ctl00_PlaceHolderDialogBodySection_PlaceHolderDialogBodyMainSection_ctl13_tablerow3, .ms-dialog ...


1

There are couple of ways to achieve this Using anchor tag you can specify which section of the page it should scroll to Using JavaScript you can find the group element. The scroll to that element by handling the click event.



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