on 02-01-2006 3:47 PM
hi
I have created a web dynpro application,and I am calling BAPI functional module from that webdynpro application.
Now the output is being displayed in the second view by giving the input from the first view.
Now my problem is that the quantity value is being displayed as "5" and whereas It should be "5.00".
Is there any setting to be done from the properties end of that particular table.
Please suggest me in this issue.
thanks and regards
kris
Are you familiar with the DecimalFormatter?
<b>DecimalFormat df = new DecimalFormat("#.00");</b>
elm.setPercentage<b>(df.format(dPercent).toString());</b>
Regards,
Rich Heilman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Radha,
Thanks for your response.
Can you please let me know where the property isCalculated can be found.I was unable to overcome the problem.
Moreover If you can brief me more on the solution that would be of great help.
We are mapping the node values to the table and displaying the output in that table view.
Is there any way to set the DecimalFormatter for a partuicular mapped column of the table.
thanks and regards
kris
Hi Gopi,
The property in question is "calculated". This is a property of a context value attribute. So select the value attribute in the context to which your field is bound and view the properties. Set "calculated=true". It will generate the accessors.
In the setter method, add the following piece of code:
public void set<your attribute name>(IPrivate<your component>View.IContextElement element, java.lang.String value)
{
DecimalFormat df = new DecimalFormat("#.00");
value = df.format(value).toString();
}
Regards,
Satyajit
Message was edited by: Satyajit Chakraborty
Message was edited by: Satyajit Chakraborty
closing the thread
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
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.