File Format for Importing Descriptive Flexfields
You can import descriptive flexfields to your application by creating separate text files containing contexts and segments. You can then upload these files to the Oracle WebCenter Content document repository.
Here are a few things that you need to keep in mind while creating these files:
- Use a vertical bar or pipe ( | ) as a delimiter between fields for both the header and the value rows.
- According to the Oracle WebCenter Content specification, set the file encoding to UTF-8 without the Byte Order Mark (BOM).
- Make sure the first line in the file is a header line, and the files look exactly the same as shown in the sample file.
The following sections contain specific details about each file format.
Context
To create a file containing the contexts, include the headers specified in this table:
Header |
Data Type |
Data Size |
Description |
Required or Optional |
---|---|---|---|---|
|
Long |
- |
This value determines the application your flexfield and context belong to. |
Required |
|
String |
40 |
This value is the code of the descriptive flexfield where you're adding your context. The value should match the code of a descriptive flexfield that's already in the application. |
Required |
|
String |
80 |
This value is the code for your context. |
Required |
|
String |
80 |
This value determines the display name of your context. |
Required |
|
String |
1 |
This value lets you enable or disable your context:
|
Required |
|
String |
240 |
This value describes your context. |
Optional |
|
String |
30 |
This value determines the API name for your context. While naming APIs, follow the naming conventions. |
Optional |
Here's a sample file for contexts. You can see the header values at the beginning of the file, followed by the line entries of the two value set codes to be imported. For importing several contexts, add more entries in the same format.
ApplicationId|DFFCode|ContextCode|Name|EnabledFlag|Description
0|TEST_DEPLOY_DFF1|LOADER_Con1|Loader con Name|Y|Description
Segment Label
To create a file containing context segments, include the headers specified in this table:
Header |
Data Type |
Data Size |
Description |
Required or Optional |
---|---|---|---|---|
|
Long |
- |
This value determines the application your flexfield, context, and segment belong to. |
Required |
|
String |
40 |
This value is the code of the descriptive flexfield where you're adding your segment. The value should match the code of a descriptive flexfield that's already in the application. |
Required |
|
String |
30 |
This value is the code for your segment. |
Required |
|
String |
80 |
This value is the name of your segment. |
Required |
|
String |
240 |
This value describes your segment. |
Optional |
|
String |
128 |
This value provides the name for the BI-enabled segment. |
Optional |
Here's a sample file for the segment label. You can see the header values at the beginning of the file, followed by the line entries of the two value set codes to be imported. For importing several segment labels, add more entries in the same format.
ApplicationId|DFFCode|SegmentLabelCode|Name|Description|BIObjectName
0|FLEX_DFF1|Label Code 1|Label name 1|Description 1| BIObJ1
Segment
To create a file containing context segments, include the headers specified in this table:
Header |
Data Type |
Data Size |
Description |
Required or Optional |
---|---|---|---|---|
|
Long |
- |
This value determines the application your flexfield, context, and segment belong to. |
Required |
|
String |
40 |
This value is the code of the descriptive flexfield where you're adding your segment. The value should match the code of a descriptive flexfield that's already in the application. |
Required |
|
String |
80 |
This value is the code for the context where you're adding your segment. The value should match a context code that's in the application. For Global Segments, use the value for the field as Global Data Elements. |
Required |
|
String |
30 |
This value is the code for your segment. |
Required |
|
String |
60 |
This value is the name of your segment. |
Required |
|
String |
30 |
This value determines the table column that your segment uses to save data. The value must match a column that's in the application. |
Required |
|
String |
60 |
This value is the code for the value set you want to use in your segment. The value must match a value set code in the application. |
Required |
|
String |
30 |
This value determines the display type of the segment. Here are the valid values for this attribute:
|
Required |
|
String |
80 |
This value determines the display name of the segment. |
Required |
|
String |
80 |
This value determines the shortened display name of the segment. |
Required |
|
String |
1 |
This value lets you enable or disable your segment:
|
Required |
|
String |
1 |
This value indicates whether you must specify the segment:
|
Required |
|
String |
1 |
This value lets you set your segment to be read-only:
|
Required |
|
String |
240 |
This value describes your segment. |
Optional |
|
String |
20 |
This value specifies the unit for the data that you add to your segment. |
Optional |
|
String |
80 |
This value describes the segment. |
Optional |
|
String |
160 |
This value provides instructions on how to use the segment. |
Optional |
|
Integer |
- |
This value specifies the order in which your segments display in your context. |
Optional |
|
String |
30 |
This value specifies the type of default value for your segment.
Here are the types of default values:
|
Optional |
|
String |
4000 |
This value provides the default values for your segment. |
Optional |
|
Integer |
- |
This value specifies the maximum number of characters that can display in a line. |
Optional |
|
Integer |
- |
This value specifies the maximum number of lines that can display in the segment. |
Optional |
|
String |
30 |
This value specifies the range of values for the low-end and
high-end fields. You can set the respective field value as
|
Optional |
|
String |
1 |
This value indicates whether your segment is BI enabled:
|
Optional |
|
String |
30 |
This value determines the API name for your segment. While naming APIs, follow the naming conventions. |
Optional |
Here's a sample file for a segment. You can see the header values at the beginning of the file, followed by the line entries of the two value set codes to be imported. For importing several segment labels, add more entries in the same format.
ApplicationId|DFFCode|ContextCode|SegmentCode|Name|ColumnName|ValueSetCode|DisplayType|Prompt|ShortPrompt|EnabledFlag|RequiredFlag|ReadOnlyFlag|Description|UomClass|BIEnabledFlag|BIEqualizationTag
0|FLEX_DFF1|Global Data Elements|SWAMY_TEST_GSEG1|Global seg 1|ATTRIBUTE10_VARCHAR2|EFF_BASIC_FMT_CHR|TEXT_BOX|Prompt|Short Prompt|Y|N|N|TEST desc aug LABEL TAG 1NOV LOAD && ||Y|LabelC1