Hello All,

This is my first post here, so please forgive my naiveite and beginner 
status.  BLUF: I'm trying to create a prototype for a notification system 
for a relatively complex military organization, and I'm trying to figure 
out how to reference the fields of one Tiddler, while transcluding another 
Tiddler field into a list in that Tiddler?

Now here's the long-winded version.  Each *Unit Tiddler* in the 
organization has a field with that unit's ID, called the *unit-opfac*, as 
well as a field for its parent unit, called the *parent-opfac*.  A *Brief 
Tiddler* can be created (from a button generating a Tiddler based on the 
Brief Template) at any unit level and will be tagged with *[Brief]* as well 
as its *unit-opfac* and its *parent-opfac*.  I want to use the *checkbox 
*widget 
to allow each brief to be promoted up the organizational chain by being 
tagged with the unit's *parent-opfac*. This will allow someone at each unit 
level to promote a brief up the chain at will.  I wrote the below code and 
thought I was doing great - until I realized that the *parent-opfac* and 
*unit-opfac* fields that I was transcluding were from the *Brief Tiddler*, 
and not the *Unit Tiddler*.  So, how can I filter/modify tags that are 
based on fields in the Unit Tiddler, rather than those in the Brief 
Tiddler?  I think the logic I've written will do what I want (see below), 
IF I can figure out how to reference the correct fields.  Thanks in advance!

Scott
  

*Unit Tiddler*

*Tags:* Title of Parent Unit

*Tiddler Text:*

! Promoted Briefs
<$list filter=
"[!has[draft.of]tag[Brief]tag[{!!parent-opfac}]tag[{unit-opfac}]sort[created]]"
>
    <div>
        <$checkbox tag={{!!parent-opfac}}> __<$link to={{!!title}}><$view 
field="title"/></$link>__</$checkbox>
    </div>
</$list>

! Incoming Briefs 
<$list 
filter="[tag:[Brief]tag:{!!unit-opfac}!tag[{!!parent-opfac}]sort[created]]">
    <div>
        <$checkbox tag={{!!parent-opfac}}> <$link to={{!!title}}><$view 
field="title"/></$link></$checkbox>
    </div>
</$list>

*Fields:*
parent-opfac: 14-00000
unit-opfac: 14-33296


*Brief Tiddler*

*Tags:* Every unit-opfac the Brief Tiddler is promoted to.

*Tiddler Text: *Some briefing text...

*Fields:* 
parent-opfac: 14-33296
unit-opfac: 14-33296-P

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7fd41705-aba9-4d17-8d76-bc530e58e87do%40googlegroups.com.

Reply via email to