Hi!
I have a quite complex problem or maybe I'm just thinking to complex.
The idea I have is the following:
I want to create some tiddlers containing base information about different,
similar things. This could be, for example, some software packages and
their associated repositories, folders, etc. Example:
-----------------------
Info One Tiddler
-----------------------
InfoA:This is A one
InfoB:This is B one
-----------------------
and
-----------------------
Info Two Tiddler
-----------------------
InfoA:This is A two
InfoB:This is B two
-----------------------
Now I want to have a tiddler where I can select one "other thing". I have a
mapping from n "other thing"s to 1 of my "similar things".
So the "other thing" could be one of the strings "i", "1)" (which would map
to "Info One Tiddler") and "ii", "2)" (which would map to the other tiddler.
Now I can write a tiddler like this:
-----------------------
Selection Tiddler
-----------------------
<<select whichone rows:1 i ii "1)" "2)">>
Full Tiddler
<<tiddler {{ var x={ i : 'One', ii : 'Two', '1)' : 'One', '2)' : 'Two'};
"Info "+x[store.getValue(tiddler, "whichone")]+" Tiddler"}}>>
One Slice:
<<tiddler {{ var x={ i : 'One', ii : 'Two', '1)' : 'One', '2)' : 'Two' };
"Info "+x[store.getValue(tiddler, "whichone")]+" Tiddler::InfoA"}}>>
-----------------------
So I can transclude my "Info X Tiddler" into the "Selection Tiddler" but I
have to have this longish JavaScript always in.
But it get's worse when I want to use the slices in a fourth tiddler like
so:
-----------------------
Fourth Tiddler
-----------------------
<<tiddler {{ var x={ i : 'One', ii : 'Two', '1)' : 'One', '2)' : 'Two' };
"Info "+x[store.getValue("Selection Tiddler", "whichone")]+"
Tiddler::InfoA"}}>>
-----------------------
The value does not change when I select another value in my "Selection
Tiddler" :(
I hope you could follow me up to here. Thank you that you tried ;)
So my question are
1) How can I make the Fourth Tiddler update its value whent the selection
changed?
2) Is there an easier way than having my longish JavaScript code?
3) Is there maybe something much more easy? Am I thinking too complicated?
Many thanks for looking into this!
--
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.