Question
I have created a form for statuses. It contains fields such Status.Team, Status.User, Status.date. It works fine.
I want to create a view via formatted search to retrieve thenm based on Team and Date criteria. Searching on one field works fine using:
"%SEARCH{"Team.*?value=\"%URLPARAM{ChosenTeam}%\"" scope="text" regex="on" nosearch="on" casesensitive="on" format="| [[$topic]] | $formfield(Status.User) | $formfield(Status.Egt) | $formfield(Status.WeekEndingDate) | $summary |"}%"
or the other
"%SEARCH{"WeekEndingDate.*?value=\"%URLPARAM{ChosenWeekEndingDate}%\"" scope="text" regex="on" nosearch="on" casesensitive="on" format="| [[$topic]] | $formfield(Status.User) | $formfield(Status.Egt) | $formfield(Status.WeekEndingDate) | $summary |"}%"
But how can I search on both?
I am sure its simple but it has eluded me.
Thanks
Environment
--
RandyMoran - 22 Aug 2003
Answer
Use the
; (
and) operator in your regular expression. For example:
%SEARCH{ "FIELD\{name\=.*FeatureTopicClassification;name\=.*SoftwareProject.*value\=.*ProDebug" casesensitive="on"
|
looks for
FeatureTopicClassification on any line
and SoftwareProject on another line.
Note that the
and operator was added in the
TWikiRelease01Feb2003 release.
--
MartyBacke - 22 Aug 2003