Mark,

My first approach was to use my code but change the list-reference from a 
macro to the use of $vars as you did and it* immediately worked.*
       <$vars list-reference={{{ [<instance>addsuffix<field-delimiter>
addsuffix<list-field>addprefix<left-curlys>addsuffix<right-curlys>] }}} >
       <<instance>> - <<list-field>>  <<list-reference>>
       <$button>
           <$action-listops $field="selected-lists" $subfilter=<
<list-reference>>/>
           +
       </$button><br>
       </$vars>

After a false start I converted this to the set widget, since there was 
only one variable, it too works now
       <$set name=list-reference value={{{ [<instance>addsuffix[!!]addsuffix
<list-field>addprefix<left-curlys>addsuffix<right-curlys>] }}} >
       <$text text=<<instance>>/> - <<list-field>>
       <$button>
           <$action-listops $field="selected-lists" $subfilter=<
<list-reference>>/>
           +
       </$button><br>
       </$set>

*Thanks you helped me out of a bind.*

I will see what I can do to generalise this and publish it.

   - Basically it searches all tiddlers using one or more custom list 
   fields and on a click adds the tiddler-name!!text reference  to a tiddler 
   field (Wrapped in transclude brackets)
   - Now if a list uses this field in its filter it will list all titles in 
   all included list-fields. A list of multiple-list members.
   - This is another step in finding a way to make lists within fields even 
   more useful

I think this shows how we could extend the handling of lists further.

Regards
Tony


On Monday, March 23, 2020 at 4:44:12 PM UTC+11, TonyM wrote:
>
> Mark,
>
> Thanks this really does work. I will try and implement it into my own. I 
> am at a loss to know why mine was not working. Thanks very much
>
> Tony
>
> On Monday, March 23, 2020 at 4:20:47 PM UTC+11, Mark S. wrote:
>>
>> Since I don't quite know what you're trying to accomplish, I've put 
>> together a version that will append braces, though using a slightly 
>> different approach. See attached for field values.
>>
>> <$vars lc="{{" rc="}}" 
>> tiddlername={{!!tiddlername}}
>> fieldname={{!!fieldname}}
>> >
>>
>> <$vars listreference={{{ [<tiddlername>addprefix<lc>
>> addsuffix[!!]addsuffix<fieldname>addsuffix<rc>] }}} >
>>
>> <$button>Add to my list
>> <$action-listops $field="mylist" $subfilter=<<listreference>>/>
>> </$button>
>>
>> </$vars>
>> </$vars>
>>
>>
>>
>> On Sunday, March 22, 2020 at 5:36:38 PM UTC-7, Mark S. wrote:
>>>
>>> I don't know about the advisability of a list field with all 
>>> transclusions, but this worked right out of the box:
>>>
>>> <$button>Add to my list
>>> <$action-listops $field="mylist" $subfilter="{{tiddler3!!otherfield}}"/>
>>> </$button>
>>>
>>> On Sunday, March 22, 2020 at 4:14:03 PM UTC-7, TonyM wrote:
>>>>
>>>> Folks,
>>>>
>>>> I am enhancing an app and would like to select from a tiddler/fieldname 
>>>> pair available and add it to a list field
>>>>
>>>> The list field selected-lists will subsequently look like this
>>>> {{tiddler1!!fieldname1}} {{tiddler2!!fieldnameA}} {{tiddler2!!
>>>> fieldnameB}}
>>>>
>>>> I now I will need to subsequently reorder, add and remove items from 
>>>> this list but they are not traditional titles
>>>>
>>>>    - Has anyone done something like this before
>>>>    - Can the list ops operators help in this format
>>>>    - Should I instead store [[tiddlername1!!fieldname1]]?
>>>>
>>>> Once populated I use the selected-lists field to provide input to a 
>>>> list/table of all instances, contained in all named lists.
>>>>
>>>> Your guidance would be appreciated
>>>>
>>>> Regards
>>>> Tony
>>>>
>>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/49c5da49-febb-46c1-8bde-e617ac47f3b9%40googlegroups.com.

Reply via email to