Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

Execute custom lookup logic conditionally

$
0
0

Hi,

I have a lookup that has some custom logic in the OnLookup event handler. I need to execute it based on a condition, otherwise I need to call the base lookup logic. What I'm having trouble with is calling the base lookup since I cannot use the super() method in the event handler. Here's what I'm trying to achieve:

if(someCondition)

{

   //execute custom lookup logic

}

else

{

   //execute the base lookup code

}


Viewing all articles
Browse latest Browse all 72043