Renders one or more AdminLTE small-box widgets that display a live percentage counter, note, icon, and colour, polling the server at a configurable interval.
LIVEWIDGET — set as ReportType in def_report.
def Render(self, Param1="", Param2="", Param3="") -> str:
Parameters are unused. Iterates data_list; each row is expected to provide [0] counter, [1] note, [2] icon class (optional, defaults to ion ion-stats-bars), [3] CSS colour class (optional, defaults to bg-success). Refresh interval is taken from self._Client_refresh (seconds, converted to milliseconds). Returns an HTML string.
RpcGetseries(data)RPC endpoint. Accepts param1, substitutes $param1$ in self._Query, executes via sql_get_values, and returns the result set.
RpcGetlist(data)Alternative RPC endpoint that executes the query via SqlGetSeries and converts date values to strings before returning.
GetTemplate()Returns the JavaScript polling script template as a string, with $placeholder$ tokens replaced during Render.
The counter value is displayed with a % superscript. The widget title is suppressed when self._Aswidget is "Y" or "-". Polling respects document.visibilityState to avoid unnecessary requests when the tab is hidden.