On Thursday, April 14, 2022 at 11:04:08 PM UTC-7 passingby wrote:

> I have both of your tiddlers copied. And as expected the PowerSearch works 
> on its own perfectly. I have also installed the Shiraz plugin and working 
> on its own as well. Then I created another tiddler containing the 
> overriding definitions which you've given here ( I had to change the macro 
> call name to table-dynamic which I assume changed at a later date). I can 
> see that PowerSearch is being called because the result table is shown but 
> I don't have PowerSearch UI. What might I be doing wrong?
>

It's been more than 2 years since I wrote those instructions for 
"overriding definitions".
As you noted, in that intervening time, the Shiraz macro name changed from 
"table-fd" to "table-dynamic".
In addition, the underlying PowerSearch and edit-list code have also been 
extensively re-written and
re-factored several times, so some of those macro names and surrounding 
syntax have changed as well.

Instead of writing:
 

> \import TiddlyTools/FilterGenerators/PowerSearch
>>
>> \define doSearch_showresults()
>> <$macrocall $name=table-fd
>>  filter=<<filter>> tblClass=""
>>  fields="tbl-expand title fa fb fc caption tags"
>>  stateTiddler=n
>>  tblCaption="''Table 2. Dynamic table example''"/>
>> \end
>>
>> \define getOptions() <!-- NO DISPLAY OPTIONS -->
>>
>> <<setStyles>>
>> <<getInputs>>
>> <$vars
>>   tids={{{ [<tidinput>get[text]]   ~[[tiddlers]]        }}}
>>    pre={{{ [<preinput>get[text]]                        }}}
>>    tag={{{ [<taginput>get[text]]                        }}}
>>  field={{{ [<fieldinput>get[text]] ~[[title,text,tags]] }}}
>>   flag={{{ [<flaginput>get[text]]  ~[[words]]           }}}
>>   term={{{ [<terminput>get[text]]                       }}}
>>   sort={{{ [<sortinput>get[text]]  ~[[title]]           }}}>
>>    <<doSearch>>
>> </$vars>
>>
>  
Try this:
```
\import TiddlyTools/FilterGenerators/PowerSearch
\define doSearch_showresults()
<$macrocall $name=table-dynamic filter=<<filter>> tblClass=""
 fields="tbl-expand title fa fb fc caption tags"
 stateTiddler=n tblCaption="''Table 2. Dynamic table example''"/>
\end
<<styles>> <<inputs>>
<div style="clear:both;padding-top:0.5em;"/>
<<doSearch>>
```
Note: if you also omit the `<div style="clear:both;padding-top:0.5em;"/>`, 
then the PowerSearch inputs and the Shiraz output table will appear *side 
by side *(as long as there's enough room for the table)

enjoy,
-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/eb1063c4-7f2c-4377-9f11-6ef71e7a7089n%40googlegroups.com.

Reply via email to