on 01-28-2010 12:35 PM
HI,
I have got a problem with number formats in a table. The datasource of the table is a model node.
In this node, I have an attribute with type of decimal. It has the length of 15 and 3 decimals.
When I output the data via Message Manager, it outputs the correct value, e.g. 8.600, but in the table there only is the value 8,6!
How can i achieve that the value in the table is 8,600?
I don't want to use value nodes with a getter method.
Is there any other option?
Best regards,
Peter
Hello Peter,
Well you can accessthe simpletype modifiable for the attribute by writing the following code in the wddodinit
ISimpleTypeModifiable modsim =
wdContext.node<modelnode name>
.getNodeInfo()
.getAttribute("x")
.getModifiableSimpleType();
modsim.setFormat("0.0000");
It will solve your problem.
Thanks
Sarbjeet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
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.