Global::mappingExists Method [AX 2012]

Validates if table is mapped.

client server public static boolean mappingExists(
    TableId _mapId, 
    TableId _tableId, 
   [FieldId _mapField, 
    FieldId _tableField])

Run On

Called

Parameters

_mapId
Type: TableId Extended Data Type
Map Id.
_tableId
Type: TableId Extended Data Type
Table Id.
_mapField
Type: FieldId Extended Data Type
Map field Id.
_tableField
Type: FieldId Extended Data Type
Table field Id.

Return Value

Type: boolean
true if table is mapped to the specified map.

Depending on additional parameters validation drills down to fields mapping.

  • If _mapField and _tableField are empty: returns true if the _mapId map have a mapping for table _tableId

  • If _mapField is not empty: returns true if the _mapId map have a mapping for it's field _mapField for table _tableId

  • If _tableField is not empty: returns true if the _mapId map have a mapping for table's field _tableField for table _tableId

  • If _mapField and _tableField are not empty: returns true if _mapField is a mapping for _tableField on map _mapId for table _tableId

Show: