Problem with listview.requery for customerNotes and childDialogForm


Author
Message
Keith Gordijn
Keith Gordijn
StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)
Group: Forum Members
Posts: 35, Visits: 2.6K
Hi All,



I am taking little baby steps in learning StrataFrame and .NET and have been recreating some samples to learn, specifically a Customer maintenance form that displays customer notes and allows you to Add/Edit/Delete these notes.



Adding a note is via a child form dialog and all appears to be ok, I have the child form working to add the note, but when I save the note I get and error in the cmdAdd_Click method when trying to lstNotes.Requery(). I have attached the UIException that occurs and it states that it could not fill the Business Object type 'ExerciseManager.CustomerNoteBO'. CustomerNoteBO is the business Object I created but on my CustomerMaintenance form its instance is called customerNoteBO1.



I have been through the help and samples and everything, properties etc., seem to be correct but I am obviously missing something. I have also attached a snap of the Business Object Translations but if I have not given enough or the right information I am eager to be redirected and provide any other info required.



Cheers, Keith
Keith Gordijn
Keith Gordijn
StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)
Group: Forum Members
Posts: 35, Visits: 2.6K
I found where I went wrong. There were some properties of the CustomerMaintenance.lstNotes listview that I missed.



Now just to get the Edit/Delete buttons enabling and disabling properly.



Cheers, Keith
Edhy Rijo
E
StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Keith Gordijn (07/25/2008)
Now just to get the Edit/Delete buttons enabling and disabling properly.

Hi Keith,

It is good to go trough the samples to learn, but about the ListView, you should know that there has been many improvements which automate basically all the manual process done in the samples.

Please review all the release notes for the 1.6.6 beta which explain all the new features, specially the one done with the ListView, in the Posted Release forum.

Edhy Rijo

StrataFrame Team
S
StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
You just barely beat me to that Edhy Smile  There certainly have been many improvements to the ListView for 1.6.6.  Most likely what was messing up Keith was the new functionality was only partially configured. 

Good catch Keith.  I'm glad you got it figured out. Smile

Edhy Rijo
E
StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)StrataFrame VIP (4.7K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Ben Chase (07/25/2008)
You just barely beat me to that Edhy Smile 

Hi Ben,

Well, I just love all the enhancements done to the ListView Hehe

Edhy Rijo

Keith Gordijn
Keith Gordijn
StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)StrataFrame Novice (69 reputation)
Group: Forum Members
Posts: 35, Visits: 2.6K
Thanks for the replies Edhy and Ben. I hadn't gone through the release notes but will make a point of it from now on.
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