I am trying to invoke a procedure from a button widget but the invoked procedure does not have any action widgets.
Basically, we only want to initiate a backlinks display when the user clicks the button. That way we don’t waste computer resources displaying something not required.
Code:
ViewTemplate
<$list filter="[<currentTiddler>tag[Gun Type]]" >
<$button actions=<<TLSbacklinks>> >
Click to see backlinks
</$button>
</$list>
Procedure code
<!-- EXTRACTS BACKLINKS FROM THE CURRENT TIDDLER -->
\procedure TLSbacklinks()
<$list filter="[all[current]backlinks[]]" counter="numberofbacklinks" emptyMessage="There are no links to this record" >
<% if [<numberofbacklinks-first>match[yes]] %>
This record is linked from the following:
<br>
<% endif %>
<<TLSdisplaylinks>>
</$list>
\end
Can’t find any way of doing this.
bobj