workflow::case::role::add_assignee_widgets (public)

 workflow::case::role::add_assignee_widgets -case_id case_id \
    -form_name form_name [ -prefix prefix ] [ -role_ids role_ids ]

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

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

Switches:
-case_id (required)
the ID of the case.
-form_name (required)
-prefix (optional, defaults to "role_")
-role_ids (optional)
Only add assignee widgets for the roles supplied. If no roles are specified then all roles are used.
Author:
Lars Pind <lars@collaboraid.biz>

Partial Call Graph (max 5 caller/called nodes):
%3 packages/acs-tcl/lib/page-error.tcl packages/acs-tcl/ lib/page-error.tcl workflow::case::role::add_assignee_widgets workflow::case::role::add_assignee_widgets packages/acs-tcl/lib/page-error.tcl->workflow::case::role::add_assignee_widgets packages/bug-tracker/www/bug.tcl packages/bug-tracker/ www/bug.tcl packages/bug-tracker/www/bug.tcl->workflow::case::role::add_assignee_widgets packages/bug-tracker/www/bulk-update-op.tcl packages/bug-tracker/ www/bulk-update-op.tcl packages/bug-tracker/www/bulk-update-op.tcl->workflow::case::role::add_assignee_widgets ad_form ad_form (public) workflow::case::role::add_assignee_widgets->ad_form workflow::case::get_element workflow::case::get_element (public) workflow::case::role::add_assignee_widgets->workflow::case::get_element workflow::case::role::get_assignee_widget workflow::case::role::get_assignee_widget (public) workflow::case::role::add_assignee_widgets->workflow::case::role::get_assignee_widget workflow::get_roles workflow::get_roles (public) workflow::case::role::add_assignee_widgets->workflow::get_roles

Testcases:
No testcase defined.
Source code:
    set workflow_id [workflow::case::get_element -case_id $case_id -element 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 -case_id $case_id -role_id $role_id -prefix $prefix]]
    }
Generic XQL file:
packages/workflow/tcl/case-procs.xql

PostgreSQL XQL file:
packages/workflow/tcl/case-procs-postgresql.xql

Oracle XQL file:
packages/workflow/tcl/case-procs-oracle.xql

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