Declined
Last Updated: 04 Nov 2021 15:48 by ADMIN
Adrian
Created on: 08 Apr 2014 09:29
Category: Data Source
Type: Feature Request
1
Setting aggregate(..) on datasource should send unique action to change handler
We have a MVVM object with a change handler.

One of the public properties on this MVVM object is a datasource.

This datasource has some default aggregate configuration, but some aggregate configuration is added later. (see first screenshot)

However, when the dataSource.aggregate(..) method is called the MVVM's change handler fires (see second screenshot). This is ok, but there is nothing to distinguish that the change handler has been fired ONLY because the aggregate configuration has changed. When run some code when the datasource is defined or loaded, but we don't want to run the same code when the aggregates changes.

Vice-versa someone might want to run just a smaller piece of code when the aggregate config changes.

Can the event that gets fired to the mvvm change binding have an e.action = 'aggregate' or similar?
0 comments