﻿<?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 » WinForms (How do I?)  » Save on ComboBox field gives Broken Rule Error</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 22 Sep 2026 10:24:40 GMT</lastBuildDate><ttl>20</ttl><item><title>Save on ComboBox field gives Broken Rule Error</title><link>http://forum.strataframe.net/FindPost28509.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;We are working with combobox control and trying to use it in our application. We found that if a field is a required field and it is connected to a Business Object through a combobox control even if the combobox is filled with a value it is giving a broken rule error while saving.&lt;br/&gt;&lt;br/&gt;I am sending you an example in the Strataflix application. If you check the movie maintenance form (MovieMaintenance.cs) I substitiued the Movie field from a textbox to a combobox. I populated the combobox from PeopleBO by adding FillTop100 Method to this BO. When you select something for the comboboxbox and fill the rest and click the save button it gives a broken rule error. &lt;br/&gt;&lt;br/&gt;Could you please help us to fix this error?&lt;br/&gt;&lt;br/&gt;Best Regards</description><pubDate>Tue, 28 Sep 2010 15:10:38 GMT</pubDate><dc:creator>lastcanary</dc:creator></item><item><title>RE: Save on ComboBox field gives Broken Rule Error</title><link>http://forum.strataframe.net/FindPost28525.aspx</link><description>Ok, if that is the case, then change the BindingProperty of the combobox to SelectedValue.&amp;nbsp; That should do the trick since comboboxes use the SelectedValue for binding.&lt;br/&gt;&lt;br/&gt;By the way, what is your name?</description><pubDate>Tue, 28 Sep 2010 15:10:38 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Save on ComboBox field gives Broken Rule Error</title><link>http://forum.strataframe.net/FindPost28524.aspx</link><description>We already know that mv_Title is set as a required field. We are selecting a string for the combobox so mv_Title is not empty, why are we getting the broken rule then?&lt;br/&gt;&lt;br/&gt;We want to have a field that is a required field but can also be set from a combobox, is this not possible?</description><pubDate>Tue, 28 Sep 2010 14:43:57 GMT</pubDate><dc:creator>lastcanary</dc:creator></item><item><title>RE: Save on ComboBox field gives Broken Rule Error</title><link>http://forum.strataframe.net/FindPost28515.aspx</link><description>Instead of fixing it, I rather you learn from it.&lt;br/&gt;&lt;br/&gt;In this particular case, the business object MoviesBO.cs has the mv_Title as part of its Required Fields collection.&amp;nbsp; If that is not what you want, simply open the BO and uncheck the mv_Tile from the Required Fields Editor and then the form will save without a broken rule.&lt;br/&gt;&lt;br/&gt;Take a look in the help file at the Required Fields and they can be useful for your own logic.</description><pubDate>Tue, 28 Sep 2010 09:59:39 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Save on ComboBox field gives Broken Rule Error</title><link>http://forum.strataframe.net/FindPost28514.aspx</link><description>We were just trying to use combobox for our form. We are simply tring to get a string in the combobox. We changed the &lt;span id="ctl00_ctlContentPlaceHolder_ctl00_ctlTopic_ctlPanelBar_ctlTopicsRepeater_ctl01_lblFullMessage"&gt;pl_pk to pl_FullName since it is a string field, but the broken rule still exists. &lt;br/&gt;&lt;br/&gt;Could you please fix the code and send us the corrected source code?&lt;br/&gt;&lt;br/&gt;Thanks&lt;br/&gt;&lt;/span&gt;</description><pubDate>Tue, 28 Sep 2010 09:47:56 GMT</pubDate><dc:creator>lastcanary</dc:creator></item><item><title>RE: Save on ComboBox field gives Broken Rule Error</title><link>http://forum.strataframe.net/FindPost28512.aspx</link><description>Hi,&lt;br/&gt;&lt;br/&gt;Well, you are getting the broken rule error because the rule of not having the mv_Title is really broken &lt;span&gt;:w00t:&lt;/span&gt;.&lt;br/&gt;&lt;br/&gt;In your new combobox the BindingField mv_Title is not being filled by the combobox population method, if you double check it, the Value Member being used is pl_pk from the PeopleBO and that is the value used to fill the BindingField mv_Title which are different.&lt;br/&gt;&lt;br/&gt;Can you please explain, what is it that you want to accomplish?</description><pubDate>Tue, 28 Sep 2010 09:16:03 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item></channel></rss>