File: zipcode.gfd

package info (click to toggle)
gnue-forms 0.5.11-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,384 kB
  • ctags: 1,577
  • sloc: python: 12,904; sql: 579; makefile: 28
file content (45 lines) | stat: -rw-r--r-- 1,635 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?xml version="1.0"?>

<!--  GNUe Forms 0.5.0 Migration Tool
      Saved on: 2002-11-26 20:28:21  -->

<form title="ZIP Code Maintenance">
  <options>
    <option name="version" value="0.0.1"/>
  </options>
  <datasource name="zips" cache="5" connection="gnue" order_by="state,city"
              prequery="Y" table="zipcode"/>
  <datasource name="validator" connection="gnue" order_by="description"
              prequery="Y" table="state"/>
  <logic>
    <block name="zip" datasource="zips" rows="15">
      <field name="city" case="upper" field="city" required="Y">
        <options>
          <option name="tip" value="Full name of city"/>
        </options>
      </field>
      <field name="state" field="state" fk_description="description"
             fk_key="state" fk_source="validator">
        <options>
          <option name="tip" value="State"/>
        </options>
      </field>
      <field name="zip" field="zip" max_length="5" typecast="number">
        <options>
          <option name="tip" value="US Postal Zip Code"/>
        </options>
      </field>
    </block>
  </logic>
  <layout xmlns:c="GNUe:Layout:Char" c:height="17" c:width="42">
    <page name="Page_1">
      <label name="Label_1" text="City" c:x="1" c:y="1"/>
      <entry block="zip" field="city" c:width="15" c:x="1" c:y="2"/>
      <label name="Label_2" text="State" c:x="17" c:y="1"/>
      <entry block="zip" field="state" style="dropdown" c:width="15" c:x="17"
             c:y="2"/>
      <label name="Label_3" text="Zip" c:x="33" c:y="1"/>
      <entry block="zip" field="zip" c:width="5" c:x="33" c:y="2"/>
    </page>
  </layout>
</form>