Total Pageviews

Wednesday, February 22, 2017

add run time enum to combo box Dynamics Ax 2012 R3

public void init()
{
    SysFormEnumComboBox     sysFormEnumComboBox;
    Set enumSet = new Set(Types::Enum); // collection of selected values.


            enumSet.add(EnumName::None);
            enumSet.add(EnumName::one);
            enumSet.add(EnumName::two);
            enumSet.add(EnumName::three);
            enumSet.add(EnumName::four);
            enumSet.add(EnumName::five);
         
     

    SysFormEnumComboBox = SysFormEnumComboBox::newParameters(element,
        element.controlId(formControlStr(Formname, comboboxname)),  enumName2Id(enumStr(EnumName)), enumSet);

    super();
    SysFormEnumComboBox.select(EnumName::None); // To select value in combo
}

D365FO and Sharepoint integration issue on dev box: "You are not authorized to connect to 'https://sharepoint.sharepoint.com/

Troubleshooting SharePoint Integration After Upgrading D365FO to Version .42 After upgrading to Dynamics 365 Finance and Operations (D365FO)...