For "auctor", I changed the list filter to:

    <$list filter="[<data>indexes[]prefix{$:/state/table}sort[title]]">

This seemed to work BUT you have to initialize the state tiddler by filling 
the edit field several times before the list stops throwing errors. After 
that it seems to work fine. I feel that this may be a subtle bug where the 
{...} transclusion is returning a null internally rather than an empty 
string.

Since it throws errors -- be sure to make backups first!

Good luck
-- Mark

On Saturday, September 15, 2018 at 5:13:20 PM UTC-7, Magnus wrote:
>
> Hi, I'm trying to make a custom search from two data-tiddlers. I want to 
> limit the search and only show the results that match the search field but 
> can't make it work. Any help appreciated :)
> /Magnus
>
> <table>
>   <tr>
>     <td>Limit to: <$edit-text tiddler="$:/state/table" tag="input" 
> default="" placeholder={{$:/language/Manager/Controls/Search/Placeholder}}/>
>     </td>
>   </tr>
>   <tr>
>     <td><$radio  tiddler="$:/state/table" field="selection" 
> value="abbreviations"> Abbreviations</$radio>
> <$radio  tiddler="$:/state/table" field="selection" value="auctor"> 
> Auctor</$radio>
>
> <$reveal state="$:/state/table!!selection" type="match" 
> text="abbreviations">
>    <br><br>
>     <table class="nolines">
>           <$list filter="[[$:/_dictionary/abbreviation]] 
> [[$:/_dictionary/pronunciation]] +[indexes[]]">
>       <tr>
>           <td><<currentTiddler>></td>
>           <td><$view tiddler="$:/_dictionary/abbreviation" 
> index=<<currentTiddler>>/></td>
>           <td><$view tiddler="$:/_dictionary/pronunciation" 
> index=<<currentTiddler>>/></td>
>         </tr>
>         </$list>
>       </table>
> </$reveal>
> <$reveal state="$:/state/table!!selection" type="match" text="auctor">
>    <br><br>
>       <$set name="data" value="$:/_dictionary/auctor">
>       <$list filter="[<data>indexes[]sort[title]]">
>
>       ;{{!!title}}
>       :<$transclude tiddler=<<data>> index=<<currentTiddler>>/>
>       </$list>
>       </$set>
> </$reveal>
>     </td>
>   </tr>
> </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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bc8dd4e9-938f-40ab-8e0e-f0948db22051%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to