application.ptProfile.scripts.loadJQuery();
application.ptProfile.scripts.loadADFLightbox();
formID = application.ptProfile.CEData.getFormIDFromPageID(Request.DatasheetRow.pageid);
// Get the element record for the profile
profileData = application.ptProfile.cedata.getCEData("Profile", "uniqueid", request.datasheet.currentColumnValue);
profilePageURL = "";
if ( ArrayLen(profileData) )
{
// Create the project object
profileObj = server.ADF.objectFactory.getBean("profile").initProfile(profileData[1].values.userid);
profileRoles = profileObj.getRoles();
if ( StructKeyExists(profileRoles, "general") AND profileRoles['general'].permission )
profilePageURL = profileRoles['general'].pageURL;
else
profilePageURL = "";
}
// Check if an profile page exists
if ( LEN(profilePageURL) ) {
profileViewLink = "";
profileViewLink = profileViewLink & "";
profileViewLink = profileViewLink & "";
} else {
profileViewLink = "";
}
|