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/9604f6b4-f1a5-41b4-b956-6521e1e1fb83n%40googlegroups.com.

Reply via email to