<searchDialog
    id="idClientSearchDialog"
    title="Client search"
    autoResizeMode="AUTO_RESIZE_OFF"
    size="420 500"
    table="erpClients"
    where="erpClients.sStatus='A'"
    orderBy="erpClients.sCompany"
    autoTruncation="END"
    incrementalSearchDelay="500"
>
    <primaryKey>
        <column name="nNr" type="INT" />
    </primaryKey>
    <column title="Company" field="sCompany"     width="150" minWidth="10" maxWidth="200" id="idCompany"/>
    <column title="City"    field="sCity"        width="150" minWidth="10" maxWidth="200"/>
    <column title="Street"  field="sStreet"      width="150" minWidth="10" maxWidth="200"/>
    <column title="H.nr."   field="sHouseNumber" width="50"  minWidth="10" maxWidth="600"/>
    <extension class="de.aviantes.jaf.tool.client.CUDSearchDialogExtension"
        moduleID="idClients"
        editActionVisible="true"
        size="1024 800"/>
</searchDialog>

<label text="Client:"
    constraints="0 +0 1 1 0.0 0.0 EAST NONE 5 5 0 0 0 0"
/>
<textField
    id="idClient"
    toolTipText="Client"
    constraints="1 +0 1 1 0.0 0.0 WEST NONE 5 5 0 0 0 0"
    obligatory="true"
    size="180 21"
    searchDialog="idClientSearchDialog"
    field="nClientNr"
    type="INT"
>
    <masterWidget
        table="erpClients"
        showField="sCompany"
        where=""
        autoTruncation="END"
        searchDialogColumnID="idCompany"
    >
        <primaryKey type="SINGLE">
            <column name="nNr"        type="INT"/>
        </primaryKey>
        <slaveWidget id="idClientCity"        mode="VALUE" field="sCity"        type="STRING" />
        <slaveWidget id="idClientStreet"      mode="VALUE" field="sStreet"      type="STRING" />
        <slaveWidget id="idClientHouseNumber" mode="VALUE" field="sHouseNumber" type="STRING" />
    </masterWidget>
    <incrementalSearch
        table="erpClients"
        where=""
        orderBy="sCompany"
        searchField="sCompany"
        maxRowCount="20"
        showTableHeader="true"
        searchDelay="0"
    >
        <primaryKey type="SINGLE">
            <column name="nNr"        type="INT"/>
        </primaryKey>
        <column title="Company" field="sCompany" width="200"/>
        <column title="City"    field="sCity"    width="200"/>
    </incrementalSearch>
</textField>

<textField id="idClientCity" toolTipText="City of client" constraints="2 +0 1 1 0.0 0.0 WEST NONE 5 5 0 0 0 0" locked="true" size="150 21" />
<textField id="idClientStreet" toolTipText="Street of client" constraints="3 +0 1 1 0.0 0.0 WEST NONE 5 5 0 0 0 0" locked="true" size="150 21" />
<textField id="idClientHouseNumber" toolTipText="House number of client" constraints="4 +0 1 1 0.0 0.0 WEST NONE 5 5 0 0 0 0" locked="true" size="50 21" />