SA XT for web access > System Architect XT > Customizing System Architect XT > Sample components in the configuration files > Latest additions box
  
Latest additions box
The Latest Additions box is a grid style view of the latest objects added to the encyclopedia. The information presented is gathered by a report that runs when the Home page is loaded. The default columns in the report are Initial Date, Initial Time, Initial Audit, among others. The Latest Additions box appears on the Home page as follows:
The code section below shows the properties for the Latest Additions box. The name of the Latest Additions box component is rptLatestAdditions. Among the changes you can make to this box, is to change the class value from boxSmall left to boxLarge, and then adjust the width or height values to accommodate the larger box.
<pages>
<pagename="home">
. . .
<componentname="rptLatestAdditions"type="Report"class="boxSmall left"header="LATEST ADDITIONS"style="width:310px;height:240px"allowedit="y"limit="10">
<fields>
FIELD "Formatted Initial Date" { SOURCE PROPERTY "Initial Date" LENGTH 10 TYPE DATE }
FIELD "Formatted Initial Time"_{ SOURCE PROPERTY "Initial Time" LENGTH 10 TYPE TIME }
</fields>
<report>
Select "Formatted Initial Date" legend "Initial Date", "Formatted Initial Time" legend "Initial Time", "Initial Audit", Name, Type
Where "Formatted Initial Date" >= %SA XT_LASTWEEK%
ORDERBY "Initial Date" desc, "Initial Time" desc
</report>
</page>
</pages>
The following table contains properties for a component when the type is Report.
Field
Description
allowedit
If y then edit links are presented if the item is editable and the user is logged in as an updater.
allownew
If y and newclass is 3 and newtype is greater than 0, and the user is logged in as an updater then a link to a page that will create a definition will be added beneath the report.
class
The stylesheet class which the generated div region will be given.
name
Should be unique.
header
Defines the header to be added above the scrollable region, above the list.
header2
Defines the header to be added inside the scrollable region, above the list.
limit
The maximum number of rows that should be presented by the report.
newbuttonclass
The stylesheet class that is to be used for the button. If this is blank then the default is ‘submit medium’. Other options are ‘submit small’ and ‘submit large’, which are only relevant if allownew is y.
newclass
The class of item which is to be created (currently redundant) only relevant if allownew is y.
newcontrol
If label then a hyperlink will be added, otherwise a button will be added. This is only relevant if allownew is y.
newlabel
The label for the link; if blank, then it is ‘New’ only relevant if allownew is y.
newtype
The type of item which is to be created. This is only relevant if allownew is y.
reportempty
The message that is to be presented if the report returns no items.
reportgeneralerror
The message that is to be presented if an unexpected error occurs on running the report.
reportinvalid
The message that is to be presented if the report is invalid.
reportnothingselected
The message that is to be presented if the report does not select anything to be presented.
style
The style which the generated div region will be given.
See also
Sample components in the configuration files