Question

Need an example to understand how to implement the business logic client ESQ for validation

Hello,



I'm currently working on a case study that involves storing data for an event planner. There's a lookup table called "event types" which has options like birthday, wedding, and engagement.

The "event" entity stores information such as the event ID, manager, event type, and whether the event is active or not.

Additionally, there's a system setting variable that specifies the maximum number of active wedding events allowed (which is set to 5).

 

I need help setting up the following business logic:

1. Whenever a user adds or modifies an event type, a verification process needs to be performed. If the total number of active wedding events exceeds the system setting value, then the record should not be saved and an error message should be displayed. 2. The implementation method involves using handlers in the JavaScript code of the edit page, along with applying the client ESQ and validation mechanism.C

Like 1

Like

1 comments

Hello,

 

We have already addressed a similar issue, and you can find the solution at the following link: https://community.creatio.com/questions/client-esq-and-validation-mecha…

Show all comments