TWC: TeamTasks and checkbox interface for forEachTiddler plugin

165 views
Skip to first unread message

sklpns

unread,
Feb 3, 2014, 4:05:14 PM2/3/14
to tiddl...@googlegroups.com
hey all

I'm using a TeamTasks v0.3 file to organize tasks (some 1300 of them by the way).
Having installed ForEachTiddlerPlugin I'm using the following code

<<forEachTiddler
  where
    
'store.getValue(tiddler,"UserDefinitions") &&
     store.getValue(tiddler,"UserDefinitions").readBracketedList().containsAny([

"PhilHawksworth",
"AnneOther"

])


&& 

store.getValue(tiddler,"ScopeDefinitions") &&
     store.getValue(tiddler,"ScopeDefinitions").readBracketedList().containsAny([

"Work",
"Play"

])

&& 

store.getValue(tiddler,"StatusDefinitions") &&
     store.getValue(tiddler,"StatusDefinitions").readBracketedList().containsAny([

"Pending",
"InProgress",
"OnHold",
"Complete"

])
'
 write
 '"|"+(index+1)+""+
"|[["+tiddler.title+"]]"+
"|"+store.getValue(tiddler,"UserDefinitions")+
                "|"+store.getValue(tiddler,"ScopeDefinitions")+
              
                  "|"+store.getValue(tiddler,"StatusDefinitions")+
                "|\n" '
             

 begin '"|sortable|k\n|A|!Tiddler|!~User|!~Scope|Status|h\n"'"'

>>

to generate a table report of tasks, ie a table containing tiddler name, user, scope and status columns

Please see a minimal test case here

https://dl.dropboxusercontent.com/u/67129323/teamtasks%20v03-fet-test.html

My question is: is there a way to add some sort of checkbox interface for the fet code?

Something like a number of checkboxes, one for each definition, so, for instance, when you check AnneOther, PhilHawksworth and Work
you get a table report containing only the tasks assigned to AnneOther and PhilHawksworth that are categorized
as Work?

hope this makes sense and thanks in advance

sklpns





 
Message has been deleted

whatever

unread,
Feb 4, 2014, 2:58:51 AM2/4/14
to tiddl...@googlegroups.com
Hi!

You can indeed, but you'll need a couple of additional plugins for that. First, you'll need either CheckboxPlugin (1) or CheckboxToggleTag (2). Their syntax differs, but they offer similar options. Read their info tiddlers for more information. Once you decide which one you'll use, add the appropriate syntax to your fET. Using one of these plugins will involve adding tags to tiddlers. I suggest you include the TW markup syntax first, just to see how it would look. It should also help you decide which of the plugins to use as well as how to go about tagging. You'll also need to add the appropriate conditions for these tags to fET. Once you have this set up, you'll also need the RefreshTiddler (3), to force the refresh of the tiddler containing your fET. Also, you need a button to reset all the checkbox-added tags. You'll need to write a script which fetches all the appropriate tiddlers and removes the tags. For that, you'll need InlineJavascriptPlugin (4). Alternatively, you could just make a plugin for the whole thing, it would be much more flexible, I think.

hth
w

(1) http://www.TiddlyTools.com/#CheckboxPlugin
(2) http://www.TiddlyTools.com/#CheckboxToggleTag
(3) http://www.TiddlyTools.com/#RefreshTiddler
(4) http://www.TiddlyTools.com/#InlineJavascriptPlugin

sklpns

unread,
Feb 10, 2014, 9:31:36 AM2/10/14
to tiddl...@googlegroups.com
Hey whatever

thank you very much for your reply.
Been struggling with Checkbox Plugin with no luck.
Writing a script, let alone a plugin, is out of the question, I'm afraid, as I have no coding knowledge.

The closest I could find is this page

http://zrenard.com/tiddlywiki/cal.php

where tiddlywiki code (a calendar table) is produced based on options
via checkboxes, drop down lists etc, but I couldn't decipher that either.

should any more ideas come up I'd be grateful.

thanks again

sklpns

Leo Staley

unread,
Feb 11, 2014, 8:21:13 PM2/11/14
to tiddl...@googlegroups.com
 Have you considered dGSD?
It's a pretty powerful tool. I'm in the process of trying to create basically a TW5 version which is more elegant and user friendly.
Message has been deleted

sklpns

unread,
Feb 18, 2014, 9:46:36 AM2/18/14
to tiddl...@googlegroups.com


Hey Leo

thanks for your reply

dGSD I had seen a long time ago but I was persuaded by TeamTasks' simplicity so a  ''more elegant and user friendly'' version
will be very welcome (and will at the same time pose the question of migrating the existing TeamTasks', well, tasks)

Other than that I've abandoned the check-boxes idea (never should have taken them for granted!) and came up with a
very crude, very unsophisticated, very trial and error approach which, nonetheless, seems to work but, get this, only under firefox 3.6.24, which I'm using for my TeamTasks file for other reasons, and not the current Firefox.

bear with me with me  

https://dl.dropboxusercontent.com/u/67129323/teamtasks%20v03-fet-test.html

It is an adaptation of a preexisting TeamTasks plugin called NewUserWizardPlugin and
the problem seems to be with a tiddler called UserDetailsTemplate where the form template
is stored.

I don't know any coding so this seems to me as genuine apostrophe mayhem!

thanks again

sklpns
Reply all
Reply to author
Forward
0 new messages