Documentation for class generic_association (inherits from generic_acl):


Properties:

name type default params representant foreign foreign_prop position
id CO_INTEGER SEQUENCE READONLY=1;HIDDEN=1 0 0
version CO_INTEGER 0 READONLY=1;HIDDEN=1 0 0
deleted CO_INTEGER 0 READONLY=1;HIDDEN=1 0 0
inherits_acl CO_INTEGER 1 HIDDEN=1;READONLY=1 0 50

Methods:


method showFormAssociation
permission=7
description: this method shows form for creating/browsing associations of two classes
description: Returns: nothing
parameters:

par_area
type CO_STRING

par_class
type CO_STRING

par_id
type CO_INTEGER

column_first_class
description: this is the name of the column containing reference to the first class
type CO_STRING

report_first_class
description: this is the name of the report for selecting records from the first class
type CO_STRING

column_second_class
description: this is the name of the column containing reference to the second class
type CO_STRING

report_second_class
description: this is the name of the report for selecting records from the second class
type CO_STRING


method showFormMenu
permission=7
description: this method creates object and sets ACLs taken from acl_class, also sets props as given in create_params
parameters:

par_area
type CO_STRING

par_class
type CO_STRING

par_id
type CO_INTEGER

menu_name
description: this is the name of the menu ('default' by default)
type CO_STRING

menu_type
description: this is the type (single, multi) of the menu ('multi' by default)
type CO_STRING


method insertAssociations
permission=10
description: this method creates object and sets ACLs taken from acl_class, also sets props as given in create_params
description: Returns: ???
parameters:

par_area
type CO_STRING

par_class
type CO_STRING

par_id
type CO_INTEGER

callback
type CO_STRING

ids_first_class
description: this is array of ids belonging to the first class
type CO_ARRAY_OF_STRINGS

prop_first_class
description: this is name of the property storing ids belonging to the first class
type CO_STRING

ids_second_class
description: this is array of ids belonging to the second class
type CO_ARRAY_OF_STRINGS

prop_second_class
description: this is name of the property storing ids belonging to the second class
type CO_STRING