Renders a WebForm by either loading it directly via WebForm or by emitting a JavaScript axion_formload call that fetches the form asynchronously.
FORM — set as ReportType in def_report.
def Render(self, Param1="", Param2="", Param3="") -> str:
Param1 — form/report code.Param2 — form GUID or primary parameter.Param3 — secondary form parameter; appended to the URL path when DO_DIRECT_RENDER is False.In indirect mode (default, DO_DIRECT_RENDER = False), returns a <div> containing a <script> tag that calls axion_formload(siteurl, Param1, form_guid). In direct mode, instantiates WebForm locally and returns its rendered HTML. Loads localforage.js, axion.rpc.js, and howler.min.js.
The module-level constant DO_DIRECT_RENDER controls render mode; it defaults to False. Magic CSS animations from magic.min.css (cdnjs) are also loaded. Param4 is accepted in the Render signature but currently excluded from the forwarded URL.