AXVW View File
AXVW View File
Views are written in XML. In the most basic view, the top-most
<view>
element contains a
<dataSource>
followed by
<panel>
elements. The
<panel>
type can be set to:
-
form
-
grid
-
columnReport
-
drawing,chart,console
-
tree
,crossTable
-
paginatedReport
-
view
-
custom
html
content
A simple view AXVW file defining an edit form is below:
<
view
version="2.0">
<
dataSource
id="projectDS">
<table name="project" role="main"/>
<field name="project_id"/>
<field name="requestor"/>
<field name="date_requested"/>
<field name="date_commence_work"/>
<field name="date_target_end"/>
<field name="date_end"/>
<field name="proj_mgr"/>
<field name="dv_id"/>
<field name="dp_id"/>
</dataSource>
<
panel
type="form" columns="1" id="projectForm" dataSource="projectDS">
<title>Edit Project</title>
<!-- Form contains a single Save button -->
<action>
<title>Save</title>
<command type="saveForm"/>
</action>
<!-- By default the form panel displays all fields defined in the dataSource. -->
</panel>
</view>