Tags:
create new tag
, view all tags

Question

In the display of actions, how do I get my non-standard attribute to have a pull-down menu and behavior similar to the state field?

I have correctly created my non-standard attributes.

   * Set ACTIONTRACKERPLUGIN_EXTRAS = |pri,select,1,"1","2","3","4"|

I have correctly added it to the action display format.

   * Set ACTIONTRACKERPLUGIN_TABLEHEADER = | Assigned to | Priority | Due date | Description | State | Notify ||
   * Set ACTIONTRACKERPLUGIN_TABLEFORMAT = | $who | $pri | $due | $text $link | $state | $notify | $edit |

What do I do next to make a pull-down appear for the pri attribute?

Thanks.

Environment

TWiki version: TWikiRelease04x02x03
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: AIX 5.3 ML 6
Web server: Apache/2.0.47
Perl version: 5.10
Client OS: Microsoft Windows XP [Version 5.1.2600]
Web Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4
Categories: Plugins

-- JefferyMartin - 11 Dec 2008

Answer

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

Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider a subscription for support or engage 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

I have the same issue on TWiki 04x03x01, Centos 5, Apache 2.2, Perl 5.10, Mac OSX 10.4.11, Safari 3.2.1. Does anyone have any ideas?

-- GuyWillis - 2009-05-27

The table header and format are for the ActionSearch result. You can make the priority field into a select box in the edit window only:

   * Set ACTIONTRACKERPLUGIN_EDITHEADER = | Assigned to | Priority | Due date | Description | State | Notify |
   * Set ACTIONTRACKERPLUGIN_EDITFORMAT = | $who | $pri | $due | $text $link | $state | $notify |

ACTIONTRACKERPLUGIN_ENABLESTATESHORTCUT allows action states to be shown using a drop-down menu. But it only works for the state field, not an arbitrary field that you create.

-- SeanCMorgan - 2009-06-01

Thanks for this Sean, I've now got it working. I think it would be desirable for the a select box for user created fields to be available in the table though - I think it should be a suggestion in ActionTrackerPluginDev.

-- GuyWillis - 2009-06-02

That's a good idea.

But on top o' that, "priority" should probably be a standard field, since it seems that most everyone has to re-invent the wheel and add it themselves.

-- SeanCMorgan - 2009-06-03

 
Change status to:
Topic revision: r7 - 2009-06-03 - SeanCMorgan
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.