// CUSTOM ELEMENT INFO variables.DSN = "commonspot-users"; //variables.CUSTOM_ELEMENT = "Blog 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 = 250; // 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 = "ui-lightness"; // NEW VARIABLES v1.1 variables.SHOW_SEARCH = false; // Boolean 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)#
  • "; } }
    SELECT ID, GroupName, Description, SourceDB, TransactionDate, GroupType FROM idGroup WHERE ID NOT IN () WHERE ID IN () ORDER BY '#variables.ORDER_FIELD#' ---> // Get all the groups for the current user has permissions for var groupsComponent = Server.CommonSpot.api.getObject('Groups'); var groups = groupsComponent.getList(); var qryData = ""; var dataArray = ArrayNew(1); SELECT GROUPID AS ID, GroupName FROM groups.ResultQuery WHERE GROUPID NOT IN () WHERE GROUPID IN () ORDER BY #variables.ORDER_FIELD#