Overriding LookUp in Dialog Class


I created a dialog using Dialog class. I added two fields (ie) DialogField in it. I need to override the second field’s Lookup method based on the first field value. Else suggest any pre defined class which uses this functionality.

The best way is simply to create a new form instead of trying to override methods at runtime.

If you want to bother anyway, you’ll have to enable overrides (dialog.formRun().controlMethodOverload(true)), register the object containing the method to be called (dialog.formRun().controlMethodOverloadObject(this)) and use a special naming pattern: {field name}_{method to be overrided}, e.g. Fld1_lookup.