Skip to main content
Version: 1.23.3

Useful Functions

The log object

info(message)


Use this function to display an info message.

Parameters:

NameTypeMandatoryDefault value
messageStringYN

Return:

TypeDescription
VoidThe function does not return a value.

Example:

info()
log.info("Import has been completed")

warn(message)


Use this function to display a warning message.

Parameters:

NameTypeMandatoryDefault value
messageStringYN

Return:

TypeDescription
VoidThe function does not return a value.

Example:

warn()
log.warn("Unsolved collisions")

error(message)


Use this function to display an error message.

Parameters:

NameTypeMandatoryDefault value
messageStringYN

Return:

TypeDescription
VoidThe function does not return a value.

Example:

error()
log.error("The transformation script is completed")

The map object

When processing import, you can use the following functions with the map object, in addition to the SimpleImport class methods.

getId()


Use this function to get the current record ID of the Transform Map (sys_transform_map) table.

Return:

ValueDescription
StringThe function returns the current record ID of the Transform Map (sys_transform_map) table.

Example:

getId()
map.getId()

getScript()


Use the function to return the script of the current Transform Map(sys_transform_map) record.

Return:

TypeDescription
StringThe function returns the script of the current Transform Map(sys_transform_map) record.

Example:

map.getScript()
map.getScript()

getSourceTableId()

Use this function to get the ID of the source table.

Return:

TypeDescription
StringThe function returns the ID of the source table.

Example:

map.getSourceTableId()
map.getSourceTableId()

getSourceTableName()


Use this function to get the name of the source table.

Return:

TypeDescription
StringThe function returns the name of the source table.

Example:

map.getSourceTableName()
map.getSourceTableName()

getTargetTableId()


Use this function to get the ID of the target table.

Return:

TypeDescription
StringThe function returns the ID of the target table.

Example:

map.getTargetTableId()
map.getTargetTableId()

getTargetTableName()

Use this function to get the name of the target table.

Return:

TypeDescription
StringThe function returns the name of the target table.

Example:

map.getTargetTableName()
map.getTargetTableName()

isActive()


Use this function to get the value of the Active checkbox in the current record of the Transform Map(sys_transform_map) table.

Return:

TypeDescription
BooleanThe function returns true if the checkbox is selected.

Example:

map.isActive()
map.isActive()

isIgnoreMandatoryFields()


Use this function to get the value of the Ignore Mandatory Fields checkbox in the current record of the Transform Map(sys_transform_map) table.

Return:

TypeDescription
BooleanThis function returns true if the checkbox is selected.

Example:

isIgnoreMandatoryFields()
map.isIgnoreMandatoryFields()

isSilentLoad()


Use this function to get the value of the Silent Load checkbox in the current record of the Transform Map(sys_transform_map) table.

Return:

TypeDescription
BooleanThis function returns true if the checkbox is selected.

Example:

map.isSilentLoad()
map.isSilentLoad()

isUseScript()


Use this function to get the value of the Use Script checkbox in the current record of the Transform Map(sys_transform_map) table.

Return:

TypeDescription
BooleanThis function returns true if the checkbox is selected.

Example:

map.isUseScript()
map.isUseScript()