D-STAR data communications
Sending forms in D-RATS
Goal
Allow users to define commonly used forms dynamically with XML. D-RATS presents the form field-by-field, sends it to another user, and can unpack it in the GUI or export text/HTML.
Overview
There are two entities:
- Form template — defines form name/ID and field types
- Instantiated form — a filled copy of a template
Open File -> Manage Form Templates, click New, give the form a name and unique ID (no spaces/special characters), add fields, Preview, then Save.
In Advanced mode, use the Form Manager tab to create instances, fill values, name them, and Send. The receiving station should click Receive beforehand.
Example ICS-213-like template
<xml>
<form id="ics213">
<title>ISC-213 Form</title>
<field id="number"><caption>Number</caption><entry type="text"/></field>
<field id="precedence"><caption>Precedence</caption><entry type="text">TR</entry></field>
<field id="station"><caption>Originating station</caption><entry type="text"/></field>
<field id="place"><caption>Originating location</caption><entry type="text"/></field>
<field id="time"><caption>Time</caption><entry type="text"/></field>
<field id="date"><caption>Date</caption><entry type="text"/></field>
<field id="recip"><caption>Recipient</caption><entry type="text"/></field>
<field id="sender"><caption>Sender</caption><entry type="text"/></field>
<field id="subject"><caption>Subject</caption><entry type="text"/></field>
<field id="message"><caption>Message</caption><entry type="multiline"/></field>
</form>
</xml>
Informal memo template
<xml>
<form id="memo">
<title>Informal Memo Form</title>
<field id="time"><caption>Time</caption><entry type="time">22:13:08</entry></field>
<field id="date"><caption>Date</caption><entry type="date">01-Jan-2008</entry></field>
<field id="recip"><caption>Recipient</caption><entry type="text"/></field>
<field id="sender"><caption>Sender</caption><entry type="text"/></field>
<field id="subject"><caption>Subject</caption><entry type="text"/></field>
<field id="message"><caption>Message</caption><entry type="multiline"/></field>
</form>
</xml>