This is a subtility that you inform me there. So good, let's go along the 
variable for filter way. The same passage has become:

<$vars xf="[indexing<proj>match<pid>]">
<$set name=x filter="[<proj>indexes[]addsuffix[/project]filter<xf>]">
x = <<x>>
</$set>
</$vars>

and now I have a red error message from the browser: unknown widget.

Well, this is enough, let's have a week-end indeed. Thank you for your 
patience Saq!


Le vendredi 30 avril 2021 à 21:01:30 UTC+2, [email protected] a écrit :

> Let's look at the highlighted portion of  
> [<proj>indexes[]addsuffix[/project]filter[indexing<proj>match<pid>]]
>
> The first and last square brackets in the highlighted text are for the 
> operand to the filter operator. The square brackets tells us that you are 
> passing a literal operand, not a text reference or a variable.
>
> The actual operand, i.e. the filter, that you pass to the filter operator 
> is therefore:
> indexing<proj>match<pid>
> This is not a valid filter, it is missing opening and closing square 
> brackets.
>
> A valid filter would look like [indexing<proj>match<pid>] and this would 
> need to be defined as a variable and then passed as an operand to the 
> filter operator because of the square brackets.
>
> Hope that helps. Have a nice weekend.
>
> Saq
>
> On Friday, April 30, 2021 at 8:21:19 PM UTC+2 [email protected] wrote:
>
>> I beg your pardon' Saq, but each of my filter were well written as far as 
>> I can see.
>>
>> quoting myself:
>>
>>
>>
>>>> {{{
>>>> [<proj>indexes[]addsuffix[/project]filter[indexing<proj>match<pid>]]
>>>> }}}
>>>>
>>>>
>> and
>>  
>>
>>> <$set name=x 
>>>> filter="[<proj>indexes[]addsuffix[/project]filter[indexing<proj>match<pid>]]">
>>>> x = <<x>>
>>>> </$set>
>>>>
>>>>
>> and finally
>>  
>>
>>> <$set name=y 
>>>> filter="[<proj>indexes[]addsuffix[/project]filter[match<ref>]]">
>>>> y(<<ref>>) = «<<y>>»
>>>> </$set>
>>>>
>>>>
>> there is no square bracket within them. 
>>
>> In fact if I try these form of writing I get nothing but an ugly error 
>> message from the browser (internal javascript error : "TypeError: widget is 
>> undefined")
>>
>> <$vars ppp="[match<chk>]">
>> <$list variable=ref filter="[<proj>indexes[]addsuffix[/project]]">
>>   <$set name=chk filter="[<proj>getindex<ref>match<pid>then<ref>]">
>>     @<<chk>>@
>> <$set name=y filter="[<proj>indexes[]addsuffix[/project]filter<ppp>]">
>> y(<<ref>>) = «<<y>>»
>> </$set>
>> </$vars>
>>
>> which is very puzzling too.
>>
>> I also tried the :filter[stuff here] syntax but it was not better either.
>>
>> -- 
>> Jean-Pierre
>>
>>

-- 
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/b1eb25d8-53e5-4edc-ae12-189971ad4c07n%40googlegroups.com.

Reply via email to