On Fri, Jun 4, 2021 at 9:44 PM [email protected] <[email protected]>
wrote:

> Hi Mohammad,
>
> That lists the title of the tiddlers that have the field warning. It
> should list all unique values out of all fields warning.
>

Right! So it works correctly! Now you need to populate them and display
them!
The simplest is using a macro to populate, then wikify and use enlist!

This way:
First: it finds all tiddlers with the field warning
Next: The macro populate all values in warning field of those tiddlers
Last: A wikify gets the values and an enlist will show them while removing
duplicates






>
> Op vrijdag 4 juni 2021 om 18:03:26 UTC+2 schreef Mohammad:
>
>> It has nothing to do with tags, just search in "all fields warning" and
>>> add or remove the value in field warning of the current tiddler.
>>
>>
>> Then you need to use
>>
>> [all[tiddlers]has:field[warning]]
>>
>>
>> Look at "has operator" on tiddlywiki.com
>>
>>
>>
>> Best wishes
>> Mohammad
>>
>>
>> On Fri, Jun 4, 2021 at 7:20 PM [email protected] <[email protected]>
>> wrote:
>>
>>>
>>> It has nothing to do with tags, just search in "all fields warning" and
>>> add or remove the value in field warning of the current tiddler.
>>>
>>>
>>> Op vrijdag 4 juni 2021 om 15:05:00 UTC+2 schreef Mohammad:
>>>
>>>> <$list filter="[tags[]!is[system]]" variable=warning-value>
>>>>
>>>> means list all Non system tags!
>>>>
>>>>   <$list filter="[tags[]]" variable=warning-value>
>>>>
>>>>   means list all  tags including systems tags!
>>>> <$vars items={{{[<currentTiddler>get[warning]] }}} >
>>>> <<list-search filter:"[enlist<items>]" search:"search:title">>
>>>> </$vars>
>>>>
>>>> create a list search lets you to search in the warning field of
>>>> current tiddler
>>>>
>>>> Best wishes
>>>> Mohammad
>>>>
>>>>
>>>> On Fri, Jun 4, 2021 at 4:35 PM [email protected] <[email protected]>
>>>> wrote:
>>>>
>>>>> Thanks Mohammad,
>>>>> what you have done is working. Thank you so much!
>>>>>
>>>>> Only it does not display the values from the "warning" fields.
>>>>>
>>>>> By replacing this code:
>>>>> <$list filter="[tags[]!is[system]]" variable=warning-value>
>>>>> with this:
>>>>> <$list filter="[tags:warning[]]" variable=warning-value>
>>>>>
>>>>> I at least get it working.
>>>>>
>>>>>
>>>>> What I mean by: [tags:warning[]]?
>>>>> I honestly have no idea. I've been working on this piece of code for a
>>>>> while and couldn't figure it out. Somehow that got in there and it works.
>>>>>
>>>>> Maybe you have another suggestion?
>>>>>
>>>>> Thank you,
>>>>>
>>>>> Op vrijdag 4 juni 2021 om 13:29:28 UTC+2 schreef Mohammad:
>>>>>
>>>>>> This second code also search in field warning using Shiraz list-search
>>>>>>
>>>>>> <$vars items={{{[<currentTiddler>get[warning]] }}} >
>>>>>> <<list-search filter:"[enlist<items>]" search:"search:title">>
>>>>>> </$vars>
>>>>>>
>>>>>> <$count filter="[tags[]!is[system]]" />
>>>>>>
>>>>>> <$list filter="[tags[]!is[system]]" variable=warning-value>
>>>>>>
>>>>>> <$button type="button" class="btn btn-warning btn-mini" >
>>>>>>
>>>>>> <$action-listops $field="warning" $subfilter="[<warning-value>]" />
>>>>>> {{$:/core/images/new-button}}
>>>>>> </$button>
>>>>>> <$button type="button" class="btn btn-info btn-mini" >
>>>>>> <$action-listops $field="warning" $subfilter="-[<warning-value>]" />
>>>>>> {{$:/core/images/delete-button}}
>>>>>> </$button>
>>>>>> <$text text=<<warning-value>>/>
>>>>>> </$list>
>>>>>>
>>>>>> I modified your filter, as I think yours is not correct!
>>>>>>
>>>>>>
>>>>>> Best wishes
>>>>>> Mohammad
>>>>>>
>>>>>>
>>>>>> On Fri, Jun 4, 2021 at 2:11 PM [email protected] <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> To avoid duplications of values in fields warning;
>>>>>>> list all unique values from the warning field of all tiddlers with 2
>>>>>>> buttons: Add and Remove. (Add and remove from $(currentTiddler)$ )
>>>>>>>
>>>>>>>
>>>>>>> <$list filter="[tags:warning[]]" variable=warning-value>
>>>>>>>
>>>>>>> <$button type="button" class="btn btn-secondary btn-mini" >
>>>>>>> <$action-listops $field="warning" $subfilter=<<warning-value>>/>
>>>>>>> {{$:/core/images/new-button}}
>>>>>>> </$button>
>>>>>>> <$button type="button" class="btn btn-secondary btn-mini" >
>>>>>>> <$action-listops $field="warning" $subfilter=<<warning-value>>/>
>>>>>>> {{$:/core/images/delete-button}}
>>>>>>> </$button>
>>>>>>> <<warning-value>>
>>>>>>> </$list>
>>>>>>>
>>>>>>>
>>>>>>> 1) When the value is added to the field, the square brackets are
>>>>>>> missing. How do I ensure that the value is noted between square 
>>>>>>> brackets?
>>>>>>>
>>>>>>> 2) I am unable to remove the value from the field.
>>>>>>> $subfilter="-123" is working. But how do I get it to work referring
>>>>>>> to <<warning-value>>?
>>>>>>>
>>>>>>> 3) It would be totally awesome if I had a search function. By
>>>>>>> replacing <$list filter with;
>>>>>>>
>>>>>>> <<list-search filter:"[tags:warning[]]" placeholder: "Search field
>>>>>>> warning">>
>>>>>>>
>>>>>>> Which works fine on its own but I can't get it implemented.
>>>>>>>
>>>>>>>
>>>>>>> Can somebody please help me out?
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>> 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/19c9a8cf-efbf-4a6e-bb51-76d6e96c5a14n%40googlegroups.com
>>>>>>> <https://groups.google.com/d/msgid/tiddlywiki/19c9a8cf-efbf-4a6e-bb51-76d6e96c5a14n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>>> .
>>>>>>>
>>>>>> --
>>>>> 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/6ad78595-2389-4d2a-9423-af537904700cn%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/tiddlywiki/6ad78595-2389-4d2a-9423-af537904700cn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>> 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/b512cc83-33b3-46fd-a729-554d55088ccdn%40googlegroups.com
>>> <https://groups.google.com/d/msgid/tiddlywiki/b512cc83-33b3-46fd-a729-554d55088ccdn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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/3a29948e-7c8b-45cf-9c26-17565464b44en%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/3a29948e-7c8b-45cf-9c26-17565464b44en%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAAV1gMBQA%2BSDbj3ZP1WD-imBiXAjon%2BMOUmFkwomomjEHXgHSg%40mail.gmail.com.

Reply via email to