On Sunday, June 28, 2020 at 4:48:17 AM UTC-7, Sebastian Ovide wrote:
>
> try this snippet. It works for positive numbers but not for negatives 
> ones. 
>
> <$edit-text  tiddler="weight" index="tmp" tag="input" type="number"/> 
> <$button>
> <$action-listops $tiddler="weight" $index="latest" 
> $filter={{weight##tmp}}/>
> <$action-listops $tiddler="weight" $index=<<now YYYY0MM0DD0hh0mm0ss>> 
> $filter={{weight##tmp}}/>record
> </$button>
>
> weight -> {{weight}}
> weight##latest -> {{weight##latest}}
>
>
Not sure what you are trying to do, but it's unclear to me why you are 
using $action-listops to write the input into the tiddler.

Perhaps you can just use $action-setfield, like this:
<$button> record
<$action-setfield $tiddler="weight" $index="latest" $value={{weight##tmp}}/>
<$action-setfield $tiddler="weight" $index=<<now YYYY0MM0DD0hh0mm0ss>> 
$value={{weight##tmp}}/>
</$button>

-e

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fd71d731-c7fa-43c0-915b-777830937cd3o%40googlegroups.com.

Reply via email to