Hi,
If I understand your requirement correctly, you would like to create a field for a single financial dimension "BankAccount". I am assuming on a standard table. You can do following:
1. Create an extension of the required table
2. Create new string field with "DimensionValue" as ExtendedDataType
3. On the form, add field and for the same form control create OnLookup event handler code as shown below:
FormStringControl ctrl = _formControl as FormStringControl;
Args args;
FormRun formRun;
DimensionAttribute dimensionAttribute;
select dimensionAttribute
where dimensionAttribute.Name == 'NameOfYourFinancialDimension';
args = new Args();
args.record(dimensionAttribute);
args.caller(_formControl);
args.name(formstr(DimensionLookup));
formRun = classfactory.formRunClass(args);
formRun.init();
ctrl.performFormLookup(formRun);