Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New to .NET
Message
De
08/06/2006 07:10:36
 
 
À
08/06/2006 01:12:31
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, Californie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01126997
Message ID:
01127791
Vues:
23
That's the part that really has me stumped: there are no error icons. I tried creating a new form with the same controls, and now the data is read only. I can't edit any of the data! I'm almost ready to scrap the whole project and start over from scratch.

>Jim,
>
>What error messages are displayed at the icons? Sounds like it's getting broken rules somewhere and the save is aborted. Keep in mind that rules are checked before the save happens.
>
>---J
>
>
>>Kevin,
>>
>>I set the following properties:
>>
>>On ABusinessObject:
>>this.RetrieveAutoIncrementPK = true;
>>this.DatabaseKey = "Address Book";
>>
>>On the Address businessobject:
>>
>>public Address()
>>		{
>>			this.TableName = "Address";
>>			this.PrimaryKey = "iAddress_id";
>>            this.ForeignParentKeyField = "iNames_id";
>>            this.AutoCancelOnParentCancel = true;
>>            this.AutoDeleteOnParentDeleted = true;
>>            this.AutoSaveOnParentSaved = true;
>>            this.AutoNewOnParentAdded = true;
>>
>>
>>And on the form:
>>
>>
>>       public AddressForm()
>>        {
>>            oNames = (Names)this.RegisterPrimaryBizObj(new Names());
>>            oAddress = (Address)this.RegisterBizObj(new Address());
>>            this.oNames.RegisterChildBizObj(this.oAddress);
>>
>>
>>I've spent a lot of time tracing the save (best way to learn) and this is the message that's returned:
>>
>>Displays the Error Provider broken rule dialog
>>
>>
>>		/// </summary>
>>		protected virtual void DisplayErrorProviderBrokenRuleDialog()
>>		{
>>			mmAppDesktop.MessageBox.Show("Unable to save the current data. See the error icons for details.",
>>				"Data Entry Error",
>>				MessageBoxButtons.OK,
>>				MessageBoxIcon.Information,
>>				this.CurrentLanguage);
>>		}
>>
>>
>>The database is simple. The key fields are identity columns, and the address table has a foreign key from Names- iNames_id. This should work without problems, but I know I'm missing something. I just don't know what.
>>
>>Jim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform