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

Dynamics AX 2012 lookup to retrieve entire record

$
0
0

Hello,

I have a simple custom lookup that is using a view. I want to be able to retrieve the entire record of the selected row (and not just 1 field). I saw some examples, but wasn't able to get it to work correctly. Could someone point me in the right direction?

public void lookup()

{

   SysTableLookup sysTableLookup =   SysTableLookup::newParameters(tablenum(CustomView), this);

   Query query = new Query();

   ;

   sysTableLookup.addLookupField(fieldnum(CustomView, FieldA), true);

   sysTableLookup.addLookupField(fieldnum(CustomView, FieldB));    

   query.addDataSource(tablenum(CustomView));

   sysTableLookup.parmQuery(query);

   sysTableLookup.performFormLookup();

}

Any help would be appreciated.

Thanks,

Charu


Viewing all articles
Browse latest Browse all 72043

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>