Share via


FormControl.configurationKeyEx Method

Definition

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

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

Returns

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

Remarks

The returned 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. The returned list also contains any configuration key IDs that are applied to the properties, extended data type, or enumType methods.

The following example shows how to retrieve 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