Hi,
You have to override the lookup method of the object and create your own
query this way:

public void lookup()
{
  sysTablelookup systablelookup;
  Query   query=new query();
  QueryBuildDataSource querybuilddatasource;

    ;
 
sysTableLookup=sysTableLookup::newParameters(tablenum(CustTable),this);
  sysTableLookup.addLookupfield(fieldnum(Custtable,AccountNum));
  sysTableLookup.addLookupfield(fieldnum(Custtable,name));
  querybuilddatasource=query.addDataSource(tableNum(Custtable));
 
querybuilddatasource.addRange(fieldnum(Custtable,Field1)).value(value);

  systablelookup.parmQuery(query);
  systablelookup.performFormLookup();

}

Best Regards,
Alfonso

-----Original Message-----
From: Axapta-Knowledge-Village@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Tuesday, April 18, 2006 9:07 AM
To: AXKnowledgeVillage; DevelopmentAxapta
Subject: [Axapta-Knowledge-Village] dynamic lookup in dialog

Hi,

how do i create customized lookup in dialog.

Ex:
----
i have 2 controls in my dialog namely dialog1 & dialog2. dialog2 values
should be populated based on dialog1. ie i have to populate dialog2
values
while dialog1 is modified. is there any method called modified for
dialog
control? how do i do?


pls. provide the solution. thanx.


regs,
Hema. S





Sharing the knowledge on Axapta.
Visit www.frappr.com/axapta for axapta friends. 
Yahoo! Groups Links



 






--------------------------------------------------------------

This e-mail and any attachments are confidential. If you are not the named or 
intended recipient, please notify the sender immediately and do not disclose 
the contents to any other person, use it for any purpose or store or copy the 
information in any medium. Any unauthorized disclosure, use or storage is 
prohibited and might be unlawful.

 


Sharing the knowledge on Axapta.
Visit www.frappr.com/axapta for axapta friends. 
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/
 


Reply via email to