I have a tiddler containing student record, it is connected with its
own StudentFormViewTemplate and StudentFormEditTemplate. In the view
template i have a newTiddler macro which is supposed to create a
Qualifications tiddler. This new qualification tiddler should be
tagged with the title of the Student tiddler when it is created. But
since multiple qualification tiddlers can be created from one parent
student tiddler i need to count any alreadt existing qualifications
tiddlers and attach a suffix to the title of the new qualifications
tiddler. so for example lets say we have a student tiddler with title
as 'rollno10', when i create the first qualification it should be
titled as 'rollno10-qualification1' and tagged as rollno10. in order
to do this i am doing this in StudentFormViewTemplate:

<span macro='newTiddler title: "<<forEachTiddler where
'tiddler.tags.contains(tiddler.title)' write '""' end
'{{tiddler.title}}+"-Qualification" + count' none '""' >>"  label:"Add
Qualification" tag:{{tiddler.title}} tag:"QualificationForm"
template:"QualificationFormEditTemplate" '></span>

But cannot make it work.
Thanks in advance.
please try the AddNewStudent link in main menu here
http://shavinz-trial-tw.tiddlyspot.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to