On Lookup Method
https://community.dynamics.com/ax/b/dynamicsax7knowledge/archive/2016/10/17/dimension-lookup-in-ax7
[FormControlEventHandler(formControlStr(EcoResCategory,
EcoResCategory_DOMFinancialProductGroup), FormControlEventType::Lookup)]
public static void EcoResCategory_DOMFinancialProductGroup_OnLookup(FormControl sender, FormControlEventArgs e)
{
EcoResProductParameters
ecoResProductParameters;
select USMFFinancialProductGroup from ecoResProductParameters;
DimensionValueLookupHelper::lookupDimensionValues(DimensionAttribute::findByName(ecoResProductParameters.USMFFinancialProductGroup),
sender, curExt());
//USMFFinancialProductGroup can be BusinesUnit, Department, CostCenter etc
}
Reference
Thanks for details explanation. Please Continue to share this post.
ReplyDeleteMicrosoft Dynamics AX Online Training