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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Promotion Request create form submission validator

akosolapov-2
14-Alexandrite

Promotion Request create form submission validator

Hi.

I'm trying to add form submission validation for Promotion Request creation wizard. But it doesn't work.

So:

1) i have my own validator class ext.nikiet.validators.CreatePRValidator with implemented validateFormSubmission method
2) this class is registered in codebase/service.properties

wt.services/svc/default/com.ptc.core.ui.validation.UIComponentValidator/CreatePRValidation/null/0=ext.nikiet.validators.CreatePRValidator/duplicate


3) this validator is added to action in PromotionRequest-actions.xml

<action name="create" .... afterVK="CreatePRValidation">


But CreatePRValidator is not created, and its method validateFormSubmission is not invoked during promotion request creation.
In jcaDebug mode DefaultUIComponentValidator is displayed for wizard ok button.
What am i doing wrong?
Thanks.

 

ps: windchill version 11.0 M030-CPS05

ACCEPTED SOLUTION

Accepted Solutions

"afterVK" should be registered for last step of wizard, not for the main action.

View solution in original post

1 REPLY 1

"afterVK" should be registered for last step of wizard, not for the main action.

Announcements

Top Tags