This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//How to use | |
//UpdateItemWithoutIncreamentingVersioning(1,"Title Update without increamenting version control",true | |
function UpdateItemWithoutIncreamentingVersioning(itemid,title,RestrictVersion){ | |
//payload for request | |
body= {"formValues":[{"FieldName":"Title",FieldValue:title}],bNewDocumentUpdate:RestrictVersion} | |
//Header data for sharepoint POST Request | |
var _payloadOptions = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var SPRest = /** @class */ (function () { | |
function SPRest(rootWeb) { | |
var _this = this; | |
this.Utils = (function () { | |
/** | |
* Reference or motivation link : https://github.com/omkarkhair/sp-jello/blob/master/lib/jello.js | |
* https://github.com/abhishekseth054/SharePoint-Rest | |
* https://github.com/gunjandatta/sprest | |
*/ | |
var reqUrl = _this.rootUrl + "/_api/web/lists/getbytitle('AWSResponseList')/items"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<!-- Add Kendo Grid CSS Reference--> | |
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2018.2.620/styles/kendo.common-material.min.css" /> | |
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2018.2.620/styles/kendo.material.min.css" /> | |
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2018.2.620/styles/kendo.material.mobile.min.css" /> | |
<link rel="stylesheet" href="style.css" /> | |
<!-- Add Kendo Grid Js Reference --> | |
<script src="https://kendo.cdn.telerik.com/2018.2.620/js/jquery.min.js"></script> <!-- jszip required for export to excel--> | |
<script src="https://kendo.cdn.telerik.com/2018.2.620/js/jszip.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
console.log("** Dom is ready **"); | |
// Dom is now ready, Need to initialize kendo grid | |
// Define which columns should be visible in kendo grid | |
var columnOptions = [{ | |
field: "CustomerID", | |
editable: false | |
}, { | |
field: "ContactName", | |
title: "Contact Name", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Required Namespace for usage in predicate builder | |
using System; | |
using System.Data; | |
using System.Data.Objects; | |
using System.Data.Entity; | |
using System.Linq; | |
using System.Web.Mvc; | |
// Model class |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Enables the efficient, dynamic composition of query predicates. | |
/// </summary> | |
public static class PredicateBuilder | |
{ | |
/// <summary> | |
/// Creates a predicate that evaluates to true. | |
/// </summary> | |
public static Expression<Func<T, bool>> True<T>() { return param => true; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var cheerio = require('cheerio'); | |
var fetch = require("node-fetch"); | |
//const axios = require("axios"); | |
var csharpURL = "https://www.c-sharpcorner.com/technologies"; | |
var categoryResult = []; | |
//const axios = require("axios"); | |
const getArticleCountByCategory = async(url, article) => { |
NewerOlder