<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Sharepoint/BCS/Infopath Bug/limitation</title><link>https://www.infopathdev.com:443/forums/thread/62142.aspx</link><pubDate>Thu, 09 Dec 2010 22:48:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62142</guid><dc:creator>mikeleenz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62142.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=62142</wfw:commentRss><description>&lt;p&gt;Hi,&amp;nbsp; I wanted to share a bug we have encountered just incase anyone else is straching their heads&lt;/p&gt;
&lt;p&gt;Below is dialogue sent to/from Microsoft with my own summary at the bottom.&amp;nbsp; Any feedback and thoughts are welcomed&lt;/p&gt;
&lt;p&gt;Cheers&lt;br /&gt;Mike&lt;/p&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;strong&gt;BACKGROUND&lt;/strong&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;We have a SharePoint 2010 public facing farm (1WFE , 1 SQL) which has been setup to transition from our 2007 environment.&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;I have configured the following services to enable using external lists in the farm: BCS, SSS&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;The Separate SQL database resides on the SharePoint 2010 SQL Server&lt;/font&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;All servers are Windows 2008 R2 and SQL is 2008R2&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Client side is Office 2010&lt;/font&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;When an external list is created the connection and authentication complete with a successful connection to the SQL datasource.&amp;nbsp; This specific database has many field types which includes string, datetime, integer, decimal etc.&lt;/font&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;When viewing the external list in the External List UI all fields in the database render and function on the screen. &lt;/font&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;We have an additional standard forms library where we have an InfoPath publishing to.&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Connecting the InfoPath form directly to the Database everything functions as expected and Decimal type fields are available.&lt;/font&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;We are wanting to provide a codeless UI without the need for VPNs to expose the SQL database.&lt;/font&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;For the “codeless” Submit to SharePoint we would be using qDabra’s qRules product.&amp;nbsp; Testing with this product has proven it will meet our needs if we can see the required fields.&lt;/font&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;strong&gt;ISSUE&lt;/strong&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;If the list is left editable without using InfoPath as the editor, editing can occur successfully for fields and calculated fields calculate correctly via the built-in SharePoint list item data entry UI.&lt;/font&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;If the option is activated to create an InfoPath form for the external list editing, data editing is completely broken via the InfoPath form.&lt;/font&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;Using our separate InfoPath form (publishing to its own library) and create a secondary connection to the External list, all fields are displayed EXCEPT any which have an underlying type of System.Decimal.&lt;/font&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;I did testing around adding every number type field to an SQL 2008 R2 table (Incl. Integer, Float, Numeric, Decimal, Currency etc. ) and the only number types I can view via the external list are Int and Float.&lt;/font&gt;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;The table I am using has many int, datetime, string and decimal fields.&amp;nbsp; Each field type functions whether they are calculated fields or not.&amp;nbsp; The only common fault to each field not showing (that I could identify via my testing) was fields with an underlying System.Decimal field type.&lt;/font&gt;&lt;/font&gt; 
&lt;p&gt;&lt;strong&gt;Microsofts response after the Sharepoint team recreated the fault and sent it on to an Infopath Product manager&lt;/strong&gt;&lt;/p&gt;&lt;span style="COLOR:#632423;mso-ansi-language:EN-US;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;em&gt;this limitation is by design.&amp;nbsp; &lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;span style="COLOR:#632423;mso-ansi-language:EN-US;"&gt;&lt;font size="3" face="Calibri"&gt;&lt;em&gt;&amp;nbsp;&lt;/em&gt;&lt;/font&gt;&lt;/span&gt; 
&lt;p style="MARGIN:0cm 0cm 0pt;" class="MsoNormal"&gt;&lt;span style="COLOR:#632423;mso-ansi-language:EN-US;"&gt;&lt;font size="3"&gt;&lt;font face="Calibri"&gt;&lt;em&gt;By my understanding, InfoPath and SharePoint can work correctly with Double values, but we cannot support values that go beyond 14 digits of precision.&amp;nbsp; You should consider returning either Double or String values from your query, rather than Decimal, if you need to use the decimal type in the database.&amp;nbsp; &lt;span style="BACKGROUND:yellow;mso-highlight:yellow;"&gt;For example, you can create a view or sproc that executes a CONVERT on the data, or you can use a web service or .NET shim to mediate between the data source and the external list.&lt;/span&gt; &lt;/em&gt;&lt;/font&gt;&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;My thoughts on the Matter&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This can&amp;#39;t surely be a limitation by design for the following reasons.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;If you have a BCS list with Decimal datatypes, you still have the option in Sharepoint to &amp;quot;Edit Forms&amp;quot; for the list from the ribbon bar.&amp;nbsp; If you do this then you break your list.&amp;nbsp; DO NOT click the option (inSharepoint designer when you create a BCS list) to create infopath forms for the list then the list will be broken from the get go.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;If it is by design, why can you create a form successfully when connecting direct to a database (SQL etc)&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Sharepoint itself (if you view the list settings and field types) correctly recognises the system.decmal based fields and list interaction via the web GUI functions perfectly.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Come on Microsoft.&amp;nbsp; Please look at a fix as you actively in all your demos use the &amp;quot;Expense Claim Form&amp;quot; template and what development team in their right mind would have any financial numerical data using a float field type???&lt;/p&gt;
&lt;p&gt;I actively use Sharepoint and infopath everyday and overall I am imressed with 2010.&amp;nbsp; I hope Microsoft take my comments in a positive manner because that is how they are meant.&amp;nbsp; High volume users are not going to accept &amp;quot;By Design&amp;quot; as an acceptable solution when the logic is plainly flawed.&lt;/p&gt;
&lt;p&gt;Take care for the season ahead.&lt;/p&gt;</description></item></channel></rss>