Created
August 3, 2011 13:23
-
-
Save chrishein/1122614 to your computer and use it in GitHub Desktop.
JRapid Combo property and dynamicvalue example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<entity label="Company" name="Company"> | |
<property display="primary" label="Name" name="name"/> | |
<filter display="primary" label="Name" name="name" property="name"/> | |
<property label="Address" name="address" type="text"/> | |
<property label="Default For Data Field 1" name="defaultForDataField1"/> | |
<property label="Default For Data Field 2" name="defaultForDataField2"/> | |
</entity> | |
<entity label="Invoice" menu="Menu" name="Invoice"> | |
<property display="primary" label="Invoice Date" name="invoiceDate" type="date" widget="jdatepicker"/> | |
<property comboproperty="name" display="primary" entity="Company" label="Company" name="company" widget="combo"/> | |
<property label="Data Field 1" name="dataField1"> | |
<dynamicvalue expr="companyParam.defaultForDataField1"> | |
<param entity="Company" name="companyParam" value="company" /> | |
</dynamicvalue> | |
</property> | |
<property label="Data Fiedl 2" name="dataFiedl2"> | |
<dynamicvalue expr="companyParam.defaultForDataField2"> | |
<param entity="Company" name="companyParam" value="company" /> | |
</dynamicvalue> | |
</property> | |
<property label="Amount" name="amount" type="double"/> | |
</entity> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment