Apama Capital Markets Foundation 10.7 | Release Notes | What's New in Capital Markets Foundation 5.2 | New helper events for creating DataViews
 
New helper events for creating DataViews
The CMF now provides helper events to make it easier to create DataViews of com.apama.utils.Params events.
The com.apama.utils.SingleParamsDataView event lets you create a DataView that contains the contents of a single com.apama.utils.Params event. It creates a two-column DataView that contains a row for each key/value pair from the supplied Params event. Actions defined in the SingleParamsDataView event let you update the contents of the DataView, as well as overwrite or clear the contents, or remove the DataView.
The com.apama.utils.MultipleParamsDataView event lets you create a DataView that contains the contents of multiple com.apama.utils.Params events that conform to a schema. The MultipleParamsDataView event creates a DataView with columns that match a com.apama.utils.ParamsSchema event. Each row represents a Params events that matches the ParamsSchema event. By default, every field in the schema is a key field but you can specify key fields to identify unique rows. You pass Params events to MultipleParamsDataView events to add, update or delete selected rows.