// CUSTOM ELEMENT INFO variables.DSN = "commonspot-users"; //variables.CUSTOM_ELEMENT = "Forums Groups"; variables.CE_FIELD = "ID"; variables.SEARCH_FIELDS = ""; variables.ORDER_FIELD = "GROUPNAME"; // Layout Flags variables.SHOW_SECTION1 = false; // Boolean variables.SHOW_SECTION2 = false; // 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]['ptPortlet']['portlet_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; 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 ID, GroupName, Description, SourceDB, TransactionDate, GroupType FROM idGroup WHERE ID NOT IN () WHERE ID IN () ORDER BY '#variables.ORDER_FIELD#'