workflow::case::role::get_assignee_widget (public)

 workflow::case::role::get_assignee_widget -case_id case_id \
    -role_id role_id [ -prefix prefix ]

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.
-role_id (required)
the ID of the role.
-prefix (optional, defaults to "role_")
Author:
Lars Pind <lars@collaboraid.biz>

Partial Call Graph (max 5 caller/called nodes):
%3 workflow::case::role::add_assignee_widgets workflow::case::role::add_assignee_widgets (public) workflow::case::role::get_assignee_widget workflow::case::role::get_assignee_widget workflow::case::role::add_assignee_widgets->workflow::case::role::get_assignee_widget workflow::case::get_element workflow::case::get_element (public) workflow::case::role::get_assignee_widget->workflow::case::get_element workflow::case::role::get_picklist workflow::case::role::get_picklist (public) workflow::case::role::get_assignee_widget->workflow::case::role::get_picklist workflow::case::role::get_search_query workflow::case::role::get_search_query (public) workflow::case::role::get_assignee_widget->workflow::case::role::get_search_query workflow::role::get workflow::role::get (public) workflow::case::role::get_assignee_widget->workflow::role::get

Testcases:
No testcase defined.
Source code:
    set workflow_id [workflow::case::get_element -case_id $case_id -element workflow_id]

    workflow::role::get -role_id $role_id -array role
    set element "${prefix}$role(short_name)"
    
    set query [workflow::case::role::get_search_query -case_id $case_id -role_id $role_id]
    set picklist [workflow::case::role::get_picklist -case_id $case_id -role_id $role_id]
    
    return [list "${element}:search(search),optional" [list label $role(pretty_name)] [list mode display]  [list search_query $query] [list options $picklist]]
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: