Design Document for WebMail
Introduction
Webmail is web-based email accounts. These are usually free email accounts that are operated from a website. Webmail allows the users to access their emails as long as they have access to an Internet connection and a web browser. The purpose of this document is to be a reference for any person wishing to implement the Webmail Template using the ClaySys AppForms or any person interested in how to configure the AppForms to create a web mail Template. Here is an image what the webmail template dashboard we are going to be designing looks like.
On the webmail Dashboard following functionalities are being added:
On compose mail screen following functionality is added:
After filling the mail body, subject and ‘To’ Address you can click on the Send Button for sending mail.
On ‘AddressBook’ pop-up following functionality is added:
Steps to create a new form
Folders are used to store and organize forms that have a logical association or relationship. To create a new form click ‘New Folder’ button on the toolbar of the designer.
Following are the controls we used here in designing the above Webmail dashboard form:
Similarly we can create all other forms required for the webmail template. Following are the forms required:
Steps for Configuring search Control
Here are the steps for configuring Search control referring to the form ‘frmMails’.
Steps for External Data sources Configuration
Here are the steps for configuring External Data source referring to the form ‘frmAddNewAdresses’.
Rules Configuration
Rules in each form are being explained below. Initially to create a rule you need to click on ‘Create Rule’ and enter a name for the new rule.
Also you can add trigger to the rule by selecting the triggers as shown in the image below.
Rules in “WebmailDashboard” Form:
Rule No. |
Rule Name |
Trigger |
Functionality |
1 |
ComboMail |
imgbtnWebMail |
The visibility of combobox is set to true and “[Select]” is removed from the combobox. |
2 |
Visiblility |
cmbWebMail |
After Selecting a value in the combobox , it should not be seen so on cmbWebMail trigger the visibility of combobox is set to false. |
3 |
On_TreeView |
hdnSelectedItem |
On clicking each items on the TreeView , corresponding mails should be loaded in the External form. The external form used is “extMail”. While clicking on the TreeView the hidden control “hdnSelectedItem” will get the selected item of the tree and using ‘setform’ rule this value is passed to the hidden control “hdnStatus” in the form “frmMails” in the external form. |
4 |
On_ComposeBtn |
imgbtnComposeMail |
On clicking the image button for compose mail, the form “ComposeMail” is loaded in the external form. |
5 |
ViewMail |
hdnMailViewID |
On getting values in the hidden control “hdnMailViewID” we use the rule to load the form “MailView” in the external form and pass the value of hidden control “hdnID” to the hidden control “hdnMailViewID” in the form “MailView”. |
6 |
On_Formload |
FormLoad |
On formload external form is loaded with the form “frmMails”. And temporary variable ‘vTemp’ is set to zero. |
7 |
SelectedItem_Value |
tvWebMail |
On clicking TreeView control its selected item value is passed to the hidden control “hdnSelectedItem”. |
8 |
|
imgbtnPrint |
To print the page on clicking the image button of print. |
9 |
SetMailToValue |
hdnMailTo |
Rule to pass the value from the current form control “hdnMailTo” to the control “txtTo” in “MailView” which is loaded in the external form. |
Rule 1: ComboMail
Rule 2: Visiblility
Rule 3: On_TreeView
Rule 4: On_ComposeBtn
Rule 5: ViewMail
Rule 6: On_Formload
Rule 7: SelectedItem_Value
Rule 8: Print
Rule 9: SetMailToValue
Rule No. |
Rule Name |
Trigger |
Functionality |
1 |
On_Formload |
FormLoad |
FillDataSync(srcAddressBook) is the rule to fill the search control named srcAddressBook. |
2 |
On_OkBtn |
btnOK |
RunRule(On_srcSddressBook) and value is returned to hidden control “hdnMailTo”. The function to trim “,” at the end of “hdnMailTo” is written. Then value of “hdnMailTo” is passed to the hidden control “hdnMailTo” in the “WebmailDashboard” form. And this popup is closed. |
3 |
On_CancelBtn |
btnCancel |
On clicking Cancel button the tab is closed. |
4 |
On_srcSddressBook |
RunRule |
Loop is written to get the MailID from each row of the search to hidden control “hdnMailTo”. The total row count of the search is initially stored in to the variable “VRowCount”. This rule is called from the rule ”On_OkBtn”. |
Rule 1: OnFormLoad
Rule 2: On_OkBtn
Rule 3: On_CancelBtn
Rule 4: On_srcSddressBook
Above two images are the part of a single rule named ” On_srcSddressBook”. The sub rule named “EachRow” is shown in second image.
Rules in “frmAddNewAddress” Form:
Rule No. |
Rule Name |
Trigger |
Functionality |
1 |
OnSubmitBtn |
btnSubmit |
Rule for Executing the “Insert” command. And if you want to maintain the fileUpload name you can store it in the hidden control “hdnFupName”. |
2 |
On_ExecuteComplete |
Execute Complete |
Only after the successfull insertion of mail ID in the list , message box is to be shown and Popup window is to be closed. |
Rule 1: OnSubmitBtn
Rule 2: On_ExecuteComplete
Rules in “frmMails” Form:
Rule No. |
Rule Name |
Trigger |
Functionality |
1 |
On_Formload |
FormLoad |
The value of hidden control “hdnStatus” is set to Recieved. |
2 |
FillSearch |
hdnStatus |
On getting value in the “hdnStatus” the search is to be filled based to the value in the “hdnStatus”. |
3 |
ValueSet |
hdnMailID |
The value in the “hdnMailID” is passed to “hdnMailViewID” in the form “WebmailDashboard”. |
Rule 3: ValueSet
Rule No. |
Rule Name |
Trigger |
Functionality |
1 |
Select |
hdnID |
Execute the “select” command from list and shows the details of a mail. |
2 |
Send |
btnSendMail |
Functionality for sending mail |
3 |
SaveAsDraft |
btnSave |
Functionality for saving mail as draft. |
4 |
On_hdnStatus |
hdnStatus |
Checks whether the mail is a draft . if it is then only subform containing the send button etc. Should be visible. |
Rule 1: Select
Rule 2: Send
Rule 3: SaveAsDraft
Rule 4: On_hdnStatus
Rule No. |
Rule Name |
Trigger |
Functionality |
1 |
setMailTo |
hdnCmpMailTo |
Setting the value of hidden control “hdnCmpMailTo” to the textbox “txtTo”. This include the mail ID that we have selected from the Address book. |
2 |
SendMail |
btnSendMail |
Functionality for sending mail |
3 |
SaveAsDraft |
btnSave |
Functionality for saving mail as draft. |
Rule 1: setMailTo
Rule 2: SendMail
Rule 3: SaveAsDraft
How To Use This Template
Steps To Upload list Template
Step to Create a Web Part Page
Here are the steps for configuring External Data source referring to the form ‘frmAddNewAdresses’.
2019-06-04 11:23:19