Publish: each control can publish (or broadcasting) variable value for one or multiple variables, including following cases:
- Flexible to set or not to set any variable values
- Flexible to set one or multiple variable value
On the other hand, each control can subscribe variable and act upon variable values, including following cases:
- Flexible to take or not to take any variable
- Flexible to react one or multiple variables
- Flexible to react the logic based on multiple variable combined
The diagram below shows this idea, variables 1, 2, …N are available globally on a report, where each control can set a value for one or multiple variables, and can see all changes of all variables at the same time. However, whether a control act on the change of one or multiple variables is based on whether this control subscribes these variables or not.
List, Crosstab and Chart are used for the attached sample, please download report specification and .mht file for review.
You can click any item on list, crosstab and chart to see the highlighted selection in sync. This interactivity can clearly demonstrate publish-subscribe concept.
The reason is that all three controls share the same variables for both publishing and subscribing
No comments:
Post a Comment