
<?xml version="1.0" encoding="utf-8"?>
<Shell name="AttriuteRelationFormExample" descriptors="xworker.swt.widgets.Shell" text="属性联动表单示例" RESIZE="true" width="400" height="300">
<FillLayout name="shellFillLayout"></FillLayout>
<DataObjectForm name="form">
<dataObjects>
<AbstractDataObject name="exampleDataObject" editCols="1" storeSortDir="ASC" autoInitAction="autoInit">
<attribute name="provinceId" _xmeta_id_="provicneId" label="省份" type="int" inputtype="select" modifyStoreListener="cityId" relationDataObject="xworker.example.app.dataobject.ProvinceDataObject" relationValueField="id" relationLabelField="value"></attribute>
<attribute name="cityId" label="城市" type="int" inputtype="select" modifyStoreListener="areaId" relationDataObject="xworker.example.app.dataobject.CityDataObject" relationValueField="id" relationLabelField="value">
<SelectCondition name="provinceId" attributeName="provinceId" dataName="provinceId" value="-1"></SelectCondition>
</attribute>
<attribute name="areaId" label="区/县" type="int" inputtype="select" relationDataObject="xworker.example.app.dataobject.AreaDataObject" relationValueField="id" relationLabelField="value">
<SelectCondition name="cityId" attributeName="cityId" dataName="cityId" value="-1"></SelectCondition>
</attribute>
<thing name="province" _xmeta_id_="4430" label="ProvinceDataObject" dataObjectPath="xworker.example.app.dataobject.ProvinceDataObject" refAttributeName="id" localAttributeName="provicneId"></thing>
<thing name="city" _xmeta_id_="4928" label="CityDataObject" dataObjectPath="xworker.example.app.dataobject.CityDataObject" refAttributeName="id" localAttributeName="cityId"></thing>
<thing name="area" _xmeta_id_="5212" label="AreaDataObject" dataObjectPath="xworker.example.app.dataobject.AreaDataObject" refAttributeName="id" localAttributeName="areaId"></thing>
<attribute name="desc" label="说明" inputtype="textarea" inputattrs="codeName= codeType= wrap=true fillBoth=true cols= rows=">
<default><![CDATA[1. 联动只能作用于是用数据仓库作为可选数据源的控件,如下拉列表、下拉多选等。
2. 设置联动只要把被联动的属性名设置到修改监听中,比如修改A联动B,那么在A的修改监听属性中增加B的名称。
3. 如果A联动B,一般情况下B需要设置一个过滤的查询条件,查询条件应该有个默认值查询的解雇为空,表单的内容为查询的条件值。]]></default>
</attribute>
</AbstractDataObject>
</dataObjects>
</DataObjectForm>
</Shell>