controlTypeID = 0;
if( StructKeyExists(attributes.inputStruct, 'controlTypeID') )
controlTypeID = attributes.inputStruct.controlTypeID;
else if( StructKeyExists(attributes.inputStruct, 'FormID') )
controlTypeID = attributes.inputStruct.FormID;
xID = 'fic_1414_1417';
xProject = 'fic_1414_1420';
xTitle = 'fic_1414_1421';
xParentCategory = 'fic_1414_1423';
xCategoryType = 'fic_1414_1649';
xChildCategoryType = 'fic_1414_2483';
CATEGORIES = 1414;
LEAF_NODE = 2492;
InfoTypes = '';
bStop = 0;
select *
from viewCategories
where ParentCategory =
select *
from viewInfo
where MainCategory =
if( bStop eq 0 )
{
switch(attributes.inputstruct[xCategoryType])
{
case 1467: // Base Templates
case 1485: // Custom Field Type
case 1487: // Custom Script
case 1495: // Hooks
case 2528: // Datasheet Column Render Handler
InfoTypes = 'Module Filename,Implementation Task';
break;
case 1483: // Render Handlers
InfoTypes = 'Module Filename,Element Name,Implementation Task';
break;
case 1469: // Soft Templates
InfoTypes = 'Page Title,Page Filename,Subsite,Template,Element Mapping Image,Implementation Task';
break;
case 1473: // Pages
InfoTypes = 'Page Title,Page Filename,Subsite,Template,Element Mapping Image';
break;
case 1471: // Metadata Form
InfoTypes = 'Bindings,Metadata Form Field Definition URL,Implementation Task';
break;
case 1481: // Custom Elements
InfoTypes = 'Custom Element Type,Custom Element Field Definition URL,Implementation Task';
break;
case 1489: // Admin Page
case 1491: // Tree
case 1493: // Background Job
case 1497: // User
case 1499: // Group
InfoTypes = 'Implementation Task';
break;
case 1501: // Search
break;
case 2510: // Collection
InfoTypes = 'Collection,Implementation Task';
break;
} // end switch
if( InfoTypes neq '' )
{
AddInfoTypes(Project=attributes.inputstruct[xProject], CategoryID=attributes.inputstruct[xID], CategoryTypeID=attributes.inputstruct[xCategoryType], InfoTypes=InfoTypes);
}
} // end if
var InfoType = '';
var text = '';
var elementStruct = StructNew();
var elementResult = '';
var InfoTypesAA = application.ADF.common.BuildCEAssociativeArray('da', 'InfoTypes', 'Name' );
var CategoryTypesAA = application.ADF.common.BuildCEAssociativeArray('da', 'CategoryTypes', 'ID' );
var CategoryTypeName = '';
// application.adf.utils.logAppend('InfoTypes:#Arguments.InfoTypes#','_debug.htm');
application.adf.utils.logAppend('InfoType:#InfoType# - #infoTypesAA[InfoType].ID#','_debug.htm');
switch(infoType)
{
case 'Module Filename':
case 'Collection':
case 'Custom Element Field Definition URL':
case 'Metadata Form Field Definition URL':
case 'Page Filename':
case 'Page Title':
case 'Template':
case 'Subsite':
case 'Custom Element Type':
case 'Element Name':
elementStruct.Project = arguments.Project;
elementStruct.MainCategory = arguments.CategoryID;
elementStruct.Type = infoTypesAA[InfoType].ID;
elementStruct.text = 'TBD';
elementResult = application.ADF.csContent.populateContent('Info', elementStruct);
break;
case 'Implementation Task':
elementStruct.Project = arguments.Project;
elementStruct.MainCategory = arguments.CategoryID;
elementStruct.Type = infoTypesAA[InfoType].ID;
CategoryTypeName = CategoryTypesAA[arguments.CategoryTypeID].Name;
elementStruct.text = 'Create the #categoryTypeName#.';
elementResult = application.ADF.csContent.populateContent('Info', elementStruct);
break;
default:
elementStruct.Project = arguments.Project;
elementStruct.MainCategory = arguments.CategoryID;
elementStruct.Type = infoType;
elementResult = application.ADF.csContent.populateContent('Info', elementStruct);
break;
}