Data Aquarium Framework supports declarative conditional visibility of fields and field categories in form views.
Conditional Visibility of Fields
Here is a snippet of the data field controller used in Code OnTime Designer that controls visibility of the Formula field if the field is marked as computed.
<category headerText="General" >
<description><![CDATA[ Specify field name, type, and data properties of the field.]]></description>
. . . . .
<headerText>The value of this field is computed at run-time.</headerText>
<dataField fieldName="Formula" columns="50" rows="5">
<expression type="ClientScript" test="[Computed]==true"/>
The expression test is evaluated on the client whenever the field values are changed. Evaluation does not cause the server post-back.
The following screenshots show the form before and after the computed field checked.
Conditional Visibility of Categories
The following snippet from the the same data controller shows visibility expression for a field category.
<expression type="ClientScript" test="[Type] != 'Byte' && [Type] != 'Object' && [OnDemand] != true" />
[Type] != 'Byte' && [Type] != 'Object' && [OnDemand] != true
If the value of field Type is not equal to Byte or Object and the field is not OnDemand then the category of fields is visible.
The next screenshot shows the visible Lookup field category.
The visibility expressions can be defined directly in the data controller files. The upcoming update to Code OnTime Designer will allow easy modifications of the visibility expressions.