I've created a form with a ListView and associated a child form used the business object translations to map the parent BO to the child BO. So far I've only got the edit bit working but you can go in and change the details and it all works ok.
I have a couple of issues which I'm stuggling with a bit:
I've added an Ok and Cancel button onto the child form but when I click the cancel it still asks me to save the changes. Looking at this further it seems the child form bo is dirty before we make any changes on the form. What would be causing this? Am I going about this in the correct way?
Also when I go back to my Parent form one of the other BO's seems to have been cleared out? Any hints on what this could be?
Thanks
Jon
Please take a look at the StrataFlix sample application which make heavy use of the ListView and then you can compare with your code.
Basically it will depend on the code you have in the Cancel/Ok buttons and where are you actually saving/undo the data, it could be at the childform or parent form level. Also at the form the is a property named AutoShowSaveChanges which controls if the message will be shown when saving, but in your case I am sure you don't want to auto save the record, so if that is the case post your code for the OK/Cancel button and also check the StrataFlix code it will reveal many things.