Renders a dynamically refreshing table with toggle buttons that show or hide individual columns.
TABLESHOWHIDE — set as ReportType in def_report.
def Render(self, Param1="", Param2="", Param3="") -> str:
Param1, Param2, Param3 — substituted into $param1$, $param2$, $param3$ placeholders in the query, passed to RpcGetlist.Returns an HTML block consisting of a Bootstrap nav-pills row of column toggle buttons (one per column, excluding those in hideFilter), followed by the table container and the JavaScript that fetches data via RPC and builds the table with <col> elements for CSS visibility toggling.
RpcGetlist(data)Executes self._Query with $param1$, $param2$, $param3$, $user$, $usergroups$, and $usercompany$ substituted from the RPC payload. Returns a list of dicts with dates converted to strings and binary prefixes stripped.
Options read from self._Options JSON:
| Key | Effect |
|---|---|
columns |
Dict keyed by column name with label, width, and align per column. |
hideFilter |
List of column names to exclude from the toggle button bar. |
showText |
Prefix text for show-column buttons (default "Show"). |
hideText |
Prefix text for hide-column buttons (default "Hide"). |
visibility: collapse on <col> elements; the toggle function preserves visibility state across table refreshes.axion.rpc.js for the RemoteProcedureCall function.self._Refresh (seconds); defaults to no auto-refresh (0) when unset or invalid.