I have an attribute of type number and min and max length as -2147483648' and '2147483647'.
The value for this attribute is set in the onBeforeSubmit Handler by fetching its value from database. However, on screen it is showing me error "This value is of wrong type". Even if I set correct value (falling within the range -2147483648' and '2147483647'.) it is showing me the same error.
Any idea why it is giving me error.
Edited by: RP on Nov 16, 2012 11:29 PM
In your onBeforeSubmitHandler are you setting the value with a type of String or Double? If the type isn't correct then then you will see this error on the screen as effectively the screen submit has failed.
1. Version is OPA 10.2
2. I am using Java 6
3. I tried below two ways:
- setGlobalInstanceAttribValue(iUserDataObj, "BR2_SettlementLimit", rs.getString("LIMIT"));
- setGlobalInstanceAttribValue(iUserDataObj, "BR2_SettlementLimit", rs.getInt("LIMIT"));