Setting the default fields for ContactAddress

Use this procedure to enable the mapping of AccountAddress to ContactAddress fields.

  1. Select System Configuration > Dialog design.
  2. Open the ContactAddress dialog to enable the feature in either desktop or mobile phone by selecting the corresponding dialog and then click the Dialog layout tab.
  3. Click Control properties on ContactAddress.AddressTypeCODE in the Dialog layout tab and set the user defined data.
  4. Specify this user defined data:
    Note: The user defined data is a JSON object. For the functionality to work, the user defined data should follow the specified format expected by the application with prefix of CLM@SetMappedValuesFromParentList =.
    CLM@SetMappedValuesFromParentList={
        "ParentEntityTable": {
            "Name": "Account",
            "ChildTable": "AccountAddress",
            "FilterGroupID": "BF0EFAC9-B5AA-46BC-84C6-E18D39ACD2FE"
        },
        "ChildEntityTable": {
            "Name": "Contact",
            "ChildTable": "ContactAddress",
    	   "FilterGroupID": "3BF0EFED-A4C4-4C31-AB49-25DEEB805871"
        },
        "SupportedTypes": [{
                "ParentGUID": "1FB534CA-41DE-4067-8AA3-09586D9BF30E",
                "ChildGUID": "1FB534CA-41DE-4067-8AA3-09586D9BF30E",
                "Fields": {
                    "Key":"Value"
                }
            }
        ]
    }
    
    where:
    • ParentEntityTable is the object where child table will get the parent table values.
      1. Name is the name of the parent table.
      2. ChildTable is child of parent table where data is copied from.
      3. FilterGroupID is the FiltergroupId of control where data are copied. This only applies for mobile applications.
    • ChildEntityTable is the object where data from parent entity table is mapped.
      1. Name is the name of the parent table.
      2. ChildTable is child of parent table where data is copied from.
      3. FilterGroupID is the FiltergroupId of control where data are copied. This only applies for mobile applications.
    • SupportedTypes is a collection of AddressTypes codes that are mapped. You can specify multiple supported types for this data.
      1. ParentGUID is the GUID of the AddressType where data are taken from.
      2. ChildGUID is the GUID of the AddressType where data are mapped into..
      3. Fields are fields in the Child table that is mapped. These field names are available in M3 Mobility Core Toolbox through Translation > Table and column descriptions > AccountAddress/ContactAddress.
    Note:  The Key in the fields object corresponds to the field name of the child table where the values from the parent is to be mapped. The Value corresponds to where the data are taken from the parent field name supplied.
  5. Click Close.