Lookup is not working on realEdit control.

Hi All,

I have wrote lookup on form for realEdit control, but its not showing dropdown. (No error)

Meawhile i have checked same code for StringEdit and intEdit control, its working for these controls.

Any idea???

The values may depend on query that you have written in order to filter the data on realEdit field.

query is returning a valid result, as i said its already working on stringEdit and intEdit control…

Any other ideas…

Can you share the lookup code?

Standard class SysTableLookup don`t work with RealEdit controls. You can add code in method performFormLookup:

FormRealControl callingRealControl;

;

…// standard code

case classnum(FormRealControl):
callingRealControl = callingControl;
callingRealControl.performFormLookup(this.formRun());
break;

Hi,

I think RealEdit controls definitely support lookup. Depending on how you have written the lookup (i.e. which method is used such as performFormLookup, performDBLookup etc), there may be subtle differences. As the previous poster mentioned, please post your code.

You can check the following:

The field, which will display in RealEdit textbox while you select something in lookup, should have valid real data in DB. Make sure that query is returning the valid realEdit data.

Abhishek

We have dig it further and found the root cause, standard performFormLookup method is failing for realEdit control. If you observed the switch cases, you will not find the case for realEdit control. We have modified the code for realEdit control.

void performFormLookup()
{
FormRealControl callingRealControl;
FormStringControl callingStringControl;
FormIntControl callingIntControl;
FormInt64Control callingInt64Control;
FormDateControl callingDateControl;
;
if (!callingControl)
throw(error(Error::wrongUseOfFunction(funcname())));

switch (callingControl.handle())
{
// CS by Vishal for realEdit form lookup
case classnum(FormRealControl):
callingRealControl = callingControl;
callingRealControl.performFormLookup(this.formRun());
break;
//CE
case classnum(FormStringControl):
callingStringControl = callingControl;
callingStringControl.performFormLookup(this.formRun());
break;
case classnum(FormIntControl):
callingIntControl = callingControl;
callingIntControl.performFormLookup(this.formRun());
break;
case classnum(FormInt64Control):
callingInt64Control = callingControl;
callingInt64Control.performFormLookup(this.formRun());
break;
case classnum(FormDateControl):
callingDateControl = callingControl;
callingDateControl.performFormLookup(this.formRun());
break;
}
}

Is there any HotFix available for this?