Mappings Manager Bind
This bind is used by business rules to give access to define the ObjectMappingChange and ValueMappingChange mapping definitions. This bind is intended for use with the PMDM for Automotive solution.
Note: 'ObjectMappingChange' is a bind object that is used to make new objects from JavaScript in the Mapper framework. 'ValueMappingChange' is a bind object that is used to set values on objects from JavaScript. For details, refer to the 'Javadoc' link Technical Documentation accessible at [system]/sdk or from the Resources section of the system's Start Page.
The bind can be found within the 'Binds to' dropdown, as shown below.
Configuration
To use any bind:
-
Create a business rule as defined in the Creating a Business Rule, Function, or Library topic.
-
Edit the business rule as defined in the Editing a Business Rule or Function topic.
-
In the Edit Operation dialog, add the bind to a business rule, as defined in the Adding a Bind topic.
-
In the Edit Operation dialog, optionally add Messages, as defined in the Localized Messages for JavaScript Business Rules topic.
-
In the Edit Operation dialog, add JavaScript to call the bind.
Example
The following is an example JavaScript that uses this bind.
Important: Example scripts should not be used as-is without thorough testing, including updating the script to match object and link types that exist on your system. JavaScript variable names are case-sensitive.
The Mappings Manager is bound in as the 'mapmanager' variable, and adds the value 'USD' to the Attribute 'TD_ATTR_WKZ' through the 'CurrencyCode' variable.