on 04-12-2007 5:16 PM
Hi Experts,
I have to write one line like this in Java program of Web Dynpro:
wdContext.currentPritemElement().setPreq_Price("1.544");
This is not getting compiled. The error is "The method setPreq_Price(BigDecimal) in the type IPrivateMyView.IPritemElement not applicable for arguments(string)".
It looks like there is datatype mismatch and due to this we are getting above error. We Can we do some like typecasting etc to sort out the issue. If yes, how we can do so.
Regards,
Ravindra
Hi Ravidra
You can do this
wdContext.currentPritemElement().setPreq_Price( new BigDecimal( "1.544" ) );
and it´s all .. you shouldn´t has any other problem...
If the answer helps you, regards
Josue Cruz
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.