how to Create custom instant search filters in Ax 2009 and 2012 and D365
[Form]
public class SportsForm1 extends FormRun
{
[Control("String")]
class FormStringControl2
{
/// <summary>
//
/// </summary>
public void textChange()
{
super();
this.modified();
}
/// <summary>
///
/// </summary>
/// <returns></returns>
public boolean modified()
{
boolean ret;
ret = super();
str nameFilter;
nameFilter = '*'+this.text()+'*';
Sports_ds.filter(fieldnum(Sports,Person_Name),nameFilter);
return ret;
}
/// <summary>
///
/// </summary>
public void enter()
{
super();
this.setSelection(
strlen(this.text()),
strlen(this.text()));
}
}
}
Comments
Post a Comment