SAP Knowledge Base Article - Public

3402616 - Validation Rule Not Working As Expected in All Facets

Symptom

You have created a custom validation rule that works fine for a field at header, but doesn't in the specific facet. 

Environment

SAP Cloud for Customer

Reproducing the Issue

Example of a possible scenario, that can be different according to the case:

There is a validation rule, which checks the phone, mobile phone, fax, etc. fields in the private account header. This works fine.
But if you open address facet and edit mobile phone number by adding a bracket '(', for example, then the validation rule does not work. He saves the dataset - which is incorrect.

  1. Open Customers WOC view and them Individuals. 
  2. Open e.g. "Eddie Smoke" and try to edit field "Fax", in header and also from Address facet. Using invalid characters. 
  3. Trying to edit it from header we can see the warning message, but editing from Address facet, we do not see it.

Cause

There are two different bindings for these fields. Examples: 

  • Binding Expression
    /Root/FaxNumber
  • Binding Expression
    /Root/AddressInformation/FaxFormattedNumberDescription

Resolution

Adjust rule to consider the correct bindings for each field that must be considered by the rule. 

See Also

Custom; validation; rule; don't; work; field; header; facet; validation; save; incorrect.

Keywords

KBA , AP-RC-UIF , C4C UI Framework , How To

Product

SAP Cloud for Customer core applications 2308