RenderAdhocWidget (open)
Render a widget
Syntax
LOADLIB "mod::publisher/lib/widgets.whlib";
MACRO RenderAdhocWidget(RECORD widgetinstance, OBJECT basefsobject, RECORD options)
Parameters
RECORD widgetinstance
Widget instance data. Should include a WHFS type
OBJECT basefsobject
WHFS 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 options
Options
previewcontext
If present, previewcontext to use for rendering. DEPRECATED: Simply pass your previewcontext object as a webdesign
rtdtype
If present, forces the value of 'rtdtype'. Normally the basefsobject should determine this
webdesign
If present, webdesign or previewcontext to use for rendering. Triggers live rendering if it's a webdesign, preview rendering if it's a preview context