// CUSTOM ELEMENT INFO variables.CUSTOM_ELEMENT = "Profile"; variables.CE_FIELD = "uniqueid"; variables.SEARCH_FIELDS = "lastname,firstname,email"; variables.ORDER_FIELD = "lastname"; // Layout Flags variables.SHOW_SECTION1 = true; // Boolean variables.SHOW_SECTION2 = false; // Boolean // STYLES variables.MAIN_WIDTH = 580; variables.SECTION1_WIDTH = 270; variables.SECTION2_WIDTH = 270; variables.SECTION3_WIDTH = 580; variables.SELECT_BOX_HEIGHT = 350; variables.SELECT_BOX_WIDTH = 250; variables.SELECT_ITEM_HEIGHT = 53; variables.SELECT_ITEM_WIDTH = 210; variables.SELECT_ITEM_CLASS = "ui-state-default"; variables.JQUERY_UI_THEME = "redmond"; // ADDITIONS variables.SHOW_ALL_LINK = true; // Boolean variables.ADD_NEW_FLAG = true; // Boolean variables.ADD_NEW_URL = ""; variables.ADD_NEW_LB_WIDTH = 600; variables.ADD_NEW_LB_HEIGHT = 420; var retHTML = ""; var photoImgURL = ""; var ceDataArray = getChooserData(arguments.item, arguments.queryType, arguments.searchValues, arguments.csPageID); var iconClass = ""; var retHTMLImg = ""; // Loop over the data for ( i=1; i LTE ArrayLen(ceDataArray); i=i+1) { // set the return html image variable retHTMLImg = ""; photoImgURL = ""; // determine if the user has a photo with the profile if ( LEN(ceDataArray[i].Values.photo) ) { photoImgURL = application.ptProfile.profileService.getProfileImageURL(ceDataArray[i].Values.photo); retHTMLImg = ""; } if ( LEN(ceDataArray[i].Values.lastname) ){ fullName = "#ceDataArray[i].Values.lastname#, #ceDataArray[i].Values.firstname#"; // Two column display retHTML = retHTML & "
  • #retHTMLImg#
    #LEFT(fullName,50)#
  • "; } }