Sorry! You are right I forgot to ask the question in original post!
I send two more posts after that and asked my question!
In real case they are tens of tiddlers and may grow dynamically all have no 
Tag except one!
Then user select another one so this new new gets the Tag and from the 
previous Tag is removed!

On Tuesday, July 2, 2019 at 3:49:10 PM UTC+4:30, TonyM wrote:
>
> Mohammad,
>
> I was wondering if you post was a question.
>
> I have gone down this path before but now days I would swap it around
>
> Have a tiddler tagged 
>
>    - Tid1
>    - Tid2
>    - Tid3
>    - Tid4
>
> Lets call this the set-tiddler
>
> Then use a filter in a select widget to set a field to only one of the 
> above values tagging[set-tiddler]
>
> Then if you want you could change the select filter to not even list the 
> currently selected tiddler, just the balance.
>
> Then if you get smart you could make next, previous, first and last 
> buttons. I will do this one day as an essential code pattern but not right 
> now.
>
> Regards
> Tony
>
>
> On Tuesday, July 2, 2019 at 7:57:16 PM UTC+10, Mohammad wrote:
>>
>> Any idea? Any simple solution?
>>
>> On Tuesday, July 2, 2019 at 1:58:54 PM UTC+4:30, Mohammad wrote:
>>>
>>>  Assume you have
>>>
>>>    - Tid1
>>>    - Tid2
>>>    - Tid3
>>>    - Tid4
>>>
>>> User wants to have a *select widget* and choose one Tiddler
>>>
>>>    1. The action after selection is to add a Tag like *myTag* to 
>>>    selected tiddler
>>>    2. In the next round if user chooses another tiddler, the tag (
>>>    *myTag*) from previous tiddler shall be removed and new selected 
>>>    tiddler should tagged with *myTag*
>>>    3. and this will be continued
>>>
>>>
>>>    - At any time only one tiddler is tagged with *myTag*
>>>
>>>
>>>
>>> *Pseudo code*
>>> <$select 
>>>   tooltip="select a tiddler"
>>>   tiddler="mystate" 
>>>   field="myselection"
>>>   actions=<<applyTag>>
>>> >
>>> <$list filter="myfilter" variable="tid">
>>> <option value=<<tid>> > <<tid>> </option>
>>> </$list>
>>> </$select>
>>>
>>>
>>>
>>>
>>> */*Mohammad
>>>
>>>

-- 
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/4a5c72e2-d5ff-4d69-86a4-8a3c9960b058%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to