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
--
JefferyMartin - 11 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.
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
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