Monday, June 02, 2008

Optimized Search In Chart Of Accounts Master table

Added Optimized search in the Chart Of Accounts master table in Ax.
To accomodate the above new text box have been added in the form. The text box have been added to filter the list.
Ex. When the user types part of the number or part of Chart of Account 100, it will display only the accounts that starts with 100.

Coding : Use these methods in your FORM StringControl that we have added and Achieve your Optimized Search

1. public void textChange()
{
;

super();

element.delAutoCompleteString(this);

qbrName.value(......);
LedgerTable_ds.executeQuery();
}

2. public void enter()
{
#define.WM_KEYDOWN (0x0100)
#define.VK_END (0x23)
#define.VK_DOWN (0x28)

int i;

super();

if (this.text())
{
WinApi::sendMessage(.........);
}
}

3. public boolean modified()
{
boolean ret;
;

ret = super();

qbrName.value(.................);
LedgerTable_ds.executeQuery();

return ret;
}

No comments: