Renders a single auto-refreshing value fetched from the database via RPC and displayed in an inline div.
SMARTVALUE — 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 <div> pre-populated with the current value from self.data_list[0][0], followed by a <script> that polls RpcGetlist via RemoteProcedureCall on a timer and replaces the div's inner HTML with the returned value. If _Options sets initial_render to rpc, rpc_first, placeholder, or deferred, the initial value is replaced with a loading placeholder until the first RPC response arrives.
RpcGetlist(data)Executes self._Query with $param1$, $param2$, $param3$, $user$, and $usergroups$ substituted from the RPC payload. Returns a single scalar value processed through process_text.
axion.rpc.js for the RemoteProcedureCall function.self._Refresh (seconds); multiplied by 1000 for milliseconds._Options.loading_label controls the loading placeholder text when initial rendering is deferred._Aswidget flag controls whether self._Title is shown; when set to 'Y' or '-', the title is suppressed.document.visibilityState === "visible".