Click or drag to resize
TmplItem Methods

[This is preliminary documentation and is subject to change.]

The TmplItem type exposes the following members.

Methods
  NameDescription
Public methodAdd
Add sub-item
Public methodAddComputation
Add computation
Public methodAddHistoryData
Override this method for special handling of history representation of data. The method is used in conjuction with AddHistoryDataDefinition. This method is called after the AddHistoryDataDefinition method. Use this method for adding data to a specific row.
Public methodAddHistoryDataDefinition
Override this method for special handling of history representation of data. The method is used in conjuction with AddHistoryData. This method is called before the AddHistoryData method. Use this method for adding new columns to the DataTable.
Public methodAddRule
Add specified rule to rulcollection
Public methodAllowChild(Type)
Return true if childType is allowed as type of sub-item. Override as necessary.
Public methodAllowChild(TmplItem)
Return true if child is allowed as sub-item. Override as necessary.
Public methodAttributeString
Returns human readable attribute values (used for debug output)
Public methodCheckAll(ProgressCollection, String, String)
Check TmplItem - including sub-items - for inconsistencies
Public methodCheckAll(ProgressCollection, String, String, Boolean)
Check TmplItem - including sub-items - for inconsistencies
Public methodCheckReport(ProgressCollection, String, String)
Check TmplItem
Public methodCheckReport(Boolean, ProgressCollection, String, String)
Check TmplItem - optionally write header and footer
Public methodCheckRules(FormContext, CheckRulesResult)
Check rules (including fill-in-status) on this item and all subitems
Public methodCheckRules(FormContext, MessageCollection, CheckRulesResult)
Check rules (including fill-in-status) on this item and all subitems
Protected methodCheckRules1
Check rules (including fill-in-status) on this element only
Public methodClearMessages
Remove all messages
Public methodClearMessages(MessageSource)
Remove all messages from a specific source
Public methodClone
Implements the Clone method of the ICloneable interface. Enables deep copying of this object as opposed to the shallow copying of MemberwiseCopy
Public methodComputeVisibility
Protected methodCopySubTmplItems
Method to copy SubTmplItems from another TmplItem to this. Default behavior is to only copy those items allowed beneath this TmplItem Override this method if special handling is needed
Public methodDataClear
Clear data from the TmplItem
Public methodDataDictionary
DataDictionary processing for this TmplItem and all sub-items. Maintains list of parent tables.
Protected methodDataDictionaryFieldAdd
Utility method to add field to DataDictionary
Protected methodDataDictionaryFieldCreate(DataDictionary, DataType, Int32, ProgressCollection, String, Boolean)
Utility method to create a DataDictionary field - not inserted in DataDictionary!
Protected methodDataDictionaryFieldCreate(DataDictionary, DataType, String, Int32, ProgressCollection, String, Boolean)
Utility method to create a DataDictionary field - not inserted in DataDictionary!
Protected methodDataDictionaryTableCreate
Utility method to create table in DataDictionary
Protected methodDataDictionaryTableFieldAdd
Utility method to add a field to the current table
Public methodDataGet
Get data from submitted HTML form into TemplItem
Public methodDataLoad
Load data from DynamicRecord dynRec into TmplItem
Public methodDataPostSave
Called after the record is saved to facilitate various clean-up
Public methodDataSave
Save data from TmplItem into DynamicRecord dynRec
Public methodDebugPrint
Print to debug listener
Public methodDebugPrint(String)
Print to debug listener
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEvaluate
Evaluate
Public methodEvaluateSpecific
Enables sub classes to implement specific evaluation functionality
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFindByDataName
Returns tmpItem that matches specified dataname
Public methodFindByHTMLName
Returns tmpItem that matches specified htmlname
Public methodFindById
Search the tree from this node to find a TmplItem with the given id (optionally search recusively)
Public methodFindByUniqueId
Search the tree from this node to find a TmplItem with the given UniqueId (optionally search recusively)
Public methodFormInit
Public methodGetArrayTableContainer
Returns the ArrayTable that this TmplItem is contained in (null is the TmplItem isn't contained in an array)
Public methodGetCaption
Returns Caption (= display name for forms / fields). Override in subclasses with visible user interface elements.
Public methodGetDataName
Returns DataName (= name used for database tables / fields). Override in subclasses with DataName property.
Public methodGetDefaultChild
Returns the default type (subclass of TmplItem) of child this object prefers
Public methodGetGlobalStringResource(String)
Gets the global string resource. Default to using 'TOPICA' as ClassKey.
Public methodGetGlobalStringResource(String, String)
Gets the global string resource.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetHistoryCaption
Returns HistoryCaption (= history display name for fields with no caption or where caption on form should be different from caption in history tree ). Override in subclasses with visible user interface elements.
Public methodGetLocalStringResource(String, String)
Gets the local string resource.
Public methodGetLocalStringResource(String, String, CultureInfo)
Gets the local string resource.
Public methodGetMessages
Get all messages (recursively for entire TmplItem tree)
Public methodGetPostProcess
Get collection of currently selected post-processing commands
Public methodGetPreProcess
Collect pre-processing commands recursively (for alle visible elements)
Public methodGetSubItemsByType
Get all subitems with a specified type
Public methodStatic memberGetTemplateCacheKey
Gets the template cache key.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodHTMLFormName
Returns the HTML name of the form tag
Public methodHTMLWrite
Write HTML: whole TmplItem (caption and control inside span tag)
Public methodIncludeCount
Get # of Include-items (used to decide whether include-resolving is necessary)
Public methodInsertAfter
Insert ti after this TmplItem
Public methodInsertBefore
Insert ti before this TmplItem
Public methodJavaScriptFocus
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMergeInclude
Merge merge in place of first include item
Public methodStatic memberNewTmplItem(String)
Construct new TmplItem by type name
Public methodStatic memberNewTmplItem(XmlNode)
Construct new TmplItem by type name from XmlNode name
Public methodNumberString
Set number strings
Public methodOnPreRender
Do some postprocesseing immediately after the form HTML has been generated. Note that the page is not fully generated at this point. If you need to do some processing after the page has been fulle rendered, use OnPreRenderComplete
Public methodOnPreRenderComplete
Do some postprocesseing immediately after the whole page has been generated.
Public methodRenumber
Renumber id 1, 2, 3, ... in whole hierarchy (depth first)
Public methodRenumber(Int32)
Renumber id in hierarchy (depth first)
Protected methodSetComputation(String, String)
Set commputation with name and expression expr
Protected methodSetComputation(DataDictionaryComputationName, String)
Set commputation with name and expression expr
Protected methodSetCustomPropertiesOnDataDictionaryTable
Override this method to set properties on the DataDictionarytable that isn't defined on TmplItem but instead on a TmplItem inherited class. This default implementation does nothing
Public methodSetDefault
Set default value
Protected methodSetFromPreProcessed
Override this method to set data of the template item from the pre processed data
Public methodTop
Get the top item.
Public methodToString
For debugging
(Overrides ObjectToString.)
Public methodStatic memberUseCaching
Indicates if caching is available.
Public methodWriteStructure
Write hierarchical structure of this TmplItem and sub-items
Public methodXMLLoad
Load attributes and subelements from node, optionally resolving includes
Public methodStatic memberXMLReadFile(Boolean, String)
Read TmplItem from XML file
Public methodStatic memberXMLReadFile(Stream, Boolean)
Read XMLfile into tmpItem
Public methodStatic memberXMLReadFile(StreamReader, Boolean, String)
Read TmplItem from streamReader
Public methodStatic memberXMLReadFile(String, DataDictionaryTable, Boolean)
Read TmplItem from XML file
Public methodStatic memberXMLReadFile(String, Boolean, Cache, String, FormContext)
Read TmplItem form XML file
Public methodStatic memberXMLReadFile(String, DataDictionaryTable, Boolean, Cache, String, FormContext)
Read TmplItem from XML file
Public methodXMLWrite(XmlTextWriter)
Write TmplItem - (including sub-items) to XML file
Public methodXMLWrite(String, Encoding)
Write TmplItem - including sub-items - to XML file
Public methodXMLWrite(XmlTextWriter, Boolean)
Write TmplItem - (including sub-items) to XML file
Public methodXMLWrite(Stream, Encoding, Boolean)
Write TmplItem - including sub-items - to
Public methodXMLWrite(String, Encoding, Boolean)
Write TmplItem - including sub-items - to XML file
Public methodXMLWrite(Stream, Encoding, Boolean, Boolean)
Write TmplItem - including sub-items - to
Top
See Also