Question
Hi,
I would like to be able to expand the members of a group for use as a select field within a form (or table). I have had some success with getting the search to work but I cannot incorporate this into a form as I would wish. I have tried everything I know but I'm stuck.. Could someone be able to tell me what I'm doing wrong?
This is what I would like to do:
<form>
<select name="topic">
<option value="%TOPIC%">Select...</option>
%SEARCH{"GROUP" web="Main" topic="SomeGroup" casesensitive="on" nonoise="on"
format="$pattern(.*Set GROUP =([^\n]*).*)$n " seperator=","}%
</select>
<input type="submit" value="Choose" />
</form>
I'm aware I need to set the form to
format="<option value=\"$web.$topic\">$topic</option>"
Is there a way I could feed one search into the other to get this information?
This search does work:
%SEARCH{"GROUP" web="Main" topic="SomeGroup" casesensitive="on" nonoise="on"
format="$pattern(.*Set GROUP =([^\n]*).*)$n " seperator=","}%
What am I missing?
Thanks in advance.
Environment
--
PadraigLennon - 29 Aug 2008
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.
You need to SEARCH for the members, then format each member. You can do that with a SEARCH and a delayed CALC inside the format of the SEARCH. Here is a live example using the
TWikiAdminGroup:
View the raw topic to see how this works.
--
PeterThoeny - 30 Aug 2008
Thanks a lot Peter.. That has saved me a nightmare in administration
--
PadraigLennon - 30 Aug 2008