Harry,

I suggested the list widget <$list not the list-links macro who uses bullet 
points for the list.

Also  I would be inclined to set your values outside the table and keep it 
simple in side the table

<$set name=agchair filter="[field:of1[27341089]]"> <!-- if this works? -->
<$set name=incumbent-chair value={{senate agriculture 
committee!!incumbent_chair}} ><!-- example like my previous one-->

| !Committee | !Chair |
| !Agriculture | <<agchair>> |

</$set></$set>


On Sunday, 25 July 2021 at 11:41:30 UTC+10 Harry wrote:

> Hi Tones,
>
> Thanks for your reminder! I have looked into the dynamic table but it 
> seems that it does not allow me to customize the headers of columns and 
> rows. Following your lead, I have tried to use list-links, but am still 
> hitting some roadblocks. The code I'm currently trying is :
> | !Committee | !Chair |
> | !Agriculture | <<list-links "[field:of1[27341089]] 
> [field:of2[27341089]]">> |
>
> 27341089 is a unique code I assign for agriculture chair, so when a new 
> chair takes place, I'll update the relevant tiddler with the fields to make 
> sure they auto-update in the table. However, the layout has a dot (see the 
> attached pic, yellow shaded). Is there anyway that I can tweak the macro to 
> remove the dot? Or should I try some different routes? Thanks a million!
>
> Best
> Harry
>
>
> TW Tones <[email protected]> 于2021年7月23日周五 下午8:08写道:
>
>> Harry,
>>
>> There are arrange of approaches you can use here. There are already *dynamic 
>> table* solutions or the content of your table can refer to variables or 
>> transclusion such that if they change it is reflected in your table. I tend 
>> to populate tables using the list widget so its the result of the list that 
>> finds the content even when it changes.
>>
>> Using your example the table cell could contain {{senate agriculture 
>> committee!! incumbent_chair}} which means it can be nothing but the value 
>> there in.
>>
>> Regards
>> Tones
>> On Saturday, 24 July 2021 at 09:08:25 UTC+10 Harry wrote:
>>
>>> Hi all,
>>>
>>> I have a niche question about creating an auto-updating table and wonder 
>>> if anyone can give me some guidance.
>>>
>>> To illustrate the specific context, let's say I'm trying to create a 
>>> table of all chairs and ranking memebers of the senate committees. The 
>>> table would look like this:
>>> | Committee | Chair | Ranking Member| 
>>> | Agriculture | 1 | 2 | 
>>> | Armed Service | 3 | 4 |
>>>
>>> When the agriculture chair changes from “Jane Doe (FL)” to "John Smith", 
>>> I have to manually change the code entry of cell 1 from "[[Jane Doe|Jane 
>>> Doe (FL)]],,D,," to "John Smith,,R,,".
>>>
>>> Instead of manually putting codes into cells 1 through 4, I wonder if 
>>> there is a way that the table could update itself, since the chairs and 
>>> ranking members change from time to time.
>>>
>>> What I'm currently exploring is to creat two fields in each committee's 
>>> tiddler. Say for tiddler "senate agriculture committee", I creat two fields 
>>> "incumbent_chair" and "incumbent_ranking". My hope is that there can be 
>>> some way that links cell 1 with the "incumbent_chair", so that whenever I 
>>> change the "incumbent_chair" field, cell 1 in the table above would 
>>> automatically update itself (with all the formatting noted above). So far 
>>> this is not working out, and the best I can do now is to use "<$view 
>>> tiddler= field=/>" which only allows the table to update cell 1 as the text 
>>> of the field, not as a tiddler that can be clicked and redirected, nor can 
>>> I add specific formatting as mentioned in the example above.
>>>
>>> Is there anyway that I can write a code to reflect this need? Very much 
>>> appreciate all the help!
>>>
>>>
>>> Best
>>>
>>> Harry
>>>
>>>
>>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "TiddlyWiki" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/tiddlywiki/wE7dVR_oBnc/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/d5f15b6e-5496-4517-8392-a0fd8c8903c7n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tiddlywiki/d5f15b6e-5496-4517-8392-a0fd8c8903c7n%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/5c221376-c33c-45a7-9ce0-d71ea6c4df36n%40googlegroups.com.

Reply via email to