Hi, in an implementation of a custom DataSource that extends SQLDataSource, I have some fields that are populated by the executeAdd / executeUpdate methods.
Now I need to execute the validation defined on those DataSource field, and I see that this can be done using this.validate() or dsRequest.validate().
I wanted to ask whether there is a preferable best practice.
For example, for efficiency reasons, it seems to me that it is possible to use dsRequest.setValidated(true) in the execute override, and then call validate() (I am not sure whether it is preferable to call it on the dsRequest or on the DataSource) after adding the values, and then set the ErrorReport if present.
Now I need to execute the validation defined on those DataSource field, and I see that this can be done using this.validate() or dsRequest.validate().
I wanted to ask whether there is a preferable best practice.
For example, for efficiency reasons, it seems to me that it is possible to use dsRequest.setValidated(true) in the execute override, and then call validate() (I am not sure whether it is preferable to call it on the dsRequest or on the DataSource) after adding the values, and then set the ErrorReport if present.
Comment