Skip to end of banner
Go to start of banner

admAppendProjectToCustomFieldConfigurationScheme

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Availability

This routine is available starting with SIL Engine™ 4.8.0.8.

Syntax

admAppendProjectToCustomFieldConfigurationScheme(fieldName, existingProjectKey, projectKeyToAppend, ignoreExistingContextScheme)

Description

Appends a project to an existing Configuration Scheme of a Custom field for a given project.


The given project should already have a configuration.
The project key to be appended should not belong to any config for that field.

Parameters

Parameter name

Type

Required

Description

fieldNamestringYesName custom field id that has a field configuration.
existingProjectKeystringYes

The project that appears in one of the the custom field configurations, for the given custom field.

projectKeyToAppendstringYesThe project that does not appear in any configuration for the given custom field, and will be appended to the configuration where the existingProjectKey appears.
ignoreExistingContextSchemebooleanYes

If this flag is set to false, and there is already a configuration for the given custom field/project pair, the project will not be added to the config for the existingProjectKey.

If this flag is set to true, and a configuration for the project already exists, the project will be moved from it's current scheme to the existingProjectKey config scheme.

NOTE: the current scheme can also be the global context scheme.

Return type

boolean (true/false)

Returns 'true' if the project was added to the list of projects in the field configuration that already contains the existingProjectKey.


Examples

Example 1 - Adding a project to a custom field configuration

Example 1: The following line of code will add (append) project "PRJ2" to the custom field configuration for the "CF_CASCADE" field that contains the "PRJ1" project key.

admAppendProjectToCustomFieldConfigurationScheme("CF_CASCADE", "PRJ1", "PRJ2", true);

Result:


See also


  • No labels