Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
Experts,
I am trying to write a validator on Move action, I tried to write a simple validator which extends wt.dataops.containermove.processors.MoveValidator,
Registered my custom validator in service.properties as:
wt.services/svc/default/com.ptc.core.ui.validation.UIComponentValidator/CONTAINERMOVE/null/0=ext.company.validators.CompanyMoveValidator/duplicate
When I do a jcaDebug in UI, the move action shows the name of my Custom Validator, But it doesn't process any code in "validateFormSubmission" method when I click finish on Move action in UI.
Can you help in what I may be missing here?
Abhishek
Hello,
First of all, do you see your validator on the action in the customization tab ?
Also, I'm not sure the FormValidationSubmission can be used, you can try first with the performFullValidation.
Florent
Hi Florent ,
I see the Validator in object actions when I turn on JCA Debug, I added preValidateAction method and that's being called, I also tried with validateSelectedMultiSelectAction but that also doesnt get called like validateFormSubmission.
Abhishek
Hum, unfortunately this action is not a JCA action but a Template Processor one.
Hence it's not possible to implement a form validation, using validator at least.
You may have to consider Javascript action or maybe a listener.