Tags:
create new tag
view all tags

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:

actiondropdown.gif

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

TWiki version: TWikiRelease04x02x01
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Windows 2003 server
Web server: apache 2
Perl version: indigo perl 5.8.6
Client OS: Windows
Web Browser: Firefox, IE 7
Categories: Search, Plugins

-- KathyDeLaCruz - 18 Dec 2008

Answer

ALERT! 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 smile

-- 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

Change status to:
Topic attachments
I Attachment History Action Size Date Who Comment
GIFgif actiondropdown.gif r1 manage 5.6 K 2008-12-19 - 00:16 UnknownUser  
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2009-02-15 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.