field.
This might give you some inspiration:
public void lookup(FormControl _formControl, str _filterStr) {
SysTableLookup sysTableLookup =
SysTableLookup::newParameters(tablenum(InventTable), _formControl);
Query query = new Query();
QueryBuildDataSource queryBuildDataSource;
;
//add more if you like
sysTableLookup.addLookupfield(fieldnum(InventTable, ItemId));
sysTableLookup.addLookupfield(fieldnum(InventTable, ItemName));
queryBuildDataSource = query.addDataSource(tablenum(InventTable));
if (purchTable.isConsignment)//<- your field
{
queryBuildDataSource.addRange(fieldnum(InventTable,ItemType)).value(enum
2str(ItemType::Consignment));//<-your type
}
queryBuildDataSource.addSortField(fieldnum(InventTable,ItemId));
sysTableLookup.parmQuery(query);
sysTableLookup.performFormLookup();
}
Regards
Lennart Conrad
-----Original Message-----
From: development-axapta@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of manojkumar_asp
Sent: 7. februar 2006 04:46
To: development-axapta@yahoogroups.com
Subject: [development-axapta] PO Help..Plss
Hi,
I need to add a new indicator to identify PO is Consignment PO in the
header.
Only Consignment items will be listed in Item lookup when the
Consignment PO indicator is checked.Where to write code.Please help me
in this.Thanks a lot.
regards,
Manoj
Yahoo! Groups Links
SPONSORED LINKS
Computer part | Programming languages | Microsoft axapta |
Support exchange |
YAHOO! GROUPS LINKS
- Visit your group "development-axapta" 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.