Question
I'm trying to customize
BugsContrib. Basicly I edited the
ItemTemplateTopic, the Tabulator topic and adjusted all the include requests amde by the topics or link. Thin is I never get any results except when I give a value to the LIMIT var. When I do so, I get a list of results completly disregarding the other criterias I assigned.
Here's my search request:
%STARTINCLUDE%
<!--%<nop>TABLE{sort="on" footerrows="1" initsort="2" initdirection="down"}% -->
%SEARCH{"META:FIELD{name=.Holder.*?value=.(%URLPARAM{"holder" default="%HOLDER%"}%);META:FIELD{name=.Status.*?value=.(%URLPARAM{"status" default="%STATUS%"}%);META:FIELD{name=.Summary.*?value=.(%URLPARAM{"summary" default="%SUMMARY%"}%);META:FIELD{name=.Customer.*?value=.(%URLPARAM{"customer" default="%CUSTOMER%"}%)" web="%INCLUDINGWEB%"
excludetopic="ItemTemplate"
topic="Item*"
type="regex"
nosearch="on"
order="modified"
reverse="on"
limit="%URLPARAM{"limit" default="%LIMIT%"}%"
nototal="on"
header="| *Id* | *Summary* | *Date Opened* | *Customer* | *Status* | *Holder* | *Last Edit* |"
format="| [[$web.$topic][$topic]] | $formfield(Summary) | $createdate | $formfield(Customer) | $formfield(Status) | $formfield(Holder) | $date |"
}%
| *Id* | *Summary* | %CALC{"$COUNTITEMS( R2:C$COLUMN()..R$ROW(-1):C$COLUMN() )"}% | %CALC{"$COUNTITEMS( R2:C$COLUMN()..R$ROW(-1):C$COLUMN() )"}% | %CALC{"$COUNTITEMS( R2:C$COLUMN()..R$ROW(-1):C$COLUMN() )"}% | %CALC{"$COUNTITEMS(R2:C$COLUMN()..R$ROW(-1):C$COLUMN() )"}% | Last Edit |
</font>
%STOPINCLUDE%
And my
ItemTemplate form:
| *Name* | *Type* | *Size* | *Values* | *Tooltip message* | *Attributes* |
| | label | | <h3>Customer</h3> TWiki name of the customer. ||
| Customer | text | 35 | | | M |
| | label | | <h3>Summary</h3>One-line summary | | |
| Summary | text | 85 | | | M |
|| label || <h3>Holder</h3> TWiki name of the holder. | | |
| Holder | select | 1 | %SEARCH{"Last Name" noheader="on" nosearch="on" nosummary="on" web="Main" nototal="on" format="Main.$topic, "}% | | M |
|| label || <h3>Status</h3> Status of the issue. | | |
| Status | select | 1 | Open, Closed | | M |
| | label | | <h3>Symptom</h3> Who reported it? Give a detailed description. | |
| Symptom| textarea | 80x5 | | | M |
| | label | | <h3>Cause</h3>Who found it, when, what mechanism? Give a precise description. | | |
| Cause | textarea | 80x5 | | | |
| | label | | <h3>Remedy</h3> Who prescribed it, when? Give a detailed description. | | |
| Remedy | textarea | 80x5 | | | |
| | label | | <h3>Quality</h3> Write here what possible modification in Infodev's procedures could avoid TheCause. Possible targets of the modification: Sale, product design, fabrication, delivery, installation, traning, closing (testing, tying up all loose ends, providing Conformity to requirments), billing, servicing. _Note that all closed issues must have something writen here even if just "no change beacause..."_| | |
| Quality | textarea | 80x5 | | | |
Finaly the INCLUDE for
AllOutStandingItems
---+++ Active Bugs
%INCLUDE{
"Issues.Tabulator"
STATUS="Open"
SUMMARY=".*?"
CUSTOMER=".*?"
HOLDER=".*?"
LIMIT = ""
}%
Do you know what's wrong?
TIA
Environment
--
MarcBoivin - 05 Jul 2006
Answer
Solve. It was because my meta:field were separeted by linebreaks... really odd.
--
MarcBoivin - 05 Jul 2006