workflow::role::add_assignee_widgets (public)

 workflow::role::add_assignee_widgets -form_name form_name \
    [ -prefix prefix ] -workflow_id workflow_id [ -roles roles ] \
    [ -mode mode ]

Defined in packages/workflow/tcl/role-procs.tcl

Get the assignee widget for use with ad_form for this role.

Switches:
-form_name
(required)
-prefix
(defaults to "role_") (optional)
-workflow_id
(required)
-roles
(optional)
-mode
(defaults to "display") (optional)
Author:
Lars Pind <lars@collaboraid.biz>

Partial Call Graph (max 5 caller/called nodes):
%3 packages/bug-tracker/www/bug-add.tcl packages/bug-tracker/ www/bug-add.tcl workflow::role::add_assignee_widgets workflow::role::add_assignee_widgets packages/bug-tracker/www/bug-add.tcl->workflow::role::add_assignee_widgets ad_form ad_form (public) workflow::role::add_assignee_widgets->ad_form workflow::get_roles workflow::get_roles (public) workflow::role::add_assignee_widgets->workflow::get_roles workflow::role::get_assignee_widget workflow::role::get_assignee_widget (public) workflow::role::add_assignee_widgets->workflow::role::get_assignee_widget workflow::role::get_id workflow::role::get_id (public) workflow::role::add_assignee_widgets->workflow::role::get_id

Testcases:
No testcase defined.
Source code:
    foreach role $roles {
    lappend role_ids [get_id -short_name $role -workflow_id $workflow_id] 
    }

    if { $role_ids eq "" } {
        set role_ids [workflow::get_roles -workflow_id $workflow_id]
    }

    foreach role_id $role_ids {
        ad_form -extend -name $form_name -form [list [get_assignee_widget -role_id $role_id -prefix $prefix -mode $mode]]
    }
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/workflow/tcl/role-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: