Kashif Nizam Qureshi


Leave a comment

Steps to Change Permission Mode of PWA 365

To change the permission mode of Project Online, Please follow the below steps.

Logged in with an Office 365 tenant admin account: Click Admin

permission-mode-for-365-1

Click SharePoint, that will take you to the SharePoint Admin Center:

permission-mode-for-365-2

From this page, select the PWA site collection (Link: https://PWATech.sharepoint.com/sites/pwa/) then click the Settings link under the Project Web App menu as displayed below

permission-mode-for-365-3

This will load the Settings page for the Project Web App site:

permission-mode-for-365-4

Select Project Permission Mode and press OK.


Leave a comment

Setting Project UID and Name in List Item Field

In a PDP we can have a list and clicking on new we would like to save Project UID and Name into list’s item fields. In the following code snippet, ProjUid and Owning Project are two SharePoint List Fields and they are being set by following js code.


<script src="/PWA/SiteAssets/jquery-1.10.2.min.js" type="text/javascript"></script><script type="text/javascript">

$(document).ready(function() {

 var Puid = window.parent.PDP_projUid;
 var project_name = window.parent.PDP_projName; 
  
 var subjectIDTextField1 = getElementByTitle("input","ProjUid");
 subjectIDTextField1.value = Puid; 
 
 var subjectIDTextField= getElementByTitle("input","Owning Project");
 subjectIDTextField.value = project_name; 
  
//Disabling field
 $(":input[title='Owning Project']").attr('disabled','disabled');

//Hiding field
var HidePUID = getElementByTitle("input","ProjUid");
                $(HidePUID).closest("tr").hide();

 });
 
function getElementByTitle(tagName,elementTitle)
{
//alert('2.3');
	var list = document.getElementsByTagName(tagName);
	var elementTag;
	for (i=0;i!=list.length;i++) {
	if (list[i].title == elementTitle) {
	elementTag = list[i];
	return elementTag;
	}
	}
}
    
 </script>



Leave a comment

Workflow Task URL Pointing to Old URL Even After Setting AAM

I had this issue earlier, so thought of noting it down here🙂

Issue: When workflow task is received, the URL of approval link still pointing to old URL even after setting Alternate Access Mapping (AAM). There are two things I did, they are as follows:

  1. Republish workflow from SPD, make sure SPD is connected with new URL defined in AAM.
  2. Set the new URL as default in AAM
  3. Optional: Do iisreset