var html = $("#ctl00_PlaceHolderMain_docReviewerUser_upLevelDiv"); params['DocReviewerLoginName'] = $("#divEntityData", html).attr("key");
Monday, August 11, 2014
Sunday, August 10, 2014
Caml query example with Person or Group (By Name) sharepoint 2013
1) Person or Group (By Name)
2) Value Type - Text
<Query>
<Where>
<Eq>
<FieldRef Name=\'Title\'/>'
'<Value Type=\'Text\'>Shekhar</Value>
</Eq>
</Where>
</Query>
2) Value Type - Text
<Query>
<Where>
<Eq>
<FieldRef Name=\'Title\'/>'
'<Value Type=\'Text\'>Shekhar</Value>
</Eq>
</Where>
</Query>
Caml query example withMultiple Lines of Text sharepoint 2013
1) Multiple Lines of Text
2) Value Type - Text
<Query>
<Where>
<Contains>
<FieldRef Name=\'Title\'/>'
'<Value Type=\'Text\'>Shekhar</Value>
</Contains>
</Where>
</Query>
2) Value Type - Text
<Query>
<Where>
<Contains>
<FieldRef Name=\'Title\'/>'
'<Value Type=\'Text\'>Shekhar</Value>
</Contains>
</Where>
</Query>
Caml query example with Single line of text sharepoint 2013
1) Single line of text
Value Type - Text
<Query>
<Where>
<Eq>
<FieldRef Name=\'Title\'/>'
'<Value Type=\'Text\'>Shekhar</Value>
</Eq>
</Where>
</Query>
Value Type - Text
<Query>
<Where>
<Eq>
<FieldRef Name=\'Title\'/>'
'<Value Type=\'Text\'>Shekhar</Value>
</Eq>
</Where>
</Query>
Caml Query Operators Sharepoint 2013
Operators
Some list of operators used in SPQuery
Some list of operators used in SPQuery
- Eq--Equals
- Neq--Not equal
- Gt--Greater than
- Geq--Greater than or equal
- Lt--Lower than
- Leq--Lower than
- IsNull--Is null
- BeginsWith--Begins with
- Contains--Contains
Thursday, August 7, 2014
return in javascript function
<!DOCTYPE html>
<html>
<body>
<p id="demo"></p>
<script>
function myFunction(a, b) {
return a * b;
}
document.getElementById("demo").innerHTML = myFunction(4, 3);
</script>
</body>
</html>
This example calls a function which performs a calculation, and returns the result:12
<html>
<body>
<p id="demo"></p>
<script>
function myFunction(a, b) {
return a * b;
}
document.getElementById("demo").innerHTML = myFunction(4, 3);
</script>
</body>
</html>
This example calls a function which performs a calculation, and returns the result:12
Wednesday, August 6, 2014
Jquery DatePicker example 2
<html lang="en">
<head>
<style >
div.ui-datepicker{
font-size:11px;
}
</style>
<title>jQuery UI Datepicker - Default functionality</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.8.3.js"></script>
<script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"></script>
<script>
$(function() {
$( "#fromdatepicker" ).datepicker();
$( "#todatepicker" ).datepicker();
});
$(function() {
$("#btnFilter").click(function() {
var startDate = $("#fromdatepicker").datepicker("getDate");
startDate = startDate.getFullYear()+"-"+(startDate.getMonth()+1)+"-"+startDate.getDate();
var endDate = $("#todatepicker").datepicker("getDate");
endDate = endDate.getFullYear()+"-"+(endDate.getMonth()+1)+"-"+endDate.getDate();
alert(startDate +"-"+ endDate);
});
});
</script>
</head>
<body>
<p>
From Date: <input type="text" id="fromdatepicker" style="font-size:11px" />
To Date: <input type="text" id="todatepicker" style="font-size:11px" />
<input type="button" id="btnFilter" value="Generate Report">
</p>
</body>
</html>
jQuery UI Datepicker - Default functionality
From Date:
To Date:
<head>
<style >
div.ui-datepicker{
font-size:11px;
}
</style>
<title>jQuery UI Datepicker - Default functionality</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.8.3.js"></script>
<script src="http://code.jquery.com/ui/1.10.0/jquery-ui.js"></script>
<script>
$(function() {
$( "#fromdatepicker" ).datepicker();
$( "#todatepicker" ).datepicker();
});
$(function() {
$("#btnFilter").click(function() {
var startDate = $("#fromdatepicker").datepicker("getDate");
startDate = startDate.getFullYear()+"-"+(startDate.getMonth()+1)+"-"+startDate.getDate();
var endDate = $("#todatepicker").datepicker("getDate");
endDate = endDate.getFullYear()+"-"+(endDate.getMonth()+1)+"-"+endDate.getDate();
alert(startDate +"-"+ endDate);
});
});
</script>
</head>
<body>
<p>
From Date: <input type="text" id="fromdatepicker" style="font-size:11px" />
To Date: <input type="text" id="todatepicker" style="font-size:11px" />
<input type="button" id="btnFilter" value="Generate Report">
</p>
</body>
</html>
Subscribe to:
Posts (Atom)