﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » PK and filtered data</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 12:21:13 GMT</lastBuildDate><ttl>20</ttl><item><title>PK and filtered data</title><link>http://forum.strataframe.net/FindPost29049.aspx</link><description>I have a combo populated with filtered data. When adding a record I get a cast error from the PropertyDescriptor class "&lt;font color=#0000ff size=2&gt;&lt;font color=#0000ff size=2&gt;return&lt;/font&gt;&lt;/font&gt;&lt;font size=2&gt; ((&lt;/font&gt;&lt;font color=#2b91af size=2&gt;&lt;font color=#2b91af size=2&gt;CertificateBO&lt;/font&gt;&lt;/font&gt;&lt;font size=2&gt;)component).FK_customer3;". In tracing through debug it appears that the value for FK_customer3 is being set to the begining value for PK in the table for the new record, in this case 1000, the record with PK 1000 is not in the filtered data and I believe this is causing the error. Am I correct and if so what is a fix for this?&lt;/font&gt;</description><pubDate>Fri, 19 Nov 2010 15:37:19 GMT</pubDate><dc:creator>Ian Johnston</dc:creator></item><item><title>RE: PK and filtered data</title><link>http://forum.strataframe.net/FindPost29058.aspx</link><description>Glad you got it going, Ian. ;)</description><pubDate>Fri, 19 Nov 2010 15:37:19 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: PK and filtered data</title><link>http://forum.strataframe.net/FindPost29054.aspx</link><description>O.K. set AlowNullValuesOnNewRow to false, problem solved.</description><pubDate>Fri, 19 Nov 2010 12:37:32 GMT</pubDate><dc:creator>Ian Johnston</dc:creator></item></channel></rss>