- Create a Form in AX 2009.
- Add a StringEdit Control in Design.
- Add a new Method to String Edit Control
public void lookup()
{
Counter yearCount;
List valueList = new List(Types::String);
for (yearCount = 0; yearCount < 5; yearCount++)
{
valueList.addEnd(strFmt("Year %1", year(SystemDateGet()) - yearCount));
}
SysLookup::lookupList(this, valueList, "List of years");
}
- Run the Form
No comments:
Post a Comment
Thanks for your time reviewing this blog.