#INCLUDE[gml:defs.inc] Configure EDITORS /* $DOM.attachAspect('#NS[GmlObjectProps]', 'core.gml:GmlObject'); $DOM.attachAspect('core.dev:ConfigurableProps', 'core.gml:Interactor', { ELEMENT_items : { group:'GROUP_data', priority:300, def:{ id: 'items' , type: 'gridedit', label: '#TEXT[XGRP_FIELDS]' , domain: [ {id: 'rowNum', type: 'int', caption: ' ', 'readonly': true, width: 20} , {id: 'name', type: 'str', caption: '#TEXT[XLST_NAME]'} , {id: 'required', 'type': 'bool', caption: '#TEXT[XLST_REQUIRED]', 'enum': 'true; false;' } , {id: 'primitive', type: 'enum', caption: '#TEXT[XLST_PRIMITIVE]', 'enum': '1:String;2:Integer;4:Float;16:Date;32:Time;64:Boolean;', icon:'#URL[~skin:icons.flag.gif]'} ] , active: 'true', getDataObject: function(data,def){ debugger; if (!data || !data.getInfoshape) return null ; var info = data.getInfoshape(); if (!info ) return null ; return data.getInfoshape(); }, getter: function(data,def){ if (!data || !data.getFields) return null ; return data.getFields(); }, detailedView: function (data,def){ MODAL("#URL[core.dev:common.DetailedCollection.htm]",{'elem':data,'def':def}, true) }, toolbar:true, sideEffects:true, notify:true }}, DET_ELEMENT_items : [ {id: 'rowNum', type: 'int', caption: ' ', 'readonly': true, userW: 20} , {id: 'name' ,category:'Field', type: 'str', caption: '#TEXT[XLST_NAME]'} , {id: 'primitive',category:'Field', type: 'enum', caption: '#TEXT[XLST_FIELD_TYPE]', 'enum': '1:String;2:Integer;4:Float;16:Date;32:Time;64:Boolean;',icon:'#URL[~skin:icons.flag.gif]'} , {id: 'required',category:'Field' , 'type': 'bool', caption: '#TEXT[XLST_REQUIRED]', 'enum': 'true; false;' } , {id: 'show' ,category:'Control', width: 30 , 'type': 'bool', caption: '#TEXT[XLST_SHOW]', 'enum': 'true; false;' , icon:'#URL[~skin:icons.glasses.gif]'} // , {id: 'controlType',category:'Custom', type: 'enum', caption: 'Control Type'} ,{ id: 'controlType', type: 'combo' ,caption: '#TEXT[XLST_CONTROL_TYPE]', tooltip: 'Controls list',width: 80 } , {id: 'label' ,category:'Control', type: 'str', caption: '#TEXT[XLST_LABEL]'} , {id: 'tooltip' ,category:'Control', type: 'text', caption: '#TEXT[XLST_TOOLTIP]'} , {id: 'id', type: 'str', caption: '#TEXT[XLST_ID]', 'readonly': true , hide:true} ] }); $DOM.attachAspect('core.dev:ConfigurableProps', 'core.gml:Port', { ELEMENT_items : { group:'GROUP_data', priority:300, def:{ id: 'items' , type: 'gridedit', label: '#TEXT[XTIT_FIELDS]' , domain: [ {id: 'rowNum', type: 'int', caption: ' ', 'readonly': true, width: 20} , {id: 'name', type: 'str', caption: 'Name'} , {id: 'required', 'type': 'bool', caption: 'Required', 'enum': 'true; false;' } , {id: 'primitive', type: 'enum', caption: 'Primitive', 'enum': '1:String;2:Integer;4:Float;16:Date;32:Time;64:Boolean;', icon:'#URL[~skin:icons.flag.gif]'} ] , active: 'true', getDataObject: function(data,def){ if (!data || !data.getInfoshape) return null ; var info = data.getInfoshape(); if (!info || !info.getBOInfoshape ) return null ; return data.getInfoshape().getBOInfoshape(); }, getter: function(data,def){ if (!data || !data.getFields) return null ; return data.getFields(); }, addItem: function (className , data , def){ if (!data || !data.createField) return null ; return data.createField(className); }, removeItem: function(lParam , data,def){ if (!data || !data.removeField) return null ; return data.removeField(lParam); }, detailedView: function (data , def){ MODAL("#URL[core.dev:common.DetailedCollection.htm]",{'elem':data,'def':def}, true); }, itemsType:'core.gml:Field', toolbar:true , sideEffects:true, notify:true }}, DET_ELEMENT_items : [ {id: 'rowNum', type: 'int', caption: ' ', 'readonly': true, userW: 20} , {id: 'name' ,category:'Field', type: 'str', caption: 'Name'} , {id: 'primitive',category:'Field', type: 'enum', caption: 'Field Type', 'enum': '1:String;2:Integer;4:Float;16:Date;32:Time;64:Boolean;',icon:'#URL[~skin:icons.flag.gif]'} , {id: 'required',category:'Field' , 'type': 'bool', caption: 'Required', 'enum': 'true; false;' } , {id: 'id', type: 'str', caption: 'Id', 'readonly': true , hide:true} ] }); $DOM.attachAspect('#NS[ShapeProps]', 'core.gml:Configurable'); */