cancel
Showing results for 
Search instead for 
Did you mean: 

Atribute validation when saving in CRM_UI

617924547
Explorer
0 Kudos

Hi experts,

I need to validate when the attribute "Send DDVV" is marked that the email field is filled. If it is padded, I will add a record in a Z table. Then I do not know if the validation should be included in the "SAVE" button or in another part of the component.

If it is in the "SAVE" button where the validation would be implemented?


Thank you,

Regards.

Accepted Solutions (1)

Accepted Solutions (1)

developerone
Contributor
0 Kudos

Please see the overview page and code your validations in EH_ONSAVE event handler. I'll be able to provide you more inputs if you can let me know the BSP component name and view name.

Cheers,

Sai

617924547
Explorer
0 Kudos

I answer you a continuation 🙂

Answers (2)

Answers (2)

617924547
Explorer
0 Kudos

Finally you were right Sai Krishna XD ... you only had to expand the view of the panorama and then redefine the EH_ONSAVE method.

Thank you very much.

Best regards,

Francisco.

617924547
Explorer
0 Kudos

Hi Sai,

I can't redefine the method EH_ONSAVE of the view "BPCONTOverview".

The view I am editing is "BP_CONT / ContactDetails". I created the EH_ONSAVE event in this view but it does not run when I save the partner.

I have also tried to put the validation in the SET method of the attribute but it is not correct because every time I press INTRO in some field it makes the call to the SET method and it would record a new record in the z table.

Is it possible to call some BADI? If so, how can I find it? Is there any other point where you only run at the time of recording?

Thank you very much,

Best Regards.

Francisco.