I think this one will work. try to override the lookup. public void lookup(FormControl _formControl, str _filterStr) { SysTableLookup sysTableLookup = SysTableLookup::newParameters(tablenum(tablename),_FormControl); Query query = new Query(); ;
query.addDataSource(tableNum(tablename)); query.dataSourceTable(tableNum(tablename)).addRange(fieldNum(tablename, fieldname)).value(value); sysTableLookup.addLookupfield(fieldNum(tablename, fieldname)); sysTableLookup.parmQuery(query); sysTableLookup.performFormLookup(); } --- Claas Heinrich <[EMAIL PROTECTED]> wrote: > Hi! > > I created a form with a stringedit in axapta 3.0 and > simply added the > lookup method. > Everything works fine. > I click the Looku Button and axapta enters the > method. > > In 4.0 the same code doesn't work... > > Is this a bug? > > Greeting, > Claas Heinrich > > > > Yahoo! Groups Links > > http://groups.yahoo.com/group/development-axapta/join > (Yahoo! ID required) > > > mailto:[EMAIL PROTECTED] > > > __________________________________________________________________ Yahoo! Singapore Answers Real people. Real questions. Real answers. Share what you know at http://answers.yahoo.com.sg