SAP Knowledge Base Article - Public

3222339 - Validation Business Rule Execution on Deletion of Grid Portlets OR Empty Grid Portlets

Symptom

Can we have a validation rule so that information from grid portlets such as National ID, Email, Phone Information or Job Relationships, etc. is always present/cannot be deleted? 

Environment

SAP SuccessFactors Employee Central

Reproducing the Issue

Sample scenario:

  1. You create a Business Rule for base object: Job Relationships.
  2. The rule should throw an error if Name field is Null.
  3. You add it as onSave in Job Relationships portlet in BCUI.
  4. Navigate to an employee's profile.
  5. Go to Job Relationships portlet, delete all the existing entries and expect that upon save, the rule will get triggered and the error message will display.
  6. However, nothing happens and the changes are successfully saved.

Resolution

The system is working as expected. Currently it is not possible to trigger a business rule when all the records on a grid portlet are deleted or no record exists in the portlet. However, it is possible to trigger the validation message when the rule's base object is Employee Information/Employee Information model which is executed during hire/rehire transactions. This type of rules with Employee Information/Employee Information model can be added to Employment Details portlet in BCUI as onSave rules. 

If this is an important business requirement for you, we encourage you to submit an enhancement request to have this functionality considered within future development cycles by following the instructions listed on KBA 2090228 - How to submit enhancement ideas for SAP SuccessFactors Products

See Also

2093378 - National ID validation issues - Employee Central

Deleting Employee Data with a Single Entity

Keywords

ECT-16673, ECT-195127, grid portlet, business rule, delete all records, delete entries, validate, null, throw error, warning message, cannot be blank, Error: Collection Filter can only be applied to a collection, not class, null, empty, com.successfactors.hris.bean.eo.EmpJobRelationsEO, delete, remove, removal, blank, configure, configuration , KBA , LOD-SF-EC-PER , Person Data (All Person Data Types) , LOD-SF-EC-JRL , Job Relationships , LOD-SF-EC-PER-NAT , National ID - Config, Rules, RBP, UI , LOD-SF-EC-PER-EML , Email Info - Config, Rules, RBP, UI , LOD-SF-EC-PER-PHN , Phone Info - Config, Rules, RBP, UI , Product Enhancement

Product

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