removeprefix! ;)

I had a look at the documentation and found a solution I like.

Instead of building my table rows in the loop, I do it in a macro now. 
Removing the title's prefix in the loop, I can reduce my list to:

\define qc_row(id)
  <tr>
    <td><$checkbox tiddler="QC $id$" tag="resolved"/></td>
    <td>
      <$link to="QC $id$">QC $id$</$link>
      <a href="testdirector:[S]our.qc.server/qcbin,MYDOMAIN,SOMETHINGELSE,%
5bAnyUser%5d;2:$id$">↗</a>
    </td>
    <td><$transclude tiddler="QC $id$" field="summary"/></td>
  </tr>
\end

<table>
<tr>
  <th>OK</th>
  <th>Defect Number</th>
<th>Summary</th>
</tr>

<$list filter="[prefix[QC ]!tag[resolved]!sort[title]removeprefix[QC ]]">
  <$macrocall $name="qc_row" id=<<currentTiddler>>/>
</$list>
<$list filter="[prefix[QC ]tag[resolved]!sort[title]removeprefix[QC ]]">
  <$macrocall $name="qc_row" id=<<currentTiddler>>/>
</$list>
</table>


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to