I am trying to customize a standard drop down in AX which is found in the Product attribute values and enable multiple select:

This dropdown is populated in the method attributeChanged() in the form. It populates the drop down by inserting values on it via a while select statement. Here's a snippet:
// Populate enumeration combo box
enumerationComboBox.clear();
while select TextValue from enumerationValue
join RecId from enumerationAttributeTypeValue
where enumerationAttributeTypeValue.Value == enumerationValue.RecId
join RecId from enumerationDomain
where enumerationDomain.RecId == enumerationAttributeTypeValue.AttributeType &&
enumerationDomain.RecId == localEcoResAttributeType.RecId
outer join TextValue from ecoResTextValueTranslation
where ecoResTextValueTranslation.TextValueTable == enumerationValue.RecId &&
ecoResTextValueTranslation.Language == SystemParameters::getSystemLanguageId()
{
enumerationComboBox.add(ecoResTextValueTranslation.TextValue ? ecoResTextValueTranslation.TextValue : enumerationValue.TextValue );
}
How can I incorporate it to this?:
SysLookupMultiSelectCtrl msCtrlCust;
msCtrlCust = SysLookupMultiSelectCtrl::constructWithQueryRun(
element,
control,
queryRun,
false,
[tablenum(MyTempTable), fieldNum(MyTempTable, MyField)]);
I am using extensions... what I thought about is that create a query in my created class (similar to the standard code that populates the drop down) and code the SysLookupMultiSelectCtrl there. Would it work? Will my extension override the standard method?
*This post is locked for comments
I have the same question (0)