Hello All,
These are links to download my presentation and Apps Projects from my latest Presentation in the SharePoint Extreme 2013 Conference.
Hope you have enjoyed!
If you're a SharePoint Developer... This is the place for professional help.
// Getting the xml information on all the lists in this site
jQuery.ajax({
url: "http://site url/_api/web/lists",
type: "GET",
headers: { "Accept": "application/json;odata=verbose" }
});
// Getting Information on a specified list by its title
jQuery.ajax({
url: "https://site url/_api/web/lists/GetByTitle('Documents')",
type: "GET",
headers: { "Accept": "application/json;odata=verbose" }
});
// Getting information on a all items in a curtain list
jQuery.ajax({
url: "https://site url/_api/web/lists/GetByTitle('Documents')/items",
type: "GET",
headers: { "Accept": "application/json;odata=verbose" }
});
// Getting information on a specified list item by it's ID
jQuery.ajax({
url: "https://site url/_api/web/lists/GetByTitle('Documents')/items(17)",
type: "GET",
headers: { "Accept": "application/json;odata=verbose" }
});
// Getting a collection of properties on a list item
jQuery.ajax({
url: "https://site url/_api/web/lists/GetByTitle('Documents')/items(17)?$select=Title,Modified",
type: "GET",
headers: { "Accept": "application/json;odata=verbose" },
});
The xml returned from:// Getting a collection of properties on a list item and popping a message with the list item's title
jQuery.ajax({
url: "https://site url/_api/web/lists/GetByTitle('Documents')/items(17)?$select=Title,Modified",
type: "GET",
headers: { "Accept": "application/json;odata=verbose" },
success: function (data) {
var jsonObject = JSON.parse(data.body);
alert(jsonObject.d.Title);
}
});
| Approach | Cost | Flexibility | Pro | Con |
|---|---|---|---|---|
| Content Deployment | OOTB | None | OOTB and little configuration | No Flexibility\granularity. Content will have to stay identical to source environment |
| Open Source | None | Very | Very flexible and can be changed according to client needs | Required Programmers for development |
| Third Party Solutions | Varies | Highly flexible (you can probably find any need you might have answered by one or another product) | No code, flexible, comfortable | Can reach very high cost. You might depend on company's customer care. |
<script type="text/javascript" src="/Scripts/jquery-1.7.1.min.js"></script> <script type="text/javascript" src="/Scripts/jquery.SPServices-0.7.1a.min.js"></script>
$(document).ready(function() {
$().SPServices({
operation: "GetGroupCollectionFromUser",
userLoginName: $().SPServices.SPGetCurrentUser(),
async: false,
completefunc: function(xData, Status) {
if($(xData.responseXML).find("Group[Name='GroupName']").length == 1)
{
// Hiding\Showing or other handler when the user is member of GroupName
}
}
});
});
// In case you are using a TaxonomyFieldControl TaxonomyFieldValue taxonomyValue = TaxonomyFieldControl.GetTaxonomyValue(textFieldValue); Guid termGuid = taxonomyValue.Id; item["Taxonomy Field Name" + "_0"] = "|" + termGuid;
// In case you are using a TaxonomyFieldControl
Guid termGuid = new Guid("<The Guid of the term you would like to set>");
item["Taxonomy Field Name" + "_0"] = "|" + termGuid;