Manual SysDateLookup on a FormStringControl

 
Good afternoon,
 
The following code will manually launch, in code, a fully fonctional lookup on SysDateLookup.
 
public void lookup(FormStringControl _formControl, str _filterStr)
{
    ;
 
    _formControl.performFormLookup(SysLookup::lookupDate());
}
 
The class SysLookup contains lookup constructors for enum lookups and table lookups too. Pretty neat.
 
This entry was posted in Dynamics Ax 4.0x. Bookmark the permalink.