on 02-01-2007 12:42 PM
Hi
I have a input field which has a data type decimal.
But in R3 its data type is Big Decimal.
Now when i am picking the data from the context
it shows an error cannot convert float to BigDecimal.
The code is like this..
float qty=wdContext.currentContextElement().getQty();
Here Qty is of BigDecimal type..
i cant change the data type for Qty
so what should i do..
Thanks
Valery
I have used the code which u gave me but now it is showing the
error BigDecimal cannot be resolved or is not a type.
Monika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Valery
The problem has been solved.
Monika
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Monika,
organize your imports.
kind regards
stefanie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Monika,
Try this:
final BigDecimal oQty = wdContext.currentContextElement().getQty();
float qty = oQty == null ? 0 : oQty.floatValue();
Valery Silaev
SaM Solutions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
wdContext.currentContextElement().getQty().floatvalue();
Regards,ANilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
25 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.