Activating a name mapping

After you have defined a name mapping, it will not be active until you link it to a mining field in the logical data specification. Use the method DM_setFldNmp to make a name mapping active. Only categorical fields can be linked to name mappings. If you want to define a name mapping for a field having numerical values, you must explicitly force the type of this field to categorical.
Note: If you remove a name mapping by calling DM_remNmp, you also remove the linkage between the mining field and the name mapping.

You can check which name mapping is linked to a mining field by using the method DM_getFldNmp. The procedure call looks like this:

Example

IDMMX.DM_LogicalDataSpec()..DM_addDataSpecFld('COL1')
                          ..DM_addNmp('MyNmp', 'MYSCHEMA.MYNMPTABLE',
                                      'VALUECOL', 'MAPPEDVALUECOL')
                          ..DM_setFldNmp('COL1', 'MyNmp') 


Feedback | Information roadmap