GACDataSource
The data used in a UI element such asFlashIsland orSilverlightIsland is represented by a GACDataSource among other things. The data can thus be represented with a GACDataSource as well as via GACProperty UI element. For GACDataSource, the data must come from an x..n node.
GACDataSource is used to transfer tabular data. There are two important factors:
- The node involved (property dataSource)
- The name of the list to fill in the Flash application (Silverlight application) (property name)
The GACDataSource is bound to a Web Dynpro context.Each GACDataSource has a set of properties that are bound to context attributes of the GACDataSource node or subnode. This has the following advantages:
- Programming is possible as in Web Dynpro.
- The automatic transport of data from and to the FlashIsland/SilverlightIsland is ensured.
- The FlashIsland/SilverlightIsland is independent from the actual context.
Since, you may not want to transfer all attributes/subnodes and their attributes for performance reasons, application developers must explicitly declare the attributes/subnodes and their attributes that they want to send to FlashIsland/SilverlightIsland. The attributes to be sent are collected together in theGACProperty aggregation, whilst you declare subnodes using CHILD_DATA_SOURCES aggregation.
A FlashIsland/SilverlightIsland can also have several GACDataSources.
|
Runtime Class |
CL_WD_GAC_DATA_SOURCE |
Properties in the View Designer
| Name | Type | Initial Value | Bindable |
|---|---|---|---|
|
STRING |
(automatic) |
No |
|
|
Context node |
Mandatory |
||
|
STRING |
No |
Aggregations in the View Designer
| Name | Cardinality | Type |
|---|---|---|
|
0..n |
||
|
0..n |
Dynamic Programming
For dynamic programming, the same properties, events, and aggregations as in the View Designer are available. Bear in mind the different spellings.
Dynamic Programming of Properties
| View Designer Name | Runtime Name | Type |
|---|---|---|
|
DATA_SOURCE |
OBJECT |
|
|
NAME |
STRING |
Dynamic Programming of Aggregations
| View Designer Name | Runtime Name | Cardinality |
|---|---|---|
|
CHILD_DATA_SOURCES |
0..n |
|
|
PROPERTIES |
0..n |