Create a data grid
Create a grid from data gathered by the event logger.
- Create a data grid:
- In theProject viewpane, right-clickMainWindow (type)and select .
- In thePropertiespane, create a dynamic link between theModelvariable and .
- Create a complex dynamic link:
- StringFormatter1
- Format
- SELECT ActiveState_Id, AckedState_Id, ConfirmedState_Id, Time, Severity, {0:sql_identifier} AS Message FROM "EventLogger1" ORDER BY "Time" DESC
- {0} StringFormatter1
- Format
- Message_{0}
- {0} DynamicLink
- {Session}/User/LocaleIds[0]
For more information about dynamic links, see Create dynamic links.
- Configure data grid columns:
- Configure the active state column:
- In thePropertiespane, double-clickDataGridColumn1and enterActiveState.
- UnderDataItemTemplate, create a complex dynamic link:
- KeyValueConverter1
- Source DynamicLink
- {Item}/ActiveState_Id
For more information about dynamic links, see Create dynamic links. - Set theTitleproperty value toActive State.
- Configure the acknowledged state column:
- In thePropertiespane, next toColumns, select and selectText column.
- Double-clickDataGridColumn1and enterAckedState.
- UnderDataItemTemplate, create a complex dynamic link:
- KeyValueConverter1
- Source DynamicLink
- {Item}/AckedState_Id
For more information about dynamic links, see Create dynamic links. - Set theTitleproperty value toAcked State.
- Configure the confirmed state column:
- In thePropertiespane, next toColumns, select and selectText column.
- Double-clickDataGridColumn1and enterConfirmedState.
- UnderDataItemTemplate, create a complex dynamic link:
- KeyValueConverter1
- Source DynamicLink
- {Item}/ConfirmedState_Id
For more information about dynamic links, see Create dynamic links. - Set theTitleproperty value toConfirmed State.
- Configure the time column:
- In thePropertiespane, next toColumns, select and selectText column.
- Double-clickDataGridColumn1and enterTime.
- Create a dynamic link between theTextproperty andNOTA: EnterTimein theInsert the dynamic link sub-path...field.For more information about dynamic links, see Create dynamic links.
- Set theTitleproperty value toTime.
- Configure the message column:
- In thePropertiespane, next toColumns, select and selectText column.
- Double-clickDataGridColumn1and enterMessage.
- Create a dynamic link between theMessageproperty andNOTA: EnterMessagein theInsert the dynamic link sub-path...field.For more information about dynamic links, see Create dynamic links.
- Set theTitleproperty value toMessage.
- Configure the severity column:
- In thePropertiespane, next toColumns, select and selectText column.
- Double-clickDataGridColumn1and enterSeverity.
- Create a dynamic link between theSeverityproperty andNOTA: EnterSeverityin theInsert the dynamic link sub-path...field.For more information about dynamic links, see Create dynamic links.
- Set theTitleproperty value toSeverity.
Fornire un feedback