Cd.K
What you ask is possible, but I am not so sure if its the best way, in some
ways you want to drive a special search and make it be used in the standard
search?
Here are some tips that could lead to your suggested solution or a better
one
- $:/core/ui/AdvancedSearch/Filter is the tiddler containing the
filtered search
- In you look inside you notice
- The Search String is stored in $:/temp/advancedsearch (Get a button
to set this)
- $:/tags/Filter is used to store saved filters such as
$:/core/Filters/RecentSystemTiddlers (Clone and Make your own)
- The Tag $:/tags/AdvancedSearch adds a tiddler to the advanced
search menu
Or create a tiddler called "My Search" tag it with $:/tags/AdvancedSearch
set the caption field to My Search
Filter-Var: <$edit-text tiddler="$:/temp/filtervar" tag=input/><br>
Filter: <$edit-text tiddler="$:/temp/filter" tag=input/> can also use
`<filter-var>`<br>
<$set name=filter-var value={{$:/temp/filtervar}}>
<$set name=filter value={{$:/temp/filter}}>
<$list filter={{$:/temp/filter}}>
</$list>
</$set>
</$set>
This will appear as a tab in advanced search
However you can open this directly after setting the values you want, so in
another tiddler create a button
This will set the values then open "My Search"
<$button to="My Search">
<$action-setfield $tiddler="$:/temp/filtervar"
text="[is[current]fields[]]"/>
<$action-setfield $tiddler="$:/temp/filter"
text="[fields[]!subfilter{$:/temp/filtervar}]"/>
Go
</$button>
Changes the text= values as needed
You can use
{$:/temp/filtervar}
or
<filter-var>
in your filter
Regards
Tony
On Tuesday, September 24, 2019 at 1:55:13 AM UTC+10, Cd.K wrote:
>
> TonyM
>
> On Monday, September 23, 2019 at 6:48:18 AM UTC+2, TonyM wrote:
>
>
>> Filter-Var: <$edit-text tiddler="$:/temp/filtervar" tag=input/><br>
>> Filter: <$edit-text tiddler="$:/temp/filter" tag=input/> can also use
>> `<filter-var>`<br>
>> <$set name=filter-var value={{$:/temp/filtervar}}>
>> <$set name=filter value={{$:/temp/filter}}>
>> <$list filter={{$:/temp/filter}}>
>>
>> </$list>
>> </$set>
>> </$set>
>>
>>
> *That's awesome!*
>
> And it's the answer to my (sub-) question in this thread here above: How
> to use a variable in Advanced Search: How do I apply this hint in my case?
> <https://groups.google.com/d/msg/tiddlywiki/zssmbBGM99w/Ep8xqCEbBwAJ>
>
> Do you think you could extend this approach in the following way?
> - in a tiddler (e.g. titled: "automation task") with
> - your Filter-Var & Filter code, optically separated in its own frame
> - this frame/section contains in addition a button labled"execute/run"
> - and you click the button
> - to open the Advanced Search tiddler
> - to jump to the tab/register "Filter"
> - to insert `[fields[]!subfilter{$:/temp/filtervar}]`
> - and as result the Advanced Search lists the matches
>
> Is something like this possible with WikiText?
>
>
> Regards
> Cd.K
>
>
>
>
>>
--
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/39e120de-32eb-4ccc-88d2-0d992b0afa1b%40googlegroups.com.