Click or drag to resize

FormContext Class

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

TOPICA-aware context for computations
Inheritance Hierarchy
SystemObject
  ComputationContext
    CSC.SC.TOPICA4.TemplateFormContext

Namespace:  CSC.SC.TOPICA4.Template
Assembly:  CSC.SC.TOPICA4.Template (in CSC.SC.TOPICA4.Template.dll) Version: 4.37.7779.15939
Syntax
C#
public class FormContext : ComputationContext

The FormContext type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyArrayTableRow
Get/set ArrayTableRow
Public propertyCaptionSuffixChildElements
Get/set CaptionSuffixChildElements. if not null or empty, display this text as a suffix to caption for checkboxes having (hidden) child elements.
Public propertyCommonParameters
Get CommonParameters
Public propertyConfigurationMode
In this mode, generate (intially hidden) HTML to facilitate configuration (inspecting / editing form)
Public propertyConfigurationName
Get ConfigurationName
Public propertyCopying
Are we performing a copy of an existing form/record
Public propertyCultureInfo (Inherited from ComputationContext.)
Public propertyCurrentUser Obsolete.
Get current user
Public propertyDatabase (Inherited from ComputationContext.)
Public propertyDataDictionary
Get DataDictionary
Public propertyDataDictionaryTable
Get/set DataDictionaryTable
Public propertyDataOwners
Get/set possible data owners
Public propertyDateTimeConverter
Get DateTimeConverter
Public propertyDebugMode
Get DebugMode
Public propertyDebugOutputEvaluateString (Inherited from ComputationContext.)
Public propertyDefaultCaptionValue
Get/set DefaultCaptionValue. If not null or empty, when Caption in form (template) file has this value, use DataName
Public propertyDictionary Obsolete. (Inherited from ComputationContext.)
Public propertyEmployee
Returns employee
Public propertyEmployeeUser
Get Employee user
Public propertyExperimenting
Get Experimenting status (used to test new/alternative code)
Public propertyFocusedElementId
If null or emtpy, set foucs on first field with error/warning If not null or empty, set focus on the coresponding field (irrespective of errors/warnings)
Public propertyForm
Get/set Form
Public propertyFormItem
Get/set FormItem
Public propertyGenerateComments
Get/set GenerateComments. When true, comments are generated inline in HTML
Public propertyHtmlVersionNumber
Get/Set HtmlVersionNumber
Public propertyIComputationMetaData Obsolete. (Inherited from ComputationContext.)
Public propertyIFormatter
Get IFormatter
Public propertyIncludeFileInfoCurrent
Get the current node of the tree of included files
Public propertyIncludeFileInfoRoot
Get the root of the tree of included files
Public propertyIndicator
Get SelfEvaluationRound
Public propertyOrgUnit
The data owner of the form
Public propertyOrgUnitTypeCollection
Get OrgUnitTypeCollection
Public propertyPage
Get Page
Public propertyParentRecord
Get parent record
Public propertyPatient
Get current patient
Public propertyPatientUser
Get Patient user
Public propertyPhysicalTempFolderUploaded
Returns PhysicalTempFolderUploaded
Public propertyPreProcessValues
Return XmlDocument with pre processed values (returned from pre processing aspx)
Public propertyPrinting
Get whether the form is to be rendered for printing
Public propertyRecord
Get current record
Public propertyRenderConfigurationTools
Get RenderConfigurationTools
Public propertyRenderingVersion
Get/set RenderingVersion
Public propertySelfEvaluationRound
Get SelfEvaluationRound
Public propertySkin
Get Skin
Public propertyStandard
Get Standard
Public propertyStandardVersion
Get StandardVersion
Public propertyStrict (Inherited from ComputationContext.)
Public propertyValues Obsolete. (Inherited from ComputationContext.)
Top
Methods
  NameDescription
Public methodAddIncludeFile
Add a node to the tree of included files, set new current
Public methodAddPreProcessedValues
Add XML output from whatever pre processes have been run
Public methodBool Obsolete. (Inherited from ComputationContext.)
Public methodCheckGlobalFunction
Check if name is a global name (constant, enumeration value, function)
(Overrides ComputationContext.CheckGlobalFunction(String).)
Public methodClearVariables (Inherited from ComputationContext.)
Public methodContainsKey (Inherited from ComputationContext.)
Public methodCurrentUserHasPermission
Checks if current user has permissionType
Public methodDebugPrint (Inherited from ComputationContext.)
Public methodDefine (Inherited from ComputationContext.)
Public methodDefineExpression (Inherited from ComputationContext.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEvaluateGlobalFunction
Evaluate global function
(Overrides ComputationContext.EvaluateGlobalFunction(Expression).)
Public methodEvaluateString (Inherited from ComputationContext.)
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 methodGetBool(String) (Inherited from ComputationContext.)
Public methodGetBool(String, Boolean) (Inherited from ComputationContext.)
Public methodGetDataOwner
Returns DataOwner
Public methodGetDataSet (Inherited from ComputationContext.)
Public methodGetDateTime(String) (Inherited from ComputationContext.)
Public methodGetDateTime(String, DateTime) (Inherited from ComputationContext.)
Public methodGetEvaluatableObject
Get evaluatable object by name
(Overrides ComputationContext.GetEvaluatableObject(String).)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetInt(String) (Inherited from ComputationContext.)
Public methodGetInt(String, Int32) (Inherited from ComputationContext.)
Public methodGetInt2 Obsolete. (Inherited from ComputationContext.)
Public methodGetLocalizedText(String)
Get localizwed text - key value is also default
Public methodGetLocalizedText(String, String)
Get localized text - with specifed default value
Public methodGetSettingsdictinary
Get Settings dictionary
Public methodGetStateMachine (Inherited from ComputationContext.)
Public methodGetString(String) (Inherited from ComputationContext.)
Public methodGetString(String, String) (Inherited from ComputationContext.)
Public methodGetText
Get text from configuration or resource. Priority: 1 configuration 2 resource 3 default value
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodGetValue (Inherited from ComputationContext.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReplaceComputation(String) (Inherited from ComputationContext.)
Public methodReplaceComputation(String, Boolean) (Inherited from ComputationContext.)
Public methodReplaceComputation(String, Char, Char) (Inherited from ComputationContext.)
Public methodReplaceComputation(String, Char, Char, Boolean) (Inherited from ComputationContext.)
Public methodResetCurrentIncludeFile
Reset current node
Public methodResolveUrl
Resolve relative URL - examples: Configuration/config/MyForm.aspx ~/Configuration/config/MyForm.aspx #/MyForm.aspx
Public methodSetPreProcessedValues
Public methodSetSettingsdictionary
Set settings dictionary
Public methodSetStateMachine (Inherited from ComputationContext.)
Public methodStartIncludeFile
Start tree of included files
Public methodText
Get text (localized) - declared "new" to hide the inherited (should have been virtual...)
Public methodToString
Convert to string
(Overrides ComputationContext.ToString.)
Top
See Also