parameter::set_global_value (public)

 parameter::set_global_value -package_key package_key \
    -parameter parameter -value value

Defined in packages/acs-tcl/tcl/parameter-procs.tcl

Set a global package parameter. Do not confuse this with the proc "set_from_package_key", which was previously used to emulate global parameters declared for singleton packages.

Switches:
-package_key (required)
identifies the package to which the global param belongs
-parameter (required)
which parameter's value to set
-value (required)
what value to set said parameter to

Partial Call Graph (max 5 caller/called nodes):
%3 test_parameter__check_procs parameter__check_procs (test acs-tcl) parameter::set_global_value parameter::set_global_value test_parameter__check_procs->parameter::set_global_value acs::clusterwide acs::clusterwide parameter::set_global_value->acs::clusterwide ad_parameter_cache ad_parameter_cache (public) parameter::set_global_value->ad_parameter_cache db_exec_plsql db_exec_plsql (public) parameter::set_global_value->db_exec_plsql packages/acs-subsite/www/shared/parameters.tcl packages/acs-subsite/ www/shared/parameters.tcl packages/acs-subsite/www/shared/parameters.tcl->parameter::set_global_value

Testcases:
parameter__check_procs
Source code:

    db_exec_plsql set_parameter_value {}

    # ::acs::dc call apm set_value  #     -package_key $package_key  #     -parameter $parameter  #     -attr_value $value

    acs::clusterwide callback subsite::global_parameter_changed  -package_key $package_key  -parameter $parameter  -value $value

    ad_parameter_cache -delete $package_key $parameter
Generic XQL file:
packages/acs-tcl/tcl/parameter-procs.xql

PostgreSQL XQL file:
<fullquery name="parameter::set_global_value.set_parameter_value">
    <querytext>
            select apm__set_value(
                :package_key::varchar,
                :parameter,
                :value
            );
        </querytext>
</fullquery>
packages/acs-tcl/tcl/parameter-procs-postgresql.xql

Oracle XQL file:
<fullquery name="parameter::set_global_value.set_parameter_value">
    <querytext>
            begin
                apm.set_value(
                    package_key => :package_key,
                    parameter_name => :parameter,
                    attr_value => :value
                );
            end;
        </querytext>
</fullquery>
packages/acs-tcl/tcl/parameter-procs-oracle.xql

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