Changing the data type from SimpleType to Decimal - InfoPath Dev
in

InfoPath Dev

Changing the data type from SimpleType to Decimal

Last post 06-16-2009 04:52 PM by Jimmy. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 06-15-2009 01:12 PM

    Changing the data type from SimpleType to Decimal

    I have a data source that is reading fields from a SQL database. When I insert a control from the datasource, the attribute field from the textbox control that I am adding is defaulted to simpleType, but in my database table the field is Decimal. I need to change the default control in Infopath from simpleType to Decimal. Please explain how I can do this.

  • 06-15-2009 09:46 PM In reply to

    Re: Changing the data type from SimpleType to Decimal

    Hi,

    Open the secondary data source xsd and change the type of that field.

     

    Swathip
    www.ggktech.com
  • 06-16-2009 08:40 AM In reply to

    Re: Changing the data type from SimpleType to Decimal

    Hello and thanks for your answer.

    I added a secondary data source but the fields don't allow me to change the type.

    My Form template is based on a Microsoft SQL Server database, the fields and groups in data sources are based on data connections to external data sources; I cannot modify those.

     

  • 06-16-2009 09:29 AM In reply to

    Re: Changing the data type from SimpleType to Decimal

     What swathip is suggesting is that you modify the XSD file in the template's source to change the data type, but why do you need the field to be a specific type?

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 06-16-2009 11:29 AM In reply to

    Re: Changing the data type from SimpleType to Decimal

    I had two field in my <queryFields> that I'm using to sum values in some of my <dataFields>.

    The fieldX in <dataFields> is using the formula (queryField_field01 / queryField_field02); fieldX is betweet 0 and 1.

  • 06-16-2009 04:52 PM In reply to

    Re: Changing the data type from SimpleType to Decimal

     Where is this calculation being performed?  Is it in InfoPath or in SQL?  InfoPath doesn't really care what the schema type of a field is when performing arithmetic operations.  If it's SQL, can you give us some idea of what type of query you're using/what sort of SQL entity you're querying?

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.