Hi Alex,

No idea how to do it with the core but
you can use tobibeer/make <http://tobibeer.github.io/tw5-plugins/#make>
 with tobibeer/setvars <http://tobibeer.github.io/tw5-plugins/#setvars> to 
achieve the desired result:

<$setvars
_make="[[]make[{{!!customer}}, {{!!period-name}}]]"
new-title="[make[1][][]]">
<$button message="tm-new-tiddler" param=<<new-title>>>New Invoice</$button>
</$setvars>

Demystified:

   - [make[1][][]]
      - evaluate the attribute _make and...
         - retrieve the first item
         - not specifying any empty value (because it's never going to be 
         empty)
         - joining all items to a string without any separator
         - [[]make[{{!!customer}}, {{!!period-name}}]]
   - create a unique title based on the *customer* and *period-name* fields 
      of the current tiddler
   
You can also use the *make* filter to create a unique, zero-padded invoice 
number that is unique among all invoices.

Best wishes,

Tobias. 

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5aa9d42c-1144-4cde-b679-8a708305e1c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to