Hi michael.. If u created lookup form from code may be this code help you :

           

SysTableLookup createLookupField(str tablename, str fieldname, bool sorted)

{          

SysTableLookup          _tableLookup;

            QueryBuildDataSource _qbds;

Query                           _query;

 

            TableId                         _tableId;

            FieldId                          _fieldId;

;

           

_tableId            = tablename2id(tablename);

_fieldId              = fieldname2id(_tableId,fieldname);

 

_tableLookup    = SysTableLookup::newParameters(_tableId,callerForm);

 

_query              = new Query();

_qbds               = _query.addDataSource(_tableId);        

           

_tableLookup.addLookupfield(_fieldId);                            // this adds lookup field

 

İf(sorted)

{

            _tablelookup.addSortField(_fieldId);              // this don’t add lookup field, only makes sorting ;)

}

 

_tableLookup.parmQuery(_query);

return  _tableLookup;

}          

 

Best regards,

 

Anil Ozay

 


From: Michael Jackson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 10, 2004 4:19 PM
To: [EMAIL PROTECTED]
Subject: [development-axapta] Sorting All Data In Look Up Window

 

 

         Hi All,

 

         I want to sort all data which appear in a look up window (and aslo, this look up window has two coloumn) as alphabetical. What must I do about this operation. Tell me please.

 

         Regards,

 

         MJ.




Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to