<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Invalid update: A custom constraint has been viol</title><link>https://www.infopathdev.com:443/forums/thread/13893.aspx</link><pubDate>Wed, 02 Nov 2005 21:25:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13893</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13893.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13893</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;Because you are using code behind already, why don't your perform the validation by code and remove your rule?&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;Franck Dauché</description></item><item><title>Invalid update: A custom constraint has been viol</title><link>https://www.infopathdev.com:443/forums/thread/12651.aspx</link><pubDate>Wed, 02 Nov 2005 03:16:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12651</guid><dc:creator>absMing</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12651.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12651</wfw:commentRss><description>has anyone else experienced this. if so, are there any work arounds.on my form i have a combox box which has an onchange event tied to it.  if the cbx selection is changed then a confirmation prompt is displayed. user then selects yes or no.the yes bit works, but the selecting no results in the error above.  &lt;br /&gt;&lt;br /&gt;The combobox has a validation rule which prohibits it from being blank&lt;br /&gt;&lt;br /&gt;function msoxd__Activity_Status_attr::OnBeforeChange(eventObj)&lt;br /&gt;{&lt;br /&gt;try {&lt;br /&gt;	if (eventObj.NewValue != eventObj.OldValue){		&lt;br /&gt;		var resp = XDocument.UI.Confirm("Are you sure you want to delete this record?", 4);&lt;br /&gt;		if (resp != 6 ) {&lt;br /&gt;			eventObj.ReturnStatus = false;	&lt;br /&gt;		}else{&lt;br /&gt;			eventObj.ReturnStatus = true;			&lt;br /&gt;		}&lt;br /&gt;	}&lt;br /&gt;} catch (e) {}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;cheers in advance</description></item></channel></rss>