Another novice question:
I want to filter all entries born before 1948 (in the birth_year field) who
has not died or been purged (in the c_status field), and assign them value
"retired". The following code I created apparently contains error. I would
also appreciate general guidance on filtering field value of a certain
numeric range (say greater than 1952, or between 1936 and 1978) or value of
a particular vector (say contains either 1,3,8,16,33,47,287,1345,9999 etc,
do I need to name another tiddly for reference? Kind of confused after some
research)
<$button> assign retired
<$list
filter="[field[birth_year]<<1948]-[field[c_status]=dead]-[field[c_status]=purged]">
<$action-setfield $field="c_status" $value="retired" />
</$list>
</$button>
在2020年12月10日星期四 UTC-5 下午10:01:17<Harry> 写道:
> Hi,
>
> I have a tiddlywiki with multiple entries. I now want to assign a unique
> field value for every entry so that I can sort them in a particular way. Is
> there a way that I can do this with button or other batch orders. I
> searched and found something of creating a dictionary.
>
> Say I select all entries with birthdays entered.
> <$list filter="[has:field[birth_year]]">
>
> Then I want to create a new field called "rankcode" for each entry,
> translating their titles to a unique 6-digit code in their, using the
> dictionary below
>
> John Smith (Reno):BCD-75A
> John Adams:5GH-6GB
> Brian Kim:67A-300
> Cris Stuart (NV):3ZH-UV5
>
> I'd appreciate help on how to do this. I tried $action-setfield to assign
> one single value to one entry at a time, but don't know how to do this en
> masse using sth like a dictionary. Many thanks!
>
--
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/b926ee2c-4bc0-4cb1-9f7c-dcb766967691n%40googlegroups.com.