on 10-12-2007 8:11 AM
Hi All,
i have defined a simple type of the built-in type double, the representation format is like follows: #,##0.00
As you can guess it is a price representation for the format like 1,000.99
If i enter a value like 1,000.9999999 and after that i switch fields/change tabs/whatever the framework nicely rounds the entered value to the format that is defined.
Whenever you enter a negative value of dont use the dot in a wrong way you cannot execute the action because of the validation that takes place, but when i enter the same value (1,000.9999999) and click the button to execute the action it takes the wrong format.
What would be a good solution for this problem? Setting a max length for the simple type (how?). Is it a bug in the validation of the framework?
Any help is appreciated! Thanks!
Hi
You can set the length according to your requirement.I just send the sample
You can set it to 20 ,,,,,,,,,,,,10 any digit.That will work.
Regards
Kalyan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Koevotoes
May be this code will helps you
The following code will set the maximum length for that particulat field.
ISimpleTypeModifiable basePayPercentage3 = wdContext.wdGetAPI().
getModifiableTypeOf("<Node Name>.<Attribule Name>");
basePayPercentage3.setMaxExternalLength(3);
Like this you can set the maximum length for a particular Attr which is binded to Some UI element.
Thanks and Regards
kalyan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Specify the type of the simple type as Decimal instead of double and set the total(max) number of digits(including fractional part, "'" and ".") you want to have and also specify out of this total number how many digits for fractional part.
I think this will suffice your requirement.
Warm Regards,
Murtuza
Message was edited by:
Murtuza Kharodawala
Hi
You can use
Minimum Inclusives
Maximum Inclusives
Minimum Exclusives
Maximum Exclusives
Regards
Abhijith YS
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 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
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.