SAP Knowledge Base Article - Public

3617343 - MDF UI rule is not executed correctly when multiple rules configured in the same place

Symptom

  • Multiple MDF UI rule was configured in the same place as onInitUI Rules or onInsertUI Rules or onLoad Business Rules or OnChange Rules.
  • Those Rules has dependency on each others. For example, Rule A is executed according to the execution result of Rule B, or Rule A and Rule B is setting different value for the same field 
  • The final execution result might not working as expected.

Environment

SAP SuccessFactors HCM Suite

Reproducing the Issue

  1. Go to Manage Configuration UI and create a UI screen for one custom MDF object.
  2. Create a UI rule A which set the visibility/required of field X to be visible or required.
  3. Create a UI rule B which set the visibility/required of field X to be invisible or non-required.
  4. Configure the rule A and rule B in the same field as OnChange UI rule in the order of First rule A and then Rule B.
  5. When the rule executed, in most of cases, the field X is invisible or non-required, but in same rare case, the field X is visible or required after rule execution.

Cause

When multiple rules are configured in the same place and are supposed to be executed in sequence,

  1. For MDF Object Business rule (the rule in object level), it will always be executed in the order of rule sequence. 
  2. For MDF UI rule, the rules will be executed in sequence, but when the execution result is sent to browser UI page to be reflected, UI will not wait for the rule execution if some particular rule execution takes a long time. It will lead to a result that the rule execution result is disordered. 

Resolution

  1. If multiple UI rules needs to be configured in configured in the same field, please make sure that those rules has no dependency or conflict on each others.
  2. If some rules have dependency or conflict on each others, please merge them into the one rule that will be executed in the order as you designed.

Keywords

SuccessFactors, custom MDF, execution result, discrepancy, UI rules, visibility, required fields, execution order , KBA , LOD-SF-MDF-UI , UI Config, Layout & Rules , Problem

Product

SAP SuccessFactors HCM Suite all versions