SysExtensionSerializerMap.getExtensionTable Method

Gets extension table record for current base table record.

Syntax

public SysExtensionSerializerExtensionMap getExtensionTable(TableId _extensionTableId, [boolean _packNewExtensionTable])

Run On

Called

Parameters

  • _packNewExtensionTable
    Type: boolean
    A Boolean value that indicates whether to pack new extension table record; optional.

Return Value

Type: SysExtensionSerializerExtensionMap Map
The extension table record.

Remarks

There are five ways to get extension table record for current base table record. The result from the first successed way will be used.

First, based on form data source join relation. The extension table record is returned by reference.

Second, based on join relation between base table buffer and extension table buffer. The extension table record is also returned by reference.

(Note: xRecord.joinChild() and xRecord.joinParent() will throw expection if there is no joined chile/parent when run in CIL. So this way will be skipped in CIL) Third, find from packed extension table records in the container field. The extension table record is returned by value, not by reference.

Fourth, find from data base. The extension table record is returned by value. And it will be packed to the container field for next time use.

Fifth, creata a new empty extension table record. It is returned by value. And it will be packed to the container field by default.

See Also

Reference

SysExtensionSerializerMap Map