Question
Hi,
I am using the
ActionTrackerPlugin, and want to have a specific subset of users in an Assign To select dropdown list for each action.
I have a "working" select box with the users -- meaning it works on a page all by itself, but the second I put it into my custom action template, it breaks.
<form>
<select name="action_who">
<option value="%TOPIC%">Select...</option>
%SEARCH{"GROUP" web="%MAINWEB%" topic="TestGroup" casesensitive="on" nonoise="on" format="$percntCALC{$LISTJOIN($sp, $LISTMAP(<option value=\"$web.$item\">$PROPERSPACE($REPLACE($item, 1,5))</option>, $TRIM($pattern(.*Set GROUP =([^\n]*).*))))}$percnt" }%
</select>
</form>
I have put these users in a Group for this purpose, but it does not have to be like this -- it could even be a page with a list of them. I just don't want to hard-code each select option item in the template, since a user might have to go in and edit this list of users.
What I get when I use it in an action is a dropdown like this:
And this is the html that's produced for that Select (when I choose View Source on the page) -- my users are all there, sort of, but they're not in the dropdown:
<select name="action_who">
<option value="LlSample">Select...</option>
%CALC{$LISTJOIN($sp, $LISTMAP(<option value="Main.$item">$PROPERSPACE($REPLACE($item, 1,5))</option>, TRIM( <a href="/bin/view/Main/KathyDeLaCruz" class="twikiLink">KathyDeLaCruz</a>, <a href="/bin/view/Main/KathyTest" class="twikiLink">KathyTest</a>, <a href="/bin/view/Main/TorillBalto" class="twikiLink">TorillBalto</a>, <a href="/bin/view/Main/TwikiTest" class="twikiLink">TwikiTest</a>, <a href="/bin/view/Main/JeanCast" class="twikiLink">JeanCast</a>)))}%</select>
I've tried taking out the replace & properspace, but it still doesn't work (I just get $item as my only item in the dropdown).
Maybe someone can take a look and see what I'm doing wrong -- I think I must be escaping something wrong.... I have spent hours trying all the combinations I could think of, but no luck. I feel like I'm ALMOST there ....
Thank you!
Kathy
Environment
--
KathyDeLaCruz - 18 Dec 2008
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
OK, it looks like maybe it's related to this issue:
ConditionalDisplayInTemplate
It's not expanding the variables/functions the way I want ...
ConditionalDisplayInTemplate refers to something called Context Identifiers that might help ... does anyone know anything about these? It does say they were due in the Dakar release, so maybe that's old news
--
KathyDeLaCruz - 23 Dec 2008
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the
TWiki consultants if you need timely help. We invite you to
get involved with the community, it is more likely you get community support if you support the open source project!
--
PeterThoeny - 15 Feb 2009