Defined in file: hzDissemino.h
Derivative of: hdsVE
A hdsField instance is created for each <xfield> tag and serves as a field in a form (created by <xform> tag). The <xfield> tag must name either a free standing variable or a class member as without this, Dissemino would not know how to name the field in the form's HTML or what to do with any submitted value. When HTML is generated and fields are include in the output, they may contain a pre-populated value by means of a percent entity. The value is obtained DURING the HTML generation process. Where the field relates to a class member, the lookup for the value must have the repository class, the class member and the object id. By default, the class will be that of the host form unless otherwise stated in the 'var' attribute of the <xfield> tag. The object id is not part of the hdsField class or the <xfield> tag and is supplied as the argument to the host page.
Constructors/Detructors
| hdsField* | hdsField | (hdsApp* pApp) | |
| NULL-TYPE | hdsField | (hdsApp* pApp) | |
| void | ~hdsField | (void) | |
| NULL-TYPE | ~hdsField | (void) |
Public Methods:
| void | Generate | (hzChain& C)hzHttpEvent* pE, uint32_t& nLine, | Aggregates to the supplied chain, HTML code for presenting an input field as part of a form. The resulting field will be unpopulated unless a data source is specified as an attribute to <xfield> and only then if that source successfully evaluates. Returns: None |
| xTag | Whatami | (void) |
Member Variables:
| hdsFldspec | m_Fldspec | Data & HTML type, size etc | |
| hzString | m_Source | Source data (drives pre-population) | |
| hzString | m_Varname | Name of field as it appears in the form and in any subsequent submission | |
| hdbClass* | m_pClass | That of the host form unless otherwise stated | |
| hdbMember* | m_pMem | Must be member of the class (m_pClass) or null |