HI,

I am using CForms to amend xml documents. I have several field widgets with datatype 'integer'. The default formatting for integer is of the form '1,234,567,890'. I need to change the formatting to '1234567890'.

In my binding file I am using for example

 <fb:value id="lodgeNumber" path="@no" >
     <fd:convertor type="formatting"  datatype="integer" >
         <fd:patterns><fd:pattern>############</fd:pattern></fd:patterns>
     </fd:convertor>
 </fb:value>

On loading a document with attribute no="1234567890" I still get '1,234,567,890' in the Form, however, when saving the amended form it works correctly and I get no="1234567890" in the xml doc. If I change the ####### to for example ##,##,##,##,## the form still gives '1,234,567,890', however, the saved xml correctly reflects the new pattern eg 12,34,56,78,90

Please, how do I get the format '1234567890' in the CForm

Peter Sparkes

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to