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
| <script src="https://code.jquery.com/jquery-1.12.4.min.js" type="text/javascript"></script> | |
| <script type="text/javascript"> | |
| function exportToExcel(){ | |
| var listName="CustomList"; | |
| $.ajax({ | |
| url: _spPageContextInfo.siteAbsoluteUrl + "/_api/web/lists/getByTitle('"+listName+"')/items", | |
| type: "GET", | |
| headers: { | |
| "Accept": "application/json;odata=verbose", | |
| }, |
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
| SELECT proj.PROJ_NAME AS ProjectName | |
| ,proj.PROJ_UID as ProjectUID | |
| ,CT.Customer | |
| ,PCC.CostCenter | |
| ,PP.ProjectAccount | |
| ,pr_owner.RES_NAME AS ProjectOwner | |
| ,pr_owner.RES_UID as OwnerResourceNameUID | |
| ,CASE WHEN PPS.ProjectStatus IS NULL THEN 'Undefined' ELSE PPS.ProjectStatus END AS ProjectStatus | |
| FROM (SELECT PROJ_UID | |
| ,PROJ_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
| //From Jimecox CSC-O365 Repo. | |
| Below is my code which is not working . Please suggest alternate solution | |
| function ChangeProject() { | |
| var projContext= PS.ProjectContext.get_current(); | |
| var targetGuid = "fa3c752c-17cf-e511-80cd-00155d1c3214"; |
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
| SharePoint-RESTAPIs-Collection | |
| To get files in a folder | |
| {SharePointSiteURL}/_api/web/GetFolderByServerRelativeUrl('DocumentsLibraryDisplayName/FolderName')?$expand=Folders,Files | |
| To get all Lists and Libraries in a Site using _vti_bin/listdata.svc | |
| {SharePointSiteURL}/_vti_bin/listdata.svc | |
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
| function getListItemAttachments(){ | |
| //use _spPageContextInfo.webAbsoluteUrl for dynamic site URL | |
| var listtitle = "Entry"; | |
| var itemID = $("#ListItemID").val(); | |
| var currentSiteURLPath = ""; | |
| var webUrl = ""; | |
| if(itemID){ | |
| try { | |
| webUrl = _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/GetByTitle('" + listtitle + "')/items('" + itemID + "')/AttachmentFiles"; | |
| } |
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
| <script src="/SiteAssets/js/jquery.min.js"></script> | |
| <script> | |
| $(document).ready(function(){ | |
| function hideShowElems(){ | |
| var fieldsToHide = ["Start Date", "Original End Date", "Original IT Effort", "Original IT Effort", | |
| "Estimated IT Effort To Complete", "Project Cost", "IT Team Members", "Business Team Members", "Contractor Involvement"]; | |
| var projStatus = $(".ms-RadioText > input:eq(0)").is(':checked'); | |
| var formLabel = $(".ms-formtable tbody tr td.ms-formlabel span.ms-h3.ms-standardheader"); | |
| if(projStatus == true){ | |
| formLabel.each(function(){ |