DataSources for Language-Dependent Attributes
Use
CAF provides special DataSources to access language-dependent data of business object node attributes that were modeled to be language-dependent.
Example
If we have a business object node
sap.com/store/Movieand it has the following attributes and the attributes title and plot are language-dependent.
| Name | Type |
|---|---|
|
key |
caf.core.services.Id |
|
createdBy |
caf.core.services.UserId |
|
createdAt |
caf.core.primitive.DATETIME |
|
modifiedAt |
caf.core.primitive.DATETIME |
|
createdBy |
caf.core.services.UserId |
|
title |
caf.core.primitive.STRING |
|
plot |
caf.core.primitive.STRING |
|
price |
caf.core.primitive.DECIMAL |
The DataSource that CAF would provide for the language-dependent attributes of this business object node contains the following characteristics: (assume that CAF_BI_DATASOURCE_NAME_PREFIX =
E41LD), CAF_BI_LD_DATASOURCE_NAME_PREFIX =
DataSource name: LDE41TeacherschoolfindByMulti
| Name | SQL Type |
|---|---|
|
KEY |
CHAR(36) |
|
PARENTKEY |
CHAR(36) |
|
LANG |
CHAR(2) |
|
TITLE |
VARCHAR |
|
PLOT |
VARCHAR |