The lookup now works... i am not sure earlier why it used to always return value 0.
--- Girish Bhatkal <[EMAIL PROTECTED]> wrote: --------------------------------- Hi, i am trying to have a lookup on a stringEdit field no datasource/field/EDT attached in the properties. i have written the following lookup method on the stringEdit field and I AM ABLE to get the lookup. But when i select the record the value does not get selected in the stringEdit field. can anyone tell me what am i missing. here tableId and fieldId are selected from another table. public void lookup() { Query query = new Query(); QueryBuildDataSource queryBuildDataSource; SysTableLookup sysTableLookup; ; sysTableLookup = SysTableLookup::newParameters(tableId,StringEdit); sysTableLookup.addLookupfield(fieldId,true); sysTableLookup.addLookupfield(tableId, fieldId); queryBuildDataSource = query.addDataSource(tableId); sysTableLookup.parmQuery(query); sysTableLookup.performFormLookup(); } thanks, Girish ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com Sharing the knowledge on Axapta. SPONSORED LINKS Business finance course Business to business finance Small business finance Business finance consultant Business finance magazine Business finance schools --------------------------------- YAHOO! GROUPS LINKS Visit your group "Axapta-Knowledge-Village" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. --------------------------------- ___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com ------------------------ Yahoo! Groups Sponsor --------------------~--> <font face=arial size=-1><a href="http://us.ard.yahoo.com/SIG=12h2hjnpb/M=362131.6882500.7825259.1493532/D=groups/S=1705001380:TM/Y=YAHOO/EXP=1123524935/A=2889190/R=0/SIG=10r90krvo/*http://www.thebeehive.org ">Put more honey in your pocket. (money matters made easy) Welcome to the Sweet Life - brought to you by One Economy</a>.</font> --------------------------------------------------------------------~-> Sharing the knowledge on Axapta. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/Axapta-Knowledge-Village/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/