RenderAdhocWidget (open)
Render a widget
Syntax
LOADLIB "mod::publisher/lib/widgets.whlib";
MACRO RenderAdhocWidget(RECORD widgetinstance, OBJECT basefsobject, RECORD options)Parameters
RECORD widgetinstanceWidget instance data. Should include a WHFS type
OBJECT basefsobjectWHFS object that serves as context for specific renderings. If this object has a rtdtype, it will be used for rendering. If not set, we'll assume a rtdtype.
RECORD optionsOptions
previewcontextIf present, previewcontext to use for rendering. DEPRECATED: Simply pass your previewcontext object as a webdesign
rtdtypeIf present, forces the value of 'rtdtype'. Normally the basefsobject should determine this
webdesignIf present, webdesign or previewcontext to use for rendering. Triggers live rendering if it's a webdesign, preview rendering if it's a preview context