We have a data source that contains a currency code field and a set of decimal values. The decimal values need to be displayed and edited with respect to the currency code for that record.
A SimpleType with custom display formatters and a customer EditorType sounds like the best approach. But how would the formatters and editors get access to the currency code field?
We're using SQLDataSource and would prefer it to be something we can specify at the ds.xml level if possible since all forms, ListGrids and other UI components that are used to visualize the field need the same behavior. Something like type="currency" currencyCodeField="curCode" in the field tag.
A SimpleType with custom display formatters and a customer EditorType sounds like the best approach. But how would the formatters and editors get access to the currency code field?
We're using SQLDataSource and would prefer it to be something we can specify at the ds.xml level if possible since all forms, ListGrids and other UI components that are used to visualize the field need the same behavior. Something like type="currency" currencyCodeField="curCode" in the field tag.
Comment