Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How can I use invalidComponentTracker to do a local validation

2687519Oct 25 2017 — edited Oct 27 2017

Hi,

JET version: 3.1

We are using the invalidComponentTracker for helping in validation of our UI controls. I see that JET creates a tracker object while creating the component and assigns it to a knockout observable variable. Then this could be used to 'showMessages' and there by validate the component.
My use case is that, i need to validate only certain fields in a form, on clicking a button. Suppose there are 10 fields, i need to validate only 2 of them. Tracker.showMessages is validating all the 10 fields.

I tried iterating all the fields, get the WidgetConstructor of each field and call 'validate' method, but i can have fields that do not have validate method(like ojStatusMeterGauge).

What could be the best way to achieve this functionality?

Thanks!

Comments
Post Details
Added on Oct 25 2017
6 comments
211 views