Hi Alex

Thanks for this excellent suggestion to use the title instead of the
tags with fET. Instead of using tags, I can use the following to
process tiddlers that have a title that starts with "Time_test_".

<<forEachTiddler
 where
 'tiddler.title.startsWith("Time_test_")'

Since I no longer need the tags, I was going to use newTiddlerWithForm
except that I have realised that I cannot specify default values with
this macro. If anyone knows how to have today's date show by default
in a field in a form, that would be most helpful. At this point,
though, I am using newTiddler which creates a new tiddler in edit
mode. I then just press "done" to begin entering data into the form
fields.

<<newTiddler
title:{{"Time_test_"+(new Date()).formatString
("YYYY0MM0DD_0hh0mm0ss")}}
label:"New timesheet record button"
text:{{"<<formTiddler TimesheetRecordTemplate\>\><data\>{\"date\"\:\""+
(new Date()).formatString("DD/MM/YYYY")+"\", \"hours\"\:0}</data\>"}}
tag:"timesheettest">>

Cheers
Andrew Mc

On May 28, 11:48 pm, Alex Hough <[email protected]> wrote:
> Hi Andrew,
>
> Yes, the tiddler has to be created before the form is active on my solution,
> but it does have tags. Not ideal.
>
> I couldn't find a way around this.
>
> Do you need the tags? You might be able to use fET to get something from the
> title of the contents of the tiddler?
>
> Following your quest with interest,
> ALex
>
> 2009/5/28 AndrewMc <[email protected]>
>
>
>
>
>
> > Hi Alex
>
> > The newJournal macro does pretty much what I did with the newTiddler
> > macro. Both create a new tiddler in edit mode. However, what I want is
> > for the new tiddler to be created from a form, have certain tags, and
> > be shown in view mode. The newTiddlerWithForm macro does this but
> > unfortunately does not have a way of specifying tags during the
> > tiddler creation.
>
> > Cheers
> > Andrew Mc
>
> > On May 28, 7:50 pm, Alex Hough <[email protected]> wrote:
> > > A while back i did something with monitoring. The key was to ensure
> > > that the new tiddler has a unique name. TiddlyAdvisors recomended the
> > > time and date. I experimented with two formats for the dateBelow is
> > > what I ended  up doing;
>
> > > -----------------------------------------
> > > Tiddler Monitoring Dashboard
> > > -----------------------------------------
>
> > > <<newJournal
> > >          "(YYYY-0MM-0DD 0hh:0mm) S3*"
> > >          label:"new daily monitoring form Us format"
> > >          text:{{store.getTiddlerText("DailyMonitoringTemplate")}}
> > >          tag:"S3*">> <<newJournal
>
> > >          "(DDD DDth MMM YYYY  0hh:0mm) S3*"
> > >          label:"new daily monitoring form UK format"
> > >          text:{{store.getTiddlerText("DailyMonitoringTemplate")}}
> > >          tag:"S3*"
>
> > > List of existing records
> > > <<forEachTiddler
> > > where
> > > 'tiddler.title.contains("S3*") && tiddler.tags.contains("S3*")'
>
> > > Editing Monitoring Dashboard
> > > To edit the daily monitoring form you will need to edit the
> > > <<newTiddler "MonitoringTemplate" label:"MonitoringTemplate">>
>
> > > --------------------------------------
> > > tags: DashBoard
> > > -------------------------------------
>
> > > You would have to make your own MonitoringTemplate using Udos formTiddler
>
> > > Alex
>
> > > (I have used the tag 'S3*' for my monitoring tiddlers. The reason is
> > > that in the VSM system 3* is about monitoring) - seehttp://
> >www.allennaleonard.com/PersVSM.html#sys3*ifyou are interested
> > > in this method of organisation.
>
> > > 2009/5/28 AndrewMc <[email protected]>:
>
> > > > Hi Alex
>
> > > > Thanks for the suggestion. The TaskTimerPlugin looks interesting but
> > > > seems to be most useful for when you are timing activities while you
> > > > have access to your Wiki. In my case, however, I want to enter the
> > > > times that I have spent doing other activities which are almost always
> > > > done away from a computer. So, sadly, TaskTimerPlugin won't solve my
> > > > particular problem.
>
> > > > Cheers
> > > > Andrew Mc
>
> > > > On May 28, 12:17 am, Alex Hough <[email protected]> wrote:
> > > >> Try Erics solution:
>
> > > >>http://www.TiddlyTools.com/#TaskTimerPluginhttp://www.TiddlyTools.com.
> > ..
>
> > > >> Alex
>
> > > >> 2009/5/27 AndrewMc <[email protected]>:
>
> > > >> > Hi All
>
> > > >> > I am working on a study project for which I need to record the hours
> > > >> > that I work. I am trying to store these "timesheet" records in my
> > > >> > wiki . I have set up a template tiddler containing a form with three
> > > >> > fields: Date, Hours, and Topic. I wish to have a macro button that
> > > >> > enables me to create new timesheet records. I have tried three ways
> > of
> > > >> > doing this. I have added Udo's plugin,
> >http://tiddlywiki.abego-software.de/#FormTiddlerPlugin,
> > > >> > and used <<newTiddler>> with <<formTiddler>>,  and used
> > > >> > <<newTiddlerWithForm>>.  I have also triedhttp://
> > zaptest.tiddlyspot.com/#NewSavedTiddlerPlugin
> > > >> > and the <<newSavedTiddler>> macro.
>
> > > >> > <<newTiddler
> > > >> > title:{{"Time_test_"+(new Date()).formatString
> > > >> > ("YYYY0MM0DD_hh0mm0ss")}}
> > > >> > label:"New timesheet record button"
> > > >> > text:{{"<<formTiddler TimesheetRecordTemplate\>\>"}}
> > > >> > tag:"timesheettest">>
>
> > > >> > <<newTiddlerWithForm
> > > >> > TimesheetRecordTemplate
> > > >> > "newtiddlerwithform button"
> > > >> > [["Time_test_"+(new Date()).formatString("YYYY0MM0DD_hh0mm0ss")]]>>
>
> > > >> > <<newSavedTiddler
> > > >> > text:{{"<<formTiddler [[TimesheetRecordTemplate]]>" + ">"}}
> > > >> > tag:"timesheettest"
> > > >> > label:'newSavedTiddler button'>>
>
> > > >> > Of these three methods, the newTiddler method lets me easily specify
> > > >> > default content by adding a "<data> </data>" statement to the text,
> > > >> > but opens the tiddler in edit mode when I would much rather it be in
> > > >> > view mode. The newTiddlerWithForm method lets me specify default
> > > >> > content and opens the new tiddler in view mode, but doesn't let me
> > > >> > automatically add tags to the new tiddler. The newSavedTiddler opens
> > > >> > in view mode and lets me specify default content, but does not let
> > me
> > > >> > automatically create a title for the tiddler (instead you need to
> > type
> > > >> > in the new title at a prompt).
>
> > > >> > What I would like to be able to do is to modify newTiddlerWithForm
> > so
> > > >> > that this macro accepts a "tags:" parameter. Is it possible to do
> > > >> > this? If so, how would I start doing this?
>
> > > >> > Or, is there another way to achieve what I want to do?
>
> > > >> > I have found these two threads:
> > > >> > 'coding to auto-tag a tiddler created by FormTiddlerPlugin?'
>
> >http://groups.google.co.nz/group/TiddlyWiki/browse_thread/thread/7212...
>
> > > >> > 'Automatically adding tags when using NewTiddlerWithForm'
>
> >http://groups.google.co.nz/group/TiddlyWiki/browse_thread/thread/c642...
>
> > > >> > Cheers
> > > >> > Andrew Mc
>
> > > >> --
> > > >> t: 0161 442 2202
> > > >> m: 0781 372 50 17
> > > >> skype: alexhough
> > > >> delicious: alexhough
>
> > > --
> > > t: 0161 442 2202
> > > m: 0781 372 50 17
> > > skype: alexhough
> > > delicious: alexhough
>
> --
> t: 0161 442 2202
> m: 0781 372 50 17
> skype: alexhough
> delicious: alexhough
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to