List of <rowui> node attributes used to describe a datagrid cell editing mode:
Name: Kind Description: define column cell type Values: (enum) Text, Tree, Combo, Calendar, Enum, Color, Category, Keywords, Progress, CheckBox
Name: ColumnHeader Description: column label Values: string
Name: ColumnWidth Description: default pixel width of column, when no desktop data saved. Use 0 for automatic width Values: number
Name: ReadOnly Description: when 'true' the cell is for read-only (ie: object id) Values: boolean
Name: Print Description: when 'false' the column will not be printed but only displayed (default='true') Values: boolean
Name: Cache Description: chace referenced objects to display extra values. Can be specified also in ObjectUI/cache attribute, comma separated. Values: string (example: "contact.title") |
Name: MultiLine Specific for kind: 'Text' Description: when 'true' the edit control is expanded and multiline (always single line in view mode) Values: boolean
Name: CBAllowNull Specific for kind: 'Combo' Description: when 'true' the list will add an empty value to undefine the value Values: boolean
Name: SearchConditions Specific for kind: 'Combo' Description: the search to apply to fill the combo-box with items (id, name) Values: xml node (example: <searchConditions xmlns="http://www.teradp.com/schemas/GN4/1/XmlSchemaExt.xsd" ObjectTypeName="user"/>)
Name: TreeDisplay Specific for kind: 'Tree' Description: attribute path with the value to display Values: string (example: "task.calendarRef.path")
Name: TreeObjName Specific for kind: 'Tree' Description: tree object name Values: string (example: "calendar")
Name: TreeParent Specific for kind: 'Tree' Description: name of the 'parent link' attribute Values: string (example: "calendarParent")
Name: Color Specific for kind: 'Color' Description: attribute path containing the color value Values: string (example: "task.calendarRef.workstateRef.color")
Name: Set Specific for kind: 'Category' and 'Keywords' Description: for 'Category' kind is the name of the category, for 'Keywords' kind is the name of the keyword-set Values: string (examples: "TaskKinds", "TaskPositions")
Name: Max Specific for kind: 'Progress' Description: maximum value of the progress bar, equivalent to 100% Values: double |
<objectUI name="BudgetDesignerTasks" cache="workstate.name,calendar.path">
<attribute name="task.id"> <rowui Kind="Text" ColumnHeader="Id" ReadOnly="true" Print="false"/> </attribute>
<attribute name="task.title"> <rowui Kind="Text" ColumnHeader="Title" ColumnWidth="200"/> </attribute>
<attribute name="task.calendarRef"> <rowui Kind="Tree" ColumnHeader="Calendar" TreeDisplay="task.calendarRef.path" TreeObjName="calendar" TreeParent="calendarParent"/> </attribute>
<attribute name="task.userRef"> <rowui Kind="Combo" ColumnHeader="Assigned" CBAllowNull="true" ColumnWidth="100"> <searchConditions xmlns="http://www.teradp.com/schemas/GN4/1/XmlSchemaExt.xsd" ObjectTypeName="user"/> </rowui> </attribute>
<attribute name="task.description"> <rowui Kind="Text" ColumnHeader="Description" ColumnWidth="256" MultiLine="true"/> </attribute>
<attribute name="task.dueDate"> <rowui Kind="Calendar" ColumnHeader="Due Date"/> </attribute>
<attribute name="task.priority"> <rowui Kind="Enum" ColumnHeader="Priority"/> </attribute>
<attribute name="task.calendarRef.workstateRef.name"> <rowui Kind="Color" ColumnHeader="Workstate" Color="task.calendarRef.workstateRef.color"/> </attribute>
<attribute name="task.kind"> <rowui Kind="Category" ColumnHeader="Kind" Set="TaskKinds" CBAllowNull="true"/> </attribute>
<attribute name="task.positions"> <rowui Kind="Keywords" ColumnHeader="Positions" Set="TaskPositions" ColumnWidth="200"/> </attribute>
<attribute name="task.contacts.title"> <rowui Kind="Text" ColumnHeader="Contacts" ColumnWidth="200" ReadOnly="true" Cache="contact.title"/> </attribute>
<attribute name="task.products.name"> <rowui Kind="Text" ColumnHeader="Products" ColumnWidth="200" ReadOnly="true"/> </attribute>
<attribute name="task.percentComplete"> <rowui Kind="Progress" ColumnHeader="Complete %" Max="100" ColumnWidth="100"/> </attribute>
<attribute name="task.extraParam"> <rowui Kind="CheckBox" ColumnHeader="Demo"/> </attribute>
</objectUI>
|