Hey Springer,
Sorry, I should have done that in the first place. I decided I wanted to do
this because of the way I was filtering the tiddlers that I wanted in the
tables. I'm already filtering on the tag that I wanted excluded so I know
that everyone of the table rows has that tag. I wanted to be able to
quickly see all of the other tags present. It also allows me to see which
tiddlers don't have tags aside from the one I didn't want displayed.
Here's my template tiddler:
<$reveal type="nomatch" stateTitle=<<tempTableEdit>> stateIndex="mode"
text="edit" tag="td">
<$list filter="[title<currentRecord>tags[]] -[!tag<filteredtag>]">
<span class="tc-tag-list-item" >
<$set name="transclusion" value=<<currentTiddler>>>
<$macrocall $name="tag-pill-body" tag=<<currentTiddler>> icon={{!!icon}}
colour={{!!color}} palette={{$:/palette}} element-tag="""$button"""
element-attributes="""popup=<<tempTagPopup>>
dragFilter='[all[current]tagging[]]' tag='span'"""/>
<$reveal state=<<tempTagPopup>> style="position:absolute; z-index:9999;"
type="popup" position="below" animate="yes" class="tc-drop-down">
<$set name="tv-show-missing-links" value="yes">
<$transclude tiddler="$:/core/ui/ListItemTemplate"/>
</$set>
<$list
filter="[all[shadows+tiddlers]tag[$:/tags/TagDropdown]!has[draft.of]]"
variable="listItem">
<$transclude tiddler=<<listItem>>/>
</$list>
<hr>
<$macrocall $name="list-tagged-draggable" tag=<<currentTiddler>>/>
</$reveal>
</$set>
</span>
</$list>
</$reveal>
<$reveal type="match" stateTitle=<<tempTableEdit>> stateIndex="mode"
text="edit" tag="td">
<!--check if the current column is not selected for sorting-->
<$list filter="[<tempTableSort>getindex[sortIndex]match<currentColumn>]"
variable=ignore
emptyMessage=<<editCell>> >
<<showCell_Locked>>
</$list>
</$reveal>
And here's my call of the dynamic tables:
Enter the name or a filing date for charters. The date format is yyyy-mm-dd.
Search is not case sensitive on the name.
<$set name="filteredtag" value="Railroads">
<$edit-text tiddler="$:/temp/mysearch/input" tag="input" default=""
placeholder="yyyy-mm-dd or name" />
<$button> search
<$action-setfield $tiddler="$:/temp/mysearch" text={{$:/temp/mysearch/
input}} />
</$button>
<$button> reset
<$action-setfield $tiddler="$:/temp/mysearch" text=""/>
<$action-setfield $tiddler="$:/temp/mysearch/input" text=""/>
</$button>
Result count: <$count filter="[tag<filteredtag>search:charterfiled{$:/temp/
mysearch}] [tag<filteredtag>search:title{$:/temp/mysearch}]"/>
<$reveal state="$:/temp/mysearch" type="nomatch" text="">
<$list filter="[tag<filteredtag>{$:/temp/mysearch}minlength[3]]"
emptyMessage="Search is too short" >
<$list filter="[tag<filteredtag>[$:/temp/mysearch]has[text]]"
emptyMessage="No search string" variable=nul>
<div style="font-size:0.9em">
<<table-dynamic filter:"[tag<filteredtag>search:charterfiled{$:
/temp/mysearch}] [tag<filteredtag>search:title{$:/temp/mysearch}]"
fields:"title
charterfiled statefiled chartervolume charterpages rrfield" sortOp:sortan
stateTiddler:"datesearch" caption:"''Table 1. Railroad Charter Status.''">>
<<table-dynamic filter:"[tag<filteredtag>search:charterfiled{$:
/temp/mysearch}] [tag<filteredtag>search:title{$:/temp/mysearch}]"
fields:"title
charterfiled tags successiondate" sortOp:sortan stateTiddler:"datesearch"
caption:"''Table 2. Railroad Succession.''">>
<<table-dynamic filter:"[tag<filteredtag>search:charterfiled{$:
/temp/mysearch}] [tag<filteredtag>search:title{$:/temp/mysearch}]"
fields:"title
charterfiled statefiled summaryinfo paper psearch fsearch" stateTiddler:"
datesearch" caption:"''Table 3. Railroad Research Status.''">>
<<table-dynamic filter:"[tag<filteredtag>search:charterfiled{$:
/temp/mysearch}] [tag<filteredtag>search:title{$:/temp/mysearch}]"
fields:"title
charterfiled statefiled routemap textdraft textfinal" stateTiddler:"
datesearch" caption:"''Table 4. Railroad Write-up Status.''">>
</div>
</$list>
</$list>
</$reveal>
</$set>
I have four dynamic tables because I have a lot of information that I want
displayed and I want to keep it all in the tiddler width without the
columns being too narrow.
If anyone sees something that I could have done better, I'm all ears (or
eyes in this case).
Damon
On Saturday, June 13, 2020 at 3:32:27 PM UTC-7, springer wrote:
>
> Damon, might you paste in what your resulting code looked like, to give
> others a head start on tinkering?
>
> Even before you posted, I was wavering over whether I wanted this very
> function. (I had tentatively decided that sometimes I *do* want to see all
> tags, so that it's easier to pop into edit mode and delete the tag from a
> row/tiddler that ought not to have it. But usually I don't want to see the
> tag on which the dynamic table hinger, since it's redundant information. So
> a column for "additional_tags" would be ideal.)
>
> -Springer
>
> On Saturday, June 13, 2020 at 5:45:28 PM UTC-4, Damon Pritchett wrote:
>>
>> Success! I wrapped the list widget (which contained the dynamic tables
>> call) in a set widget which sets a variable with the value of the tag I
>> want to exclude. I also changed my template tiddler to use the variable
>> instead of the tag directly. Works beautifully!
>>
>> Thanks so much!
>>
>> Damon
>>
>>
>> On Friday, June 12, 2020 at 1:01:21 PM UTC-7, Mohammad wrote:
>>>
>>> Hi Damon,
>>> Good luck for new development! You are on the right track!
>>>
>>>
>>> Best wishes
>>> Mohammad
>>>
>>>
>>> On Fri, Jun 12, 2020 at 9:47 PM Damon Pritchett <[email protected]>
>>> wrote:
>>>
>>>> Thanks Mohammad,
>>>>
>>>> As usual, it took me two or three times reading the tutorial for the
>>>> light bulb to come on. The new template that I created works just like I
>>>> wanted, but is very specific to the tag I'm using. I'm going to see about
>>>> using a variable to pass which tag I don't want displayed so that it can
>>>> be
>>>> more generic.
>>>>
>>>> Damon
>>>>
>>>>
>>>> On Thursday, June 11, 2020 at 10:06:51 PM UTC-7, Mohammad wrote:
>>>>>
>>>>> Damon,
>>>>> In Shiraz tutorial this has been explained! but simply for each field
>>>>> passed to table-dynamic macro, it looks for a template.
>>>>> See the naming rules for tags template. That's all.
>>>>>
>>>>> For start you can clone Shiraz template and rename them.
>>>>>
>>>>>
>>>>> Best wishes
>>>>> Mohammad
>>>>>
>>>>>
>>>>> On Fri, Jun 12, 2020 at 1:52 AM Damon Pritchett <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> Mohammad,
>>>>>>
>>>>>> I was able to figure out what modifications to the tags template to
>>>>>> yield the desired result. My next question is how can I create my own
>>>>>> custom tags template that can be used by the dynamic tables macro
>>>>>> without
>>>>>> modifying your default tags template?
>>>>>>
>>>>>> Damon
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Thursday, June 11, 2020 at 6:36:49 AM UTC-7, Mohammad wrote:
>>>>>>>
>>>>>>> If you mean to NOT display certain tags, with the current code it is
>>>>>>> not possible! BUT you can hack the tags template in Shiraz
>>>>>>> to meet your requirements.
>>>>>>>
>>>>>>>
>>>>>>> Best wishes
>>>>>>> Mohammad
>>>>>>>
>>>>>>>
>>>>>>> On Thu, Jun 11, 2020 at 6:34 AM Damon Pritchett <
>>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>>> Hello Mohammad,
>>>>>>>>
>>>>>>>> I have a dynamic tables question. I have my dynamic tables call
>>>>>>>> from within a list widget so that only tiddlers with a certain tag
>>>>>>>> will
>>>>>>>> populate the table. One of my columns is tags because I want to see
>>>>>>>> what
>>>>>>>> other tags are being used for each of the tiddlers. Is it possible to
>>>>>>>> remove the tag I'm filtering on from the dynamic table? I suspect that
>>>>>>>> it's
>>>>>>>> not without modifying the macro, but wanted to ask the question just
>>>>>>>> in
>>>>>>>> case I'm missing something.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>>
>>>>>>>> Damon
>>>>>>>>
>>>>>>>> On Thursday, February 6, 2020 at 2:28:31 PM UTC-7, Mohammad wrote:
>>>>>>>>>
>>>>>>>>> *Announcement:Shiraz plugin*
>>>>>>>>> *Date: Feb 7th, 2020*
>>>>>>>>> *Release: 2.0.15 beta*
>>>>>>>>> *Status: beta under development*
>>>>>>>>>
>>>>>>>>> A new beta update is available.
>>>>>>>>>
>>>>>>>>> This update contains tons of new features and improved
>>>>>>>>> documentation. The focus is now on dynamics tables.
>>>>>>>>> Dynamic tables in Shiraz is a subset lite version of Revolutionary
>>>>>>>>> plugin TiddlyTables by Alaan Aldrich. So all kudos goes to Alaan.
>>>>>>>>>
>>>>>>>>> This version has an example of creating task manager using
>>>>>>>>> table-fd which demonstrate how powerful are dynamic tables in Shiraz!
>>>>>>>>> All of these are based the wonderful transclusion in Tiddlywiki.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> As always I welcome all your feedback and comments and hope your
>>>>>>>>> evaluation help improving the Shiraz plugin!
>>>>>>>>>
>>>>>>>>> *IMPORTANT NOTE:*
>>>>>>>>> Those who update from Shiraz 2 beta note that, the table-fd,
>>>>>>>>> table-id parameters are renamed for better compatibility with other
>>>>>>>>> part of
>>>>>>>>> Shiraz plugin.
>>>>>>>>>
>>>>>>>>> A tutorial of latest changes has been attached!
>>>>>>>>>
>>>>>>>>> Demo: https://kookma.github.io/Shiraz/
>>>>>>>>> Code: https://github.com/kookma/Shiraz
>>>>>>>>>
>>>>>>>>> Star it if you like it and send your feedback!
>>>>>>>>> Documentation proof reading for English is welcome!
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> A permview
>>>>>>>>> <https://kookma.github.io/Shiraz/#demo%2Fdynamic-table-concept:demo%2Fdynamic-table-concept%20demo%2Ftable-from-fields%20demo%2Ftable-from-indexes%20demo%2Fdynamic-tables-numerical-summary%20demo%2Fdynamic-tables%2Ftransclusion%20%5B%5Bdemo%2Fadvanced%2Fdynamic-tables%2Fcustomize%20footer%5D%5D%20demo%2Fdynamic-tables%2Fcustom-numerical-summary%20demo%2Fdynamic-table%2Ftask-manager%20demo%2Fdynamic-tables-template>to
>>>>>>>>>
>>>>>>>>> see the latest changes (like tutorial)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Best wishes
>>>>>>>>> Mohammad
>>>>>>>>>
>>>>>>>>> Revision 2.0.15
>>>>>>>>>
>>>>>>>>> - Date: [6th Feb 2020]
>>>>>>>>> - [NEW] the table-fd supports special column template
>>>>>>>>> tbl-checkbox
>>>>>>>>> - [NEW] the table-fd supports column templates priority,
>>>>>>>>> status, due-date
>>>>>>>>> - [NEW] task manager example using table-fd
>>>>>>>>> - [NEW] documentation for numerical summary in dynamic tables
>>>>>>>>> - [FIXED] dynamic tables parameters are simplified like
>>>>>>>>> tblCaption to caption, tblClass to class, tblFooter to footerRows
>>>>>>>>> - Warning: New update is not compatible with dynamic tables
>>>>>>>>> from older release. Use tiddler commander to resolve the issue
>>>>>>>>> after update.
>>>>>>>>>
>>>>>>>>> Revision 2.0.14
>>>>>>>>>
>>>>>>>>> - Date: [31st Jan 2020]
>>>>>>>>> - [NEW] table footer to be used for any type of summary
>>>>>>>>> - [NEW] mathematics macros to claculate the below values for a
>>>>>>>>> column
>>>>>>>>> - count
>>>>>>>>> - minall
>>>>>>>>> - maxall
>>>>>>>>> - sum
>>>>>>>>> - product
>>>>>>>>> - mean (arithematic average)
>>>>>>>>> - median
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>> 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/7f618515-1f19-4f1d-b7f2-cc449f9859e3o%40googlegroups.com
>>>>>>>>
>>>>>>>> <https://groups.google.com/d/msgid/tiddlywiki/7f618515-1f19-4f1d-b7f2-cc449f9859e3o%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/bf51362c-dde5-444b-8cb8-40b59c77bb25o%40googlegroups.com
>>>>>>
>>>>>> <https://groups.google.com/d/msgid/tiddlywiki/bf51362c-dde5-444b-8cb8-40b59c77bb25o%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/3b889a59-c755-4408-bd39-db15609051a8o%40googlegroups.com
>>>>
>>>> <https://groups.google.com/d/msgid/tiddlywiki/3b889a59-c755-4408-bd39-db15609051a8o%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/aa6cf0f8-bcb2-4e93-8cc5-a502a4aec483o%40googlegroups.com.