Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Due date and Priority columns for tasks in Webdesk.
Bowker
With v5.0.1 SP1 we find that Webdesk is easier for our users to work in. The question came up with tasks about how to fill in the 'priority' and 'due-date' column for the job/task. IW Support sent me some code which they said I may post here. There are a few things you need to insert into your workflow (.wft) file:
Your exact code layout may be different than mine, but ....
1) Outside of any subroutines, I have this right above the TAG_info( statement put:
my($release_date) = __VALUE__('due_date');
my($the_job_priority) = __VALUE__('priority_code');
2) Within the TAG_info( section:
priority_code => [ html => "<select><option>Low</option>" .
<option selected>Normal</option>" .
<option>High</option></select>",
label => 'Job Priority',
],
due_date => [ html => "<input type='text' value='none'></input>",
label => 'Due Date (mm/dd/yyyy)',
valid_input => "/^[0-1][0-9].[0-3][0-9].20[0-1][0-9]|none/",
],
3) within every USERTASK or GROUPTASK put:
<variables>
<variable key='due_date' value='__INSERT__("$release_date");' />
<variable key='priority' value='__INSERT__("$the_job_priority");' />
</variables>
Some notes:
The validation for the date is either a valid date (good through 2099) - it's not perfect, but close enough, or "none"
The Drop down list box can have more than "low","normal","high" in it, add others if you want.
Find more posts tagged with
Comments
Migrateduser
Your due date regex allows for a date of 19/39/2019. The year max's out at 2019, not 2099. This would be better served with your 'valid_input' value represented by a subroutine and have the subroutine perform better date validation:
valid_input => 'input_validator()',
Regards,
Dave Smith
davidh.smith@nike.com
<font color='red'>Dave Smith</font>
DavidH.Smith@nike.com
Edited by Smitty77 on 12/21/01 11:07 AM (server time).
Migrateduser
Another thing to be aware of is that the date MUST be in mm/dd/yyyy format. Having worked in Europe, I find this a bit frustrating, since they prefer dd/mm/yyyy. My personal prefernce is yyyy/mm/dd, but when I changed the regex to allow that, and entered a date of 2002/04/05, it displays in the author's task list as Oct 4, 0171.