cancel
Showing results for 
Search instead for 
Did you mean: 

Warning message when deleting dependent information record from Dependent portlet

surajyadav19
Explorer
0 Kudos
818

Hi Experts,

I have a requirement to raise a warning message when an employee deletes a dependent record from the dependent portlet. But the warning should not be triggered when a new dependent is added by the employee.

I have configured a business rule to trigger the warning message but it's popping up even when a new dependent is added.

Accepted Solutions (0)

Answers (2)

Answers (2)

MaheshWashikar
Participant

Here is how you can write this rule

Create 2 Variables using function called as Get Number of Dependents. Select base object as Dependents model

First Variable should return number of dependents on Event Date > Value

Second Variable should return number of dependents on Event Date > Previous Value

Now compare both variables in if statement. If Varaiable 2 < Variable 1 then raise your warning message.

surajyadav19
Explorer
0 Kudos

Hi Mahesh,

Thank you for your input, but the function Get number of Dependents () function has some limitations.

This function will only retrieve the count of the dependents which are already saved in the database so the dependent we are saving will not be considered.

KBA 2705895

So, this will not work.

Regards

MaheshWashikar
Participant
0 Kudos

Hello Suraj

Thanks for KBA. Now I think it's time again to do some brainstorming.

JulianHidalgo
Advisor
Advisor
0 Kudos

Hi Suraj,

Have you found a solution for this?

I am facing the exact same requirement but haven't found a suitable solution

surajyadav19
Explorer

Hi Julian,

No solution found till now.

Thanks