SAP Knowledge Base Article - Public

2507511 - Field visibility using an onView rules - Employee Central

Symptom

Field visibility using an onView rule does not switch back to the initial view when changes are made in the same session.

"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 SuccessFactors Employee Central
  • SAP SuccessFactors HCM Suite

Reproducing the Issue

Create Rule: Trigger onView Rules for HRIS Elements

Go to Configure Business Rules

Employee Central Core

Trigger onView Rules for HRIS Elements

You can use this scenario to create rules that default the value for a field, change field properties, or calculate fields that are transient (this means that the result is not a fixed value stored on the database but is calculated during rule execution when the user calls up the page). In Manage Business Configuration, rules created using this scenario can be used only for the onView event type.

  1. When an 'onView" business is set on a field visibility as example below:
    1. s1.JPG
    2.  
  2. And when the field value is switched, the rule appears to be working fine:
    1. s2.JPG
    2.  
  3. But when the field is switched back to another value in the same session, the behaviour doesn't seem to change dynamically:
    1. s3.JPG

 

Cause

This behavior is working as designed. Please note that onView rules are not triggered dynamically within the same session when changes are made in the section.

Resolution

When a field is hidden through an onView rule, an onChange rule cannot subsequently make it visible again within the same session. 

FAQ - Additional Information

Q) Where can I get information on this from the Guide?

A)Guide: Implementing Business Rules in SAP SuccessFactors

    Guide: Implementing Employee Central Core   Chapter: Rule Scenarios for Employee Central Core

See Also

  • 2277956 - How to create a Business Rule

  • 2802383 - OnChange Rule Do Not Work After The OnInit Rule Is Triggered In The Add New Hire Page
  • 2293654 - Unable to click Save when creating/editing a Business Rule
  • 2163077 - Base Objects in Business Rules Do Not Support All Rule Types in Employee Central
  • 2621890 - Troubleshooting Business Rules in Employee Central
  • 2331851 - Employee Central Implementation - Business Rules FAQ
  • 2437420 - Which Portlets Support Cross Portlet Business Rules
  • 3468733 - Diagnostic Tool for Employee Central save transactions and workflows
  • 2080138 - How to Propagate fields using Business Rules
  • 2562069 - Scenario based business rules for MDF objects. Parameters and other related information.
  • 2324639 - How to populate object information from Employee Central to Custom Portlet or Objects via Business Rule?
  • 3210141 - Need to click Anywhere Outside the field, to Trigger onChange rule - Employee Central

Keywords

SF, EC, SuccessFactors, Employee Central, onView, field, visible, visibility, rule, show, display, appear, business rule, change, take effect, modify, edit, switch, onview, rules, field, ECT-38475, none, both , KBA , LOD-SF-EC-JOB-RUL , Job Info Business Rules , LOD-SF-EC-PER-PRS , Personal Info - Config, Rules, RBP, UI , Problem

Product

SAP SuccessFactors Employee Central all versions ; SAP SuccessFactors HCM Suite all versions