party::types_valid_for_rel_type_multirow (public)
party::types_valid_for_rel_type_multirow \ [ -datasource_name datasource_name ] [ -start_with start_with ] \ [ -rel_type rel_type ]
Defined in packages/acs-tcl/tcl/community-core-procs.tcl
creates multirow datasource containing party types starting with the $start_with party type. The datasource has columns that are identical to the relation_types_allowed_to_group_multirow, which is why the columns are broadly named "object_*" instead of "party_*". A common template can be used for generating select widgets etc. for both this datasource and the relation_types_allowed_to_groups_multirow datasource. All subtypes of $start_with are returned, but the "valid_p" column in the datasource indicates whether the type is a valid one for $group_id. Includes fields that are useful for presentation in a hierarchical select widget:
- object_type
- object_type_enc - encoded object type
- indent - an HTML indentation string
- pretty_name - pretty name of object type
- valid_p - 1 or 0 depending on whether the type is valid
- Switches:
- -datasource_name (optional, defaults to
"object_types"
)- -start_with (optional, defaults to
"party"
)- -rel_type (optional, defaults to
"membership_rel"
)- - if unspecified, then membership_rel is used
- Author:
- Oumi Mehrotra <oumi@arsdigita.com>
- Created:
- 2000-02-07
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.