// CUSTOM ELEMENT INFO //variables.DSN = "commonspot-users"; //variables.CUSTOM_ELEMENT = ""; variables.CE_FIELD = "ID"; variables.SEARCH_FIELDS = "USERID,FirstName,LastName"; variables.ORDER_FIELD = "USERID"; // Layout Flags variables.SHOW_SECTION1 = false; // Boolean variables.SHOW_SECTION2 = true; // Boolean // STYLES variables.MAIN_WIDTH = 480; variables.SECTION1_WIDTH = 250; variables.SECTION2_WIDTH = 250; variables.SECTION3_WIDTH = 380; variables.SELECT_BOX_HEIGHT = 180; // 350 variables.SELECT_BOX_WIDTH = 200; // 250 variables.SELECT_ITEM_HEIGHT = 24; // 53 variables.SELECT_ITEM_WIDTH = 160; //210 variables.SELECT_ITEM_CLASS = "ui-state-default"; //variables.JQUERY_UI_THEME = server.ADF.environment[request.site.id]['ptCalendar2']['CALENDAR_APP_UI_THEME']; variables.JQUERY_UI_THEME = "redmond"; // ADDITIONS //variables.SHOW_ALL_LINK = false; // Boolean variables.ADD_NEW_FLAG = false; // Boolean variables.ADD_NEW_URL = ""; variables.ADD_NEW_LB_WIDTH = 600; variables.ADD_NEW_LB_HEIGHT = 420; // NEW VARIABLES v1.1 variables.SHOW_SEARCH = false; // Boolean // TODO: Set-up so search values and search fields can return the correct values variables.SHOW_ALL_LINK = false; // Boolean variables.SHOW_ADD_LINK = false; // Boolean variables.SHOW_EDIT_DELETE_LINKS = false; // Boolean var retHTML = ""; var i = 1; var sqlDataArray = getChooserData(arguments.item, arguments.queryType, arguments.searchValues, arguments.csPageID); // Loop over the data for ( i=1; i LTE ArrayLen(sqlDataArray); i=i+1) { // Assemble the render HTML if ( StructKeyExists(sqlDataArray[i], "#variables.ORDER_FIELD#") AND LEN(sqlDataArray[i][variables.ORDER_FIELD]) AND StructKeyExists(sqlDataArray[i], "#variables.CE_FIELD#") AND LEN(sqlDataArray[i][variables.CE_FIELD]) ) { retHTML = retHTML & "
  • #LEFT(sqlDataArray[i][variables.ORDER_FIELD],50)#
  • "; } }
    // Initialize the return variable var retHTML = ""; // Get the CE Data var dataArray = ArrayNew(1); var qryData = QueryNew("temp"); // clean the search text //if ( arguments.queryType eq "search" ) //arguments.searchValues = cleanChooserSearchText(arguments.searchValues); // Get custom element data //dataArray = getCEData(variables.CUSTOM_ELEMENT, variables.CE_FIELD, arguments.item, arguments.queryType, arguments.searchValues, variables.SEARCH_FIELDS); // if are returning the selected items // sort the dataArray array order to match the passed in items ID order //if ( arguments.queryType NEQ "selected" ) { // sort the dataArray //dataArray = arrayOfCEDataSort(dataArray, variables.ORDER_FIELD); //} SELECT Users.ID, Users.UserID, Users.AccountExpiration, Users.IPRestrictList, Users.PasswordLifetime, Users.SourceDB, Users.LicensedContributor, Users.TransactionDate, Contacts.LastName, Contacts.FirstName, Contacts.Middle, Contacts.LastNameLetter, Contacts.EmailAddress FROM Contacts RIGHT OUTER JOIN Users ON Contacts.ContactID = Users.ID WHERE ID NOT IN () WHERE ID IN () ORDER BY '#variables.ORDER_FIELD#'