FormComboBoxControl.configurationKeyEx Method

Definition

Returns a list that contains the IDs of configuration keys that are in effect for the control.

public:
 override Microsoft::Dynamics::Ax::Xpp::List ^ configurationKeyEx();
public override Microsoft.Dynamics.Ax.Xpp.List configurationKeyEx ();
override this.configurationKeyEx : unit -> Microsoft.Dynamics.Ax.Xpp.List
Public Overrides Function configurationKeyEx () As List

Returns

A list that contains the IDs of configuration keys that are in effect for the control.

Remarks

The list does not contain duplicate IDs. If the control is bound to a data source, the returned list of configuration key IDs also includes the configuration key ID for the table and field. In addition, the returned list contains any configuration key IDs that are applied to the properties, extended data type, or enumType methods.

The following example shows the retrieval of the configuration key IDs for a control.

DictConfigurationKey dck; 
configurationKeyId cki; 
List list; 
ListEnumerator enum; 
// objCtrl previously assigned. 
list = objCtrl.configurationKeyEx(); 
if (0 != list.elements()) 
{ 
    enum = list.getEnumerator(); 
    while (enum.moveNext()) 
    { 
       dck = new DictConfigurationKey(enum.current()); 
       if (dck) 
       { 
        print strfmt("Configuration Key ID: %1 Configuration Key Name: %2", 
                     enum.current(), 
                     dck.name() ); 
       } 
    } 
}

Applies to