This example illustrates how to add a new property to the Business Application diagram
by adding a new icon
property to the diagram template.
Figure: New property in Program entity properties

-
From Genero Studio, open the settings.agconf file in
your template directory.
-
Navigate in the Code Structure view and select the
<Items> child element in the
<BusinessApplication> element.
-
In the <Items> child element within the central workspace, modify
the
Program
item to include a dynamicProperties
attribute with a
value of icon
.
Figure: Structure view of settings.agconf.

<Item name="Program" label="Program" extension="4prg" icon="bullet_class" depth="1" main="$(BaseName)_prg" dynamicProperties="icon"/>
-
In the
<DynamicProperties>
section of the
<BusinessApplication>
element, add a new <DynamicProperty>
element to define the new icon
dynamic property.
<DynamicProperty name="icon" type="TEXT" label="Icon" description="Defines icon to be used in window title bar of running application."/>
-
Save your changes.
-
Select .
-
From the Tutorials & Samples tab, open the OfficeStore sample project.
-
Open the OfficestoreAppFlow.4ba diagram and select the
Account or Order program entity on the diagram.
-
Note the new Icon property in the Properties
view.