Skip to content

Display Builder Table Compatibility

Kay Kasemir edited this page Oct 13, 2021 · 4 revisions

The Table widget is somewhat different from all other widgets because simply connecting it to a PV is rarely sufficient. As a PV, it only accepts a pva:... PV Access NTTable type of PV, which at this time is not in common use by IOCs. To create an NTTable, you need to create a custom PVAccess server, for example in python.

The primary use case of the table widget is based on a script to populate the widget, and maybe also to read the content of the widget and then write it to PVs.

For key API, check the display builder examples and the TableWidget javadoc included in the online help.

Some differences from the BOY version:

BOY Display Builder
table = widget.getTable() widget
table.setColumnHeaders() widget.setHeaders(list of headers)
table.setContent() widget.setValue(list of rows)
table.setCellText(..) widget.setCellValue(row, col, text)
table.setCellBackground(..) widget.setCellColor(row, col, WidgetColor)
table.getContent() widget.getValue()

Clone this wiki locally