on 10-01-2008 12:36 PM
Hi
I have a label with name amount and atext box,according my scenario when user enter any values that decimal values should round up to 2 decimal places. for example if user enters 15.6777 its should round up as15.68.can please tell me the required code for this.
Thanks
Raju
Edited by: raju on Oct 1, 2008 1:36 PM
Hi,
please try this.
IWDAttributeInfo attrInfo = wdContext.node<yourNode>().getNodeInfo().getAttribute(nameOfYourValue);
attrInfo.getModifiableSimpleType().setFormat("###,###,##0.00");
This set the format of your value attribute to the following example 123,234.12
for a value like 123234.1234
regards
G.Werner
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Raju,
Just create a simple type for that.
-Ashutosh
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.