Defined in file: hzDissemino.h
Derivative of: hdsVE
HTML button hdsButton manifests HTML to effect a button. The title of button is given in m_strContent. The button will either amount to a simple link or it will be the trigger for a form action. In the former case, the URL of the button will be in m_Link. In the latter case m_Link will be blank and the URL has to be derived. As described in the synopsis 3.a Dissemino Forms, the button is tied to a named form handler but the URL will vary each time the form is referenced. The hdsButton instance is part of the form definition and so is not a decsendent of the hdsFormref visual entity. Even if it were, the form reference would still be unknown to the hdsButton at the point of HTML generation as the Generate() functions of the visible entities have no obvious means of passing this information. Instead the URL ... and as such, may or may not be part of a form. Or the button has to manifest HTM that includes a unique URL
Constructors/Detructors
| hdsButton* | hdsButton | (hdsApp* pApp) | |
| NULL-TYPE | hdsButton | (hdsApp* pApp) | |
| void | ~hdsButton | (void) | |
| NULL-TYPE | ~hdsButton | (void) |
Public Methods:
| void | Generate | (hzChain& C)hzHttpEvent* pE, uint32_t& nLine, | Aggregate to the supplied chain, HTML to manifest a button. The button can be a link (GET request) OR a form action (POST request). In the link case, button member m_Linkto will give the location. In the form action case, there will need to be submission URL which is obtained from the form reference (given in HTTP event variable m_pContextForm). Returns: None |
| xTag | Whatami | (void) |
Member Variables:
| hzString | m_Formname | Formname (of form definition) hdsFormdef* m_pFormdef ; // Is button within a form (only relevent if it submits anything) | |
| hzString | m_Linkto | Link to POST for form action button or GET if just a link button uint32_t m_FrmRefId ; // Form reference id (form action buttons only) hzString m_Action ; // Needed in cases where forms have more than one button |