web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / DAXSEED / Lookup on filed based on se...

Lookup on filed based on selected BaseEnum element in another field.

SunilRakesh Profile Picture SunilRakesh 340
Create new class implements CaseIAssociation. 
Write attribute as shown in snippet.  
[ExportMetadataAttribute('CaseIAssociation', 'BaseEnum ElementName'),ExportAttribute('Dynamics.AX.Application.CaseIAssociation')] 
class ProjCaseAssociationProvider implements CaseIAssociation


In method performLookup() write your lookup logic. 
if (_caseAssociation.EntityType)
        {
            callerControl.performTypeLookup((new SysDictField(
                    tableNum(ProjTable),
                    fieldNum(ProjTable, ProjId)).typeId()));
        }
​ 
Eg:Class ProjCaseAssociationProvide

Comments

*This post is locked for comments