# # create_default_xref_groups snapon # # This snapon creates all default xref groups: one for each non-aggregating field with date/time, that field, and all aggregating fields; and one for each report, with all fields in that report. # create_default_xref_groups = { label = "$lang_admin.snapons.create_default_xref_groups.label" comment = "$lang_admin.snapons.create_default_xref_groups.comment" version = "1.0" # 2012-08-16 - GMF - 1.0 - Initial creation parameters = { } # parameters attach_operations = { create_default_xref_groups = { type = "execute_expression" expression = ` #echo(1); #include("lib.profile_setup.util"); #echo(1); #echo("create_default_xref_groups snapon"); #include "lib.profile_setup.util"; # Use volatile.new_profile_name if it exists (snapon attached during profile creation) node profile; #echo("internal.profile_name: " . internal.profile_name); #echo("volatile.new_profile_name: " . volatile.new_profile_name); if ('volatile'?{"new_profile_name"}) then profile = 'profiles'{@'volatile'{"new_profile_name"}}; # Otherwise, use internal.profile_name (snapon attached later) else profile = "profiles." . internal.profile_name; if (profile?{"database.cross_reference_groups"}) then ( delete_node(profile{"database.cross_reference_groups"}); @profile{"database"}{"cross_reference_groups"} = ""; ); create_xref_groups(profile); ` } # create_default_xref_groups } # attach_operations } # create_default_xref_groups