StrataFrame Forum

Problem with listview.requery for customerNotes and childDialogForm

http://forum.strataframe.net/Topic18060.aspx

By Keith Gordijn - 7/24/2008

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
By Keith Gordijn - 7/24/2008

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
By Edhy Rijo - 7/25/2008

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.

By StrataFrame Team - 7/25/2008

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

By Edhy Rijo - 7/25/2008

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

By Keith Gordijn - 7/25/2008

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.