Announcement

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

    DataSource: setDefaultParams to setImplicitCriteria?

    Hi,
    we used (in a older 5.x SmartGWT version) where the DataSource.setDefaultParams(Map map) enforced the values over the DataSource operations.
    Just like Mathias used in this thread: http://forums.smartclient.com/forum/...server-anymore
    Now, I understand (and agree) that the setDefaultParams was fixed.
    We tried the method DataSource.setImplicitCriteria(Criteria crit), and it works fine, but only for fetch operations.

    Is there a way to set in a Datasource that the values used in the setImplicitCriteria method will be enforced over UPDATE and INSERT/ADD operations also?
    If not, what do you guys suggest as best practice?

    #2
    If this is a security feature, none of these client-side approaches are correct; use server-side enforcement, either via <criteria> tags in your <operationBinding>, or via a DMI that modifies the DSRequest before it executes. These approaches are covered in the QuickStart Guide, Server Framework chapter.

    Comment

    Working...
    X