ChildFormDialog errors


Author
Message
Ger Cannoll
Ger Cannoll
Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)Advanced StrataFrame User (630 reputation)
Group: StrataFrame Users
Posts: 430, Visits: 507
I have set up a few forms using the ChildFormDialog and the Startaframe Sample Database (I have used LesPinters sample tutorial)

I have it mostly working with just a few issues. The Delete is working fine but have an issue with the edit and save.

When I go to the Edit Form, I can see the data for the record but the textboxes are disbled. My code is:

private void btnEdit_Click(object sender, EventArgs e)
{
customerNotesBO1.SeekToPrimaryKey((Int32)listView1.SelectedItems[0].Tag);
if (childFormDialog1.ShowDialog() == DialogResult.OK) { listView1.Requery(); }
}

When I go to Add, I can enter details into the text boxex but when I save, I get an Insert Statement conflict with foreign key constraint.  See attachement


Attachments
ChildFormError.png (87 views, 100.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search