It works perfectly !! Do you have an idea how to avoid writing the first 
"!" when the field is empty (before the first user entry) ?
Because when the table is made afterward, it creates a blank cell.

On Monday, 19 August 2019 18:45:16 UTC+2, BurningTreeC wrote:
>
> Hi again,
>
> you don't need a filter for this, see this example-button:
>
> \define get-concatenated-value()
> $(myrow)$!$(userInput)$
> \end
>
> <$button>
> <$set name="myrow" value={{!!myrow}}>
> <$set name="userInput" value={{!!input}}>
> <$action-setfield $tiddler=<<currentTiddler>> $field="myrow" $value=<<get-
> concatenated-value>>/>
> </$set>
> </$set>
> OK
> </$button>
>
>
>
>
> Thanks for your help but in fact, in my case "fourth element" represents a 
>> variable that contains an input of the user (through the edit-text) and 
>> that can contains spaces inside. 
>>
>> On Monday, 19 August 2019 18:24:51 UTC+2, BurningTreeC wrote:
>>>
>>> Hi Damien,
>>>
>>> maybe this trick works for you:
>>>
>>> [all[current]get[myrow]split[!]append[fourth_element]join[!]split[_]join
>>> [ ]]
>>>
>>>
>>>
>>> Hello everyone,
>>>
>>>>
>>>> I recently discovered this fabulous tool (Tiddly wiki) and I'm trying 
>>>> to customize it to my needs.
>>>> However I need some help from Tiddly experts.
>>>>
>>>> I would like to store in the field of a tiddler the content of a table 
>>>> row. In my tiddler, I put an edit-text field and a button to add a new 
>>>> word 
>>>> to the field (and then to the row).
>>>>
>>>> To do this, I decided to separate each word composing my row with "!". 
>>>> For example the field "myrow" will contains : 
>>>> "firstelement!secondelement!thirdelement"
>>>>
>>>> To add to this field a new word, I use a filter to insert it. It works 
>>>> but I have a problem with element with space (ex : "fourth element") -> it 
>>>> will be cut where the space is.
>>>>
>>>> Here is the filter I use to rewrite the "myrow" field :
>>>>
>>>> [all[current]get[myrow]split[!]append[fourth element]join[!]]
>>>>
>>>> Do you have an idea how to explain to tiddly wiki to consider "fourth 
>>>> element" as 1 string only ? or do you have another solution ?
>>>>
>>>> I'm not so familiar with the filter syntax, if you have ressources to help 
>>>> me, it could be great also.
>>>>
>>>> Thanks
>>>>
>>>>

-- 
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/71ea15eb-8728-4a61-ae5b-5e929d3f7603%40googlegroups.com.

Reply via email to