Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
titleDescription

Using the Display Table Macro by setting the Identifier to filtered in conjunction with the Transclusion Macros Replacement feature and the Remote Control (Feature) for filtering.

Section
titleTry It Yourself

Start to try it out:


projectdoc-display-table
doctypegeneric
selectName, Short Description, Iteration
render-idfiltered-mytable
where$<DirectAncestorId>=[112494396]

projectdoc-

html-span-macro
span<span id="span-wheres-filtered-mytable" data-wheres-filtered-mytable='{"chrome1":"Chrome1","firefox1":"Firefox1"}'></span>

Display Table
doctypegeneric
selectName, Short Description, Iteration
render-idfiltered-mytable
where$<DirectAncestorId>=[112494396]



Display Table
doctypegeneric
selectName, Short Description, Iteration
render-idfiltered-other
where$<DirectAncestorId>=[112494396]


Section
titleConfigure a Filter Yourself

Now you can follow the steps and use a filter for your own:

Steps


Section
titleSetting up the Display Table Macro

Choose a doctype, select and where statement.

Set the Identifier to filtered.


Section
titleTransclude the Filter Code

Use the transclusion macro to transclude the HTML code for filtering (get the code) .


Provide the options:

datalistselects=<datalist id="selects"><select><option value="Name">Name only</option><option value="Name, Short Description, Iteration">With Iteration</option></select></datalist>
datalistwhere=<datalist id="wheres"><select><option value="$<Iteration>=[Facade]">Facade</option><option value="$<Iteration>=[Filled]">Filled</option><option value="$<Iteration>=[Finished]">Finished</option></select></datalist>




As alternative empty options can be used if the dropdown functionality is not needed:

datalistselects=<datalist id="selects"></datalist>
datalistwhere=<datalist id="wheres"></datalist>




...