xInfo::automationObjects Method

Retrieves the list of COM objects that are available in Microsoft Dynamics AX.

Syntax

client server public static container automationObjects()

Run On

ClientOrServer

Return Value

Type: container
A nested container that holds a description of each COM object.

Examples

The following example unpacks the nested container that is returned from automationObjects to get a list of COM objects.

void getAutomationObjects() 
{ 
    int idx; 
    FormListItem listItem; 
    int itemPos; 
    container clsGUID,clsDesc,clsVersion,clsPath; 
 
    [clsGUID,clsDesc,clsVersion,clsPath] = xInfo::automationObjects(); 
 
    for (idx = 1; idx < conlen(clsGUID); idx++) 
    { 
        itemPos = formListControl.add(conpeek(clsDesc,idx)); 
        listItem = formListControl.getItem(itemPos); 
        listItem.data(conpeek(clsPath,idx)); 
        formListControl.setItem(listItem); 
    } 
}

See Also

xInfo Class

xInfo::activeXControls Method