Validation error after grouping

P

PavK

Hello!

I have field (data type: double) with symbols grouping: "12345,00" -> "12
345,00".

After submiting the form I tried to change values "12 345,00" to "12 555,00"
but had got the error message: "only integers are allowed". InfoPath insert
the whitespaces for grouping symbols.

So, I think it is InfoPath bug that it show the error message.

Is any workaround for this behaviour?
 
M

Madhuri

Hi

Double and Interger data type will not accept whitespaces.

Take data type as string and add data validations using pattern.

Thanks
Madhuri
 
S

Swathi (GGK Tech)

Hi,
I have verified this and it is working fine for me. Once check whether any
validations added for that control?
 
P

PavK

It is doesn't work for browser-enabled forms for common text box field with
data type double.
 
P

PavK

For grouping I'm using following standard option "Decimal Format->Use a
digit grouping symbol ()"
 
P

PavK

Madhuri,
You are right that double doesn't accept whitespaces, but I'm using standard
InfoPath grouping functionality ("Decimal Format" -> "Use a digit grouping
symbol").

So, I'm getting the error after following sequence of operation:
"inter data" -> "submit form (automatic grouping is performed)"->"changing
data" -> "error message: only numbers are allowed".

It is specific for browser-enabled form. Do you now workaround?
 
P

PavK

Hi Swathi,

sorry, what do you mean?
Should I delete and add the control during processing? Or in design mode?
 
P

PavK

Thanks to all for your help!

The problem is solved by using following fix:
http://support.microsoft.com/kb/956315

"When you complete a numeric field in a French-language form in Forms Server
2007 by using the space character as the Digit grouping symbol, the field may
be highlighted as invalid data." - It is applicable for my Russian-language
:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top