Bookshelf Home | Contents | Index | PDF |
Product Administration Guide > Customizable Product Scripts > Cfg_OnConflict EventThis event is called for the product root when the eConfigurator engine encounters a conflict while computing a solution. A conflict is when a user action violates a constraint. The constraint can be in the declarative portion of the product or can be a user pick. When this event is called, if no script is defined, the system's normal conflict resolution messages display. Typically, the user must add or remove items to resolve the conflict. The user can retain the last user-pick and undo a previous user-pick, or they can undo the last user pick. If a script is defined, you can resolve the conflict in the script. The system does not prompt the user with a conflict message. Submitting a request in a script on this event is not recommended. SyntaxCfg_OnConflict (Explanation, Resolution) ReturnsReturns the system error message and accepts one of two values as output. The outputs are forwarded to the eConfigurator engine and are used to resolve the conflict. UsageUse this event to manage conflict resolution in the background. For example, you can could create If-then statements that pass one of the outputs depending on a configuration condition in the model. If the conditions for handling the output do not exist, then passing no value causes the normal conflict resolution message. |
Product Administration Guide |