fieldLocationId = dialog.addFieldValue(typeid(InventLocationId), locationId, '', '', 'LocationId'); protected void LocationId_lookup() { ... }