Thank you much, Soren, both examples work perfectly! Hopefully I'll get to 
the point, some day, where I actually understand this syntax and can 
graduate from being a script kiddie. But in the meantime, I can use this.

Thanks again!

On Wednesday, May 12, 2021 at 6:38:56 PM UTC-4 Soren Bjornstad wrote:

> If I'm understanding what you want correctly, the easiest way is a filtered 
> transclusion <https://tiddlywiki.com/#Transclusion%20in%20WikiText> with 
> the getindex operator:
>
> {{{ [{ApplicationChoice}getindex{!!idnumber}] }}}
>
> If you don't want the result to show up as a link, you can use the $text 
> widget:
>
> <$text text={{{ [{ApplicationChoice}getindex{!!idnumber}] }}}/>
>
> As you noted, {{ApplicationChoice##{{!!idnumber}}}} doesn't work. 
> TiddlyWiki doesn't parse wikitext inside double braces, so once you get 
> into the first {{, it's not going to know what to do with {{!!idnumber}}.
> On Wednesday, May 12, 2021 at 9:49:48 AM UTC-5 [email protected] wrote:
>
>>
>> I want to build a transclusion from the text of one tiddler and the 
>> returned lookup value from a data tiddler. For example. I want to build and 
>> evaluate ``{{drill##101}}`` and get ``P01.02.03`` from the following 
>> pieces:
>>
>> * ``{{AplicationChoice}}`` evaluates to or contains ``drill``, and
>> * Data tiddler ``drill`` has an entry ``101:P01.02.03``, and
>> * ``{{ID101!!idnumber}}`` is ``101``, and
>> * I want to do this transclusion from the ``ID101`` tiddler (or from 
>> other ID tiddlers with different ID numbers).
>>
>> Conceptually, from tiddler ID101 I'd like to evaluate ``
>> {{ApplicationChoice##{{!!idnumber}}}}`` and get ``P01.02.03`` ... but 
>> that isn't working. I'll admit to not well understanding use of braces, 
>> square brackets, angle brackets and spacing to control evaluation of text.
>>
>> ***Background
>>
>> There are tiddlers for each of the multiple IDs (e.g., ID101, ID102, 
>> ID103, ...), and data tiddlers for each of the multiple applications (e.g., 
>> drill, saw, hammer, ...). There are multiple Ps (e.g., P01.01.01, P03.01, 
>> P03.01.04, ...) but no tiddlers are defined for each P number. I select the 
>> current application by using a selection list to put the selected 
>> application into tiddler ``ApplicationChoice``. I want the ID number 
>> tiddlers to display their associated P number based on the selected 
>> application.
>>
>> Note that the ID number and the P number are different, separate from 
>> each other, and have a many-to-many relationship. The particular 
>> relationship to use is based on the application chosen (e.g., drill, or 
>> saw, or hammer), so I can't put a constant ID number field in P tiddlers, 
>> and I can't put a constant P number field in the ID number tiddlers. This 
>> relationship has been provided to me and I can't change it. P numbers are 
>> used to navigate an interface (they are the screen name), and ID numbers 
>> contain the actual nuggets of information.
>>
>> Thanks ahead of time for any suggestions!
>>
>> ~Mark Hylton
>>
>>

-- 
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/ad3d2097-7920-470b-89b7-340fddb05298n%40googlegroups.com.

Reply via email to