Question
How can I embed the number of results for a search as a column of a table? In my case I am making a code repository and I want to have the following columns:
Algorithm| Number of Submissions
Algorithm is a field on my form that will appear multiple times. Number of Submissions is not stored anywhere - (should be based on number of search results). Any ideas? Thanks in advance.
Environment
--
OmarMussa - 10 Aug 2005
Answer
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
Here is an example of a SEARCH that has an embedded
%CALC{$ROW(-1)}% to show a linear numbering of the search hits. The CALC's
% sign needs to be escaped with
$percnt so that it executes once for each search hit. Look at the raw text to see how.
| # |
Topic |
Summary |
| 1 |
WebStatistics |
Statistics for Support Web Month: Topic Views: Topic Saves: Attachment Uploads: Most Popular Topic Views: Top Contributors for Topic Save ... |
| 2 |
SID-01468 |
Hello everyone, I just got started managing a TWiki website for my research group that was created a couple of years ago by another student. Would really appreciate ... |
| 3 |
SID-01467 |
We have 2 departments that created their own TWikis and I would like to combine them into one. The added complication is that one of them created all their content ... |
| 4 |
PasswordsNotWorking |
Question Is there a way to reset passwords? I inherited the company's Twiki and none of the passwords work. Is there a default TwikiAdmin password? Environment ... |
| 5 |
SID-01466 |
I want to create a command button that will serve as a time stamp. I don #39;t have any knowledge of Perl Scripts. How do I get this command button and make it perform ... |
| 6 |
SID-00207 |
In a page, I have "Build Number: 123456 March 19, 2009" I would like to update the build number and timestamp "123456 March 19, 2009" via an outside script (immediately ... |
| 7 |
SID-00250 |
Hi,,,,,,, I want a formfield ,which is hidden and each time the user presses a button,the formfield gets incremented and the topic is saved back with new value. How ... |
| 8 |
SID-01465 |
I #39;m following documentation in http://twiki.org/cgi bin/view/TWiki/TWikiUserAuthentication#TWiki Username vs Login Username and I #39;ve enabled (checked the ... |
| 9 |
SupportHeader |
Support Header This is a SupportForumMaintenance page; only administrators should change the application logic. The part between the horizontal rulers gets included ... |
| 10 |
SID-01464 |
Hello, I use several Webs, however, all TWiki users are stored in the Main Web. So the SubscribePlugin does not work, since only the wikiname is added to the WebNotify ... |
--
PeterThoeny - 13 Aug 2005
I just realize that I misunderstood your question. To get the number of hits and show it in a table cell, you can do a
FormattedSearch that increments a spreadsheet variable for each hit. Again, the CALC needs to be escaped.
Example: Search all topics in this web for
"Algorithm"
| Hits for "Algorithm": |
100 |
If you want to go fancy: You could do a nested search to dynamically build a table of terms with totals.
FormattedSearch has the details.
--
PeterThoeny - 13 Aug 2005