on 08-29-2008 8:07 AM
I have staffNumber attribute as model attribute which is of type IntegerObject(not premitive int) . In inputTextbox it appears as 3,172 instead of 3172 . How to format Integer object values so that I can display values without comma . I know that , we can create a simple type in dictionary , select format for premitive integer type in representation . However I don't want to do that .
Pl help
Bhat
Hi,
You cannot change the type of model attribute. What you can do instead is to use supply function.
Inside use toString method of Integer class and convert it into String.
Hope it helps.
thanks & regards,
Manoj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was fed-up and ultimately had to use this code at every integer attribute of model nodes
wdContext.nodeXXX.getNodeInfo().getAttribute("eoStaffno").getModifiableSimpleType().setFormat("##########");
I wanted a global function to change locale settings
like if I do
NumberFormat nf = NumberFormat.getInstance(Locale.getDefault());
nf.setGroupingUsed(false);
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.