Log inRegister
You are here: TCAO » TopicType » TopicFunction » RenderTWikiFormList

Function: RenderTWikiFormList

Renders a list of DataForms that make use of the given TWikiFormAttribute

Documentation

Parameters

  • ATTR: TWikiFormAttribute to search for, defaults to BASETOPIC
  • THEWEB: web to examin, defaults to BASEWEB

Implementation

%STARTINCLUDE%
%~~ DBQUERY{
~~~   "TopicType=~'\bTWikiForm\b' 
~~~    AND text=~'\n\| *(..)?%IFDEFINED{"%ATTR%" then="%ATTR%" else="%BASETOPIC%"}% * \|'
~~~   "
~~~   header="
*~~     ---++ <nop>DataForms 
~~~     %IFDEFINED{"%THEWEB%" then=" in the %THEWEB% web" glue="off"}%
~~~     that use the 
~~~     '%IFDEFINED{"%ATTR%" then="%ATTR%" else="%BASETOPIC%"}%' attribute$n
~~~     | *Name* | *Description* | *Application* |"
~~~   web="%IFDEFINED{"%THEWEB%" then="%THEWEB%" else="%BASEWEB%"}%"
~~~   hidenull="on"
~~~   format="| [[$web.$topic][$topic]]
~~~           | $flatten($formfield(Summary)) 
~~~           | %APPLIB%.$formfield(TWikiApplication)
~~~           |"
~~~ }%
%STOPINCLUDE%

Test

Calls to 'RenderTWikiFormList'

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Skyloom Wiki? Send feedback
Syndicate this site RSS

This website is using cookies. More info. That's Fine