cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Trim Values in HMC and Backoffice

0 Likes
264

Hi,

If we give leading and trailing spaces while editing attribute in HMC and Backoffice, it is not getting trimmed automatically while saving. Is there any way to automatically trim upon saving the model.

Regards,
Devendra.

Accepted Solutions (1)

Accepted Solutions (1)

rohit31_raj92
Active Participant
0 Likes

Hi

You can implement an Interceptor (Say onPrepare) and when ever the values are saved from hmc/backoffice , first check the values into interceptor and trim the trailing and leading white spaces and saved them.

This will apply when values are saved while impex import also.You can try it and let me know if this help you.

Thanks Raj

0 Likes

Sure.. Thanks

rohit31_raj92
Active Participant
0 Likes

If the solution works, please like the answers so we can get whether solution was good for you or not.just a thought :)

Answers (0)