Consultor Eletrônico



Kbase 21725: Dynamics: How To Create a Dynamic Viewer Against an SBO
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   25/02/2002
SUMMARY:

This Solution provides step-by-step instructions for creating a Dynamic Viewer against a SmartBusinessObject (SBO).

SOLUTION:

1) Ensure that DataField SmartObjects exist for all of the fields
you want in your Dynamic Viewer. You can generate the DataField
Objects either using the Entity Import or Object Generator tools.

Progress recommends that you initially build SmartDataObjects for
all of the tables in your database and let the Object Generator
go ahead and generate Dynamic Browsers, Dynamic Viewers and
DataFields for those tables.

2) Use the Repository Object Maintenance Tool to manually add
DataFields to the Dynamic Viewer. These DataFields should be
from the SmartDataObjects that will be contained in your
SmartBusinessObject.

3) For each DataField you add to the Dynamic Viewer you must make
certain that the following attributes are set:

- TableName

This attribute must be set to a value of "RowObject" and is
required in order for the ADM2 data access code to work
properly.

- Row

This attribute must be set to a value which causes the field
to be positioned properly within the Dynamic Viewer.

- Column

This attribute must be set to a value which causes the field
to be positioned properly within the Dynamic Viewer.

4) If your DataField(s) do not contain all of the following
attributes you will need to manually add them using the Repository
Object Maintenance Tool:

- ColumnLabel
- DatabaseName
- DataSource
- DATA-TYPE
- DisplayField
- Enabled
- FieldName
- FieldOrder
- FONT
- Format
- HEIGHT-CHARS
- HELP
- InitialValue
- Label
- LabelBgColor
- LabelFgColor
- LabelFont
- Mandatory
- MinHeight
- MinWidth
- NoLabel
- ShowPopup
- TabOrder
- Visible
- VisualizationType
- WIDTH-CHARS

You can obtain information about these attributes by looking at
the Attributes from one of the Object Instances for your Dynamic
Viewer that was automatically generated for you when you created
a SmartDataObject.