
Hi,
I have built a custom lookup form and used it on the Form Help property in an extended data type. Everything works ok but only when the field where I make the lookup is empty. When the field has already a value and I try to select a new value I get the error "Invalid sort field".
Does anyone have an idea what could be?
Thanks
*This post is locked for comments
I have the same question (0)By the way I found it:
It seems that in Ax7 we need also to edit the rund method in the lookup form with something like this (From AssetBookLookup)
public void run()
{
FormStringControl callingControl = SysTableLookup::getCallerStringControl(element.args());
boolean filterLookup;
;
filterLookup = SysTableLookup::FilterLookupPreRun(callingControl, assetBookTable_BookId, assetBookTable_ds);
super();
SysTableLookup::FilterLookupPostRun(filterLookup, callingControl.text(), assetBookTable_BookId, assetBookTable_ds);
}