Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to get hasRelatedRecord validator to use customized DataSource

    As you may recall from my previous posts, we're customizing some of our data sources "on the fly" to add fields and other customizations that are dependent on various configuration tables in our app. We've managed to find a way to get all of the Isomorphic server side code to reference these modified datasources, but have run into another scenario that I'm not sure how to address.

    We'd like to use the "hasRelatedRecord" validator, but can't seem to find a way to have the "relatedDataSource" use our customized datasource. Is there a point at which we can override the this and point it to our customized data source instead of having it load the standard ds.xml?

    #2
    This isn't possible with the existing APIs, but we could add a registry pattern or similar to allow you to register methods that construct DataSources on the fly. If you'd like to pursue that, it would be a Feature Sponsorship.

    Comment

    Working...
    X