This is going to take a macro I think to help glue things together. Here's 
my version:

\define myfilter() [search:$(fieldname)$[$(mysearch)$]]
<$vars mysearch="1.0.1">
<$list filter="[fields[]prefix[field]]" variable="fieldname">
<$list filter=<<myfilter>> >
Found string "<<mysearch>>" in field "<<fieldname>>" in tiddler 
"<<currentTiddler>>"<br/>
</$list>
</$list>
</$vars>

which works with the sample text I created.

Note that I used "prefix" to look for "field", so that I wouldn't get back 
a ton of irrelevant hits (testing on tiddlywiki.com)

Good luck!

On Thursday, January 23, 2020 at 3:09:22 PM UTC-8, Aaron Haslem wrote:
>
> Greetings Folks,
>
> I am trying to create a list filter that searches all fields for a 
> specific line of text. 
> I am creating a maintenance log of over 30 systems.  I created a tiddler 
> for each system.  Each tiddler contains the same set of fields.
> field1
> field2
> field3...
>
> In field1 some systems have 1.0.x ....x is a variable number, some systems 
> have 2.0.x in field 1...etc.
>
> Then, other systems have 1.0.x in field2 rather than field1...
>
>  I want to create a list of all tiddlers that have 1.0.1 in a field.  This 
> could be in field1, field2, or field3.
>
> I would like to list out the tiddler AND the field the 1.0.1 was found in.
>
> I can get AdvancedSearch to return the tiddlers I am looking for by 
> searching for 1.0.1 in the Field Search Bar.
>
> How do I construct a <$list filter=.... that will search all fields for 
> 1.0.1, and then list out the Tiddler and the Field
>
>
> <$list filter="[fields[]]" variable="fieldname">
> <$list filter="[get<fieldname>prefix[1.0.1]]">
>
> This is what is working so far.  I think.  I know that there are 5 
> tiddlers that contain 1.0.1 in a field.  And I get 5 results in the list, 
> but all 5 results are just 1.0.1 as orphaned links.  No Tiddler Title or 
> the field.  Just 1.0.1.  Since I get 5 results and I know there are 5 
> tiddlers, I believe the filter is close.  But, how do I get the results to 
> list out the Tiddler and the field name instead of the contents of the 
> field?
>
> Thanks for any assistance you may provide.
>
> Aaron
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d9630829-8690-4848-8627-1e7b18e1b28c%40googlegroups.com.

Reply via email to