Hi Eric,

We've run into a little snag with the *goaction* parameter. We can't seem 
to get it to work, neither in your example in the documentation 
<https://tiddlytools.github.io/InsideTW/empty.html#TiddlyTools%2FMacros%2Fcombobox%2Finfo>,
 
nor in our own experimental tiddler 
<https://tiddlytest.github.io/#Playing%20with%20Eric%27s%20combobox%20and%20the%20%22goaction%22%20param>.
 
Any idea what's going on? This is something we'd really like to use, for 
all sorts of purposes in our TiddlyCRM project.

Thanks in advance for any advice you offer,

Hegart.


On Monday, 4 April 2016 10:49:15 UTC+12, Eric Shulman wrote:
>
> On Sunday, April 3, 2016 at 3:15:49 PM UTC-7, Hegart Dmishiv wrote:
>>
>> Thanks for the explanation, Eric. I'm really excited by what you've 
>> produced here. I've got a working example of it so far in my SampleData 
>> playground, here 
>> <https://dl.dropboxusercontent.com/s/odu3my97ujyxz4h/SampleData-testing.html#Add%20Person>.
>>  
>> I still need to overcome these issues with it though:
>>
>>    - To populate the options from any given field, not just the title 
>>    field.
>>
>> That is actually controlled by the "template" parameter (currently 
> *undocumented*).  The default value is template="<<toc-caption>>", which 
> shows the tiddler's caption text, with a fallback to the title if no 
> caption is present.  You can use this param to show other fields, like this:
>
> template="{{!!fieldname}}"
>
> Note how the value is enclosed in quotes, so that the inner syntax is NOT 
> parsed, but simply passed along to be used as the 'template' for outputting 
> each list item.
>
>>
>>    - To populate the options only with unique/distinct values from the 
>>    given field.
>>
>>
> That can be controlled by the filter param.  You would need to use the 
> each[] filter to get unique values. 
>
>>
>>    - To ignore any options that do not contain the given field.
>>
>> Again, that is an aspect of the filter you specify.   
>
> These are all probably more to do with my use case, rather than your macro 
>> though. Also, I look forward to later using the *okaction:* parameter to 
>> set the *filter:* parameter of a subequent *<<combobox>>* invocation 
>> using a filter stored in a tiddler field. I understand from previous advice 
>> you've given me on this subject, that I'll then need to use a 
>> *<$macrocall>* widget for that, rather than a *<<macro>>* invocation. 
>> I'll let you know how it goes. Happy to beta-test this for you! ;-)
>>
>
> Yes, exactly.  The $macrocall widget allows you to use variables and/or 
> references as macro parameter values.   Thus, you could write something 
> like:
>
> <<combobox tiddler:"$:/_temp/currentfilter" filter:"[tag[something]]">>
> <$macrocall name="combobox" tiddler="$:/_temp/target" 
> filter={{$:/_temp/currentfilter}}/>
>
> (above is untested)
>
> give it a try and let me know how it goes...
>
>
> -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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
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/e99b6275-9c99-4a96-8144-44be87b4a9a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to