1. Create a class (MyLookup) which inherits SysLookup and override the lookupDimension() method with the following code.
1 2 3 4 5 | public static lookupDimension(FormStringControl _stringControl, Name _dimensionName) { SysLookup::lookupDimension(_stringControl, _dimensionName); } |
2. Override the lookup method of the formcontrol.
1 2 3 4 | public void lookup() { MyLookup::lookupDimension( this , 'CostCenter' ); } |