I have following code to create a tiddler with calculated title and
want to store a number in config.options.txtautoNumber
*** macro definintion ***
config.macros.autoNumber.onclick= function()
{ if (config.options.txtautoNumber==undefined)
{ config.options.txtautoNumber = 4; }
*** some calculation code resulting in a var num ****
var opt="txtautoNumber";
config.options[opt] = num;
config.macros.option.propagateOption("txtautoNumber"; num ;
"config.options.txtautoNumber" ; "input"; );
/* Is this line correct here above correct or am I on the wrong
path ??? */
store.saveTiddler(newTitle, etc......)
Thanks, Okido
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" 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/tiddlywikidev?hl=en
-~----------~----~----~----~------~----~------~--~---