SAP Knowledge Base Article - Public

3062787 - Calculation Rule defined in UI Designer not triggered

Symptom

You have defined a Calculation Rule for a property on a UI Field with Front-End script logic but the Calculation Rule is not triggered.

"Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental."

Environment

  • SAP Cloud Applications Studio
  • SAP Cloud for Customer

Reproducing the Issue

Prerequisites:

  • You have a Custom UI Component created in the Cloud Application Studio.
  • You have selected the Calculation Rule Variant for a UI Field property (for example, ForegroundColor).
  • You have written a Front-End script to dynamically determine the result.

Cause

You have not selected all the DataFields used in the Front-End script as the Invalidation Trigger.

Resolution

You must select all DataFields used in the Front-End script as the Invalidation Trigger.

InvalidationTrigger.png

See Also

See Cloud Application Studio Documentation in the Help Portal: Define Dynamic Behavior of a Field

Keywords

PDI, SDK, Invalidation Trigger, Calculated Rule, DataField, Data Model, UI Designer , KBA , AP-RC-UIF-FLX , Page Layout & Key User Configuration , AP-RC-UIF-DT , UI Framework Designtime , Problem

Product

SAP Cloud Applications Studio all versions ; SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions