Question about <qualify>>

142 views
Skip to first unread message

Philippe Le Toquin

unread,
Nov 4, 2016, 6:18:10 PM11/4/16
to TiddlyWiki
As time pass I learn more and more about TiddlyWiki.

Reading and asking question on this forum is really useful but so is reading the documentation (who would have thought ;) )

As I go through it I saw the macro qualify and was actually wondering what is the actual use of it as opposed to simply naming explicitly a tiddler?

I wanted to use on some part of my code but found out that it doesn't really work the way I expect it most likley because I am misunderstanding something

for example if I have the following code

!Select the day of the week you want to edit
This week number is <<now WW>> &nbsp;
<$select tiddler=<<qualify select-day>>  >
<option>Monday</option>
<option>Tuesday</
option>
<option>Wednesday</option>
<option>Thursday</
option>
<option>Friday</option>
<option>Saturday</
option>
<option>Sunday</option>
</
$select>

<$button>
<$set name="day" value=<<qualify select-day>> >
<$action-sendmessage $message="tm-new-tiddler" $param="$:/_ppmt/template/Daily_Records" title=<<now WW>> dayfield=??? tags="[[Weekly Records]]" />
</$set>
Edit Week
</
$button>


What should I enter in the dayfield so that I see the day that I selected ? I tried all kind of combination but the best I achieve was to display the title of the qualify tiddler using <<day>>


Thanks in advance

Philippe
I know it sounds like a basic question and there is obviously a concept that I am missing but I can't work it out.

Mark S.

unread,
Nov 4, 2016, 7:28:54 PM11/4/16
to TiddlyWiki
I think qualify is useful for more complicated situations.

Unless there was a reason to do otherwise, I would tend to just use a field in the working macro.

Then your select would be:

<$select field="dayfield"  >

Eliminate the <$set...> tags. In the action-sendmessage make ...

... dayfield={{!!dayfield}}

The only addition might be to add a default <$select> option like "-".  This forces the user to make a selection. If a selection is not made, the "dayfield" field will not be populated.

Good luck,
Mark

Riz

unread,
Nov 5, 2016, 12:40:43 AM11/5/16
to TiddlyWiki



As Mark said, you can achieve the end without using qualify macro and it is best you do. But in case your workflow somehow demands using it, here is your code so as to achieve your end.



!Select the day of the week you want to edit
This week number is <<now WW>> &nbsp;
<$select tiddler=<<qualify select-day>>  >
<option>Monday</option>
<option>Tuesday</option>
<option>Wednesday</option>
<option>Thursday</option>
<option>Friday</option>
<option>Saturday</option>
<option>Sunday</option>
</$select>

<$button>
<$tiddler tiddler=<<qualify select-day>> >
<$action-sendmessage $message="tm-new-tiddler" $param="$:/_ppmt/template/Daily_Records" title=<<now WW>> dayfield={{!!text}} tags="[[Weekly Records]]" />
</$tiddler>
Edit Week
</$button>


Philippe Le Toquin

unread,
Nov 5, 2016, 7:20:56 AM11/5/16
to TiddlyWiki
Thanks a lot to both of you for your explanation.

Based on what you say I don't really need to use qualify. Would you have any example where it would be usefull to use?

And thanks also Riz for solving my issue. I can see that I am really missing a lot of experience with TW5. I had seen the Tiddler widget but like most of the other widget it had not clicked that I could used it in that way.
My main problem is that I don't really understand the meaning or use of most of the widgets.

Still I have moved one step further. I guess I will be back when I hit another wall. Hopefully they will become thinner and thinner.

Jeremy Ruston

unread,
Nov 6, 2016, 2:54:18 PM11/6/16
to tiddl...@googlegroups.com
Hi Philippe

It sounds like the question here is “Why might I want to use the qualify macro?”. There is an explanation in the docs, but it might not be super-clear:


Basically, the qualify macro is useful if you are using the list widget to create repeating user interface elements. For example, the $:/TagsManager shows a listing of all of the tags, each of which has a separate dropdown. The qualify macro is used within the tag manager to generate a unique state tiddler title for each tag, ensuring that the dropdowns operate independently.

Best wishes

Jeremy.


-- 
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+...@googlegroups.com.
To post to this group, send email to tiddl...@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/b8ce44c5-135e-4242-8858-35ebe7f38a49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Philippe Le Toquin

unread,
Nov 6, 2016, 3:16:14 PM11/6/16
to TiddlyWiki
Thanks Jeremy for the explanation.

I don't understand it all and the bottom line is that it is most likely because I don't need to use qualify. In my code I am now using a temp tiddler and it works as well :)

Regards
Philippe
Reply all
Reply to author
Forward
0 new messages