Hello,
I'm using SmartClient v13.1p_2025-05-12/PowerEdition.
I have a custom type defined in currencyFloat.type.xml file:
This gives me two warnings in logs:
1. What can I do to remove the first warning?
2. Looks like framework validation is invalid? FloatPrecisionValidator.ds.xml declares roundToPrecision field as a boolean, but in Validator.ds.xml it's declared as in integer.
I'm using SmartClient v13.1p_2025-05-12/PowerEdition.
I have a custom type defined in currencyFloat.type.xml file:
Code:
<SimpleType name="currencyFloat" inheritsFrom="float" format=",##0.00" editorType="CurrencyFloatItem"> <validators> <validator type="floatRange" min="0" errorMessage="Value cannot be negative" /> <validator type="floatRange" max="99999999" errorMessage="Value cannot be larger than 99999999" /> <validator type="floatPrecision" precision="2" roundToPrecision="true" /> </validators> </SimpleType>
Code:
13:38:20.287 WARN [admin][web-163] com.isomorphic.datasource.BasicDataSource : Attempting to set default i18n resource bundle name, encountered an unexpected context fieldName property: SimpleType[@name=currencyFloat] 13:38:20.388 WARN [admin][web-163] com.isomorphic.validation.Validation : Validation errors validating a 'SimpleType': { "/SimpleType[@name=currencyFloat]/validators/2/validator":{ recordPath:"/SimpleType[@name=currencyFloat]/validators/2/validator", roundToPrecision:{ severity:"ERROR", errorMessage:"Must be a whole number." } } }
2. Looks like framework validation is invalid? FloatPrecisionValidator.ds.xml declares roundToPrecision field as a boolean, but in Validator.ds.xml it's declared as in integer.