Announcement

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

    SQLDataSource ignores operationBinding.invalidateCache="true"?

    SC_SNAPSHOT-2011-07-05/PowerEdition

    I've modified the datasource of the sample #customExport and I've added:
    <operationBinding operationType="fetch" operationId="fetch" invalidateCache="true">
    <serverMethod>fetch</serverMethod>
    </operationBinding>

    then I was expecting that countryList.fetchData(null) will always fetch data...but this is not the case.
    Have I misunderstood this setting or is it a bug?

    #2
    You've misunderstood the setting. operationBinding.invalidateCache will cause invalidateCache to be set on all dsResponses for that operationBinding. But if you look at the docs for listGrid.fetchData(), it makes a client-side determination of whether a new fetch is required, and this does not involve a DSResponse.

    Comment

    Working...
    X