ERP/2.50/Developers Guide/Database Model/org.openbravo.model.dataimport/AD ImpFormat Row
AD_ImpFormat_Row
Define the individual field based on the table definition. Please note that you have to make sure that a Constant has the correct SQL data type (i.e. if it is a 'string', you need to enclose it like 'this')
- Name:DataImportFormatRow
- Classname:ImportFormatRow
This table contains the following columns:
Name | Nullable | Data Type | Description |
AD_ImpFormat_Row_ID | N | VARCHAR2(32) | null |
AD_Client_ID | N | VARCHAR2(32) | Client for this installation. |
AD_Org_ID | N | VARCHAR2(32) | Organizational entity within client |
IsActive | N | CHAR(1) | A flag indicating whether this record is available for use or de-activated. |
Created | N | DATE | The date that this record is completed. |
CreatedBy | N | VARCHAR2(32) | User who created this records |
Updated | N | DATE | x not implemented |
UpdatedBy | N | VARCHAR2(32) | User who updated this records |
AD_ImpFormat_ID | N | VARCHAR2(32) | null |
SeqNo | N | NUMBER(10, 0) | The order of records in a specified document. |
Name | N | NVARCHAR2(60) | A non-unique identifier for a record/document often used as a search tool. |
AD_Column_ID | N | VARCHAR2(32) | A link to the database column of the table. |
StartNo | Y | NUMBER(10, 0) | The first number that will be used in a standard or control sequence. |
EndNo | Y | NUMBER(10, 0) | null |
DataType | N | VARCHAR2(60) | Type of data |
DataFormat | Y | NVARCHAR2(20) | Format String in Java Notation, e.g. ddMMyy |
DecimalPoint | N | CHAR(1) | Decimal Point in the data file |
DivideBy100 | N | CHAR(1) | Divide number by 100 to get correct amount |
ConstantValue | Y | NVARCHAR2(60) | Constant value |
Callout | Y | NVARCHAR2(60) | A series of actions that occur when data is modified. |
Script | Y | NVARCHAR2(2000) | A code used to create or modify the database or the database data. |
Other Info
Check constraints
These are the check constraints for this table:
- AD_IMPFORMAT_ROW_DIVIDEBY1_CHK: DIVIDEBY100 IN ('Y', 'N')
- AD_IMPFORMAT_ROW_ISACTIVE_CHK: ISACTIVE IN ('Y', 'N')
Indexes
These are the indexes for this table (for each index there is a list of all the columns included within it):
Unique
- AD_IMPFORMAT_ROW_COLUMN
- AD_IMPFORMAT_ROW_KEY
Columns
Format Field
The ID identifies a unique format field
- Physical column name: AD_ImpFormat_Row_ID
- Property Name: id
- Reference: ID
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
- Default value: @AD_CLIENT_ID@
Foreign key column to AD_Client table, (column: AD_Client_ID)
Validation Rule AD_Client Security validation: Clients with user access rights. With the following code:
AD_Client.AD_Client_ID IN (@#User_Client@)
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
- Default value: @AD_Org_ID@
Foreign key column to AD_Org table, (column: AD_Org_ID)
Active
There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reporting. There are two reasons for de-activating and not deleting records:
(1) The system requires the record for auditing purposes.
(2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are existing invoices for it. By de-activating the Business Partner you prevent it from being used in future transactions.
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
Creation Date
The Created field indicates the date that this record was created.
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
Created By
- Physical column name: CreatedBy
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Updated
The Updated field indicates the date that this record was updated.
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
Updated By
- Physical column name: UpdatedBy
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Import Format
- Physical column name: AD_ImpFormat_ID
- Property Name: importFormat
- Reference: TableDir
- This column is a child for a buisiness object (is Parent)
Foreign key column to AD_ImpFormat table, (column: AD_ImpFormat_ID)
Sequence Number
The Sequence indicates the order of records
- Physical column name: SeqNo
- Property Name: sequenceNumber
- Reference: Integer
- Default value: @SQL=SELECT COALESCE(MAX(SeqNo),0)+10 AS DefaultValue FROM AD_ImpFormat_Row WHERE AD_ImpFormat_ID=@AD_ImpFormat_ID@
Name
A more descriptive identifier (that does need to be unique) of a record/document that is used as a default search option along with the search key (that is unique and mostly shorter). It is up to 60 characters in length.
- Physical column name: Name
- Property Name: name
- Reference: String
- This column is part of the table's identifier
Column
- Physical column name: AD_Column_ID
- Property Name: column
- Reference: TableDir
Foreign key column to AD_Column table, (column: AD_Column_ID)
Validation Rule AD_Column must be in AD_Table: Table must be previously defined. With the following code:
AD_Column.AD_Table_ID=@AD_Table_ID@
Starting No.
The Start Number indicates the starting position in the line or field number in the line
- Physical column name: StartNo
- Property Name: startingNo
- Reference: Integer
End No
- Physical column name: EndNo
- Property Name: endNo
- Reference: Integer
Data Type
Type of data
- Physical column name: DataType
- Property Name: dataType
- Reference: List
List values: AD_ImpFormat_Row Type
The allowed values for this list are:
- C (Constant)
- D (Date)
- N (Number)
- S (String)
Data Format
The Date Format indicates how dates are defined on the record to be imported. It must be in Java Notation
- Physical column name: DataFormat
- Property Name: dataFormat
- Reference: String
Decimal Point
Decimal Point in the data file
- Physical column name: DecimalPoint
- Property Name: decimalPoint
- Reference: String
- Default value: .
Divide by 100
Divide number by 100 to get correct amount
- Physical column name: DivideBy100
- Property Name: divideBy100
- Reference: YesNo
Constant Value
Constant value
- Physical column name: ConstantValue
- Property Name: constantValue
- Reference: String
Callout Function
Function Calls separated by semicolons; SE_/SL_/UE_/UL_ - 1st: System/User; 2nd: Enter/Leave; 3rd: _ Underscore, - then Function Name
- Physical column name: Callout
- Property Name: calloutFunction
- Reference: String
Script
Use Java language constructs to define the result of the calculation
- Physical column name: Script
- Property Name: script
- Reference: Text