Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to bind 2 instances of the same Business Object?
Message
From
09/12/2009 11:09:28
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
08/12/2009 10:29:00
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01438059
Message ID:
01438222
Views:
47
>I'm working with the MM desktop maintenance template. By default the framework wants to validate everything in both the List and Properties tabs. This makes sense if the grid view in the List tab were editable. However, the spec for the project my company is working on is that the List view is read-only. Therefore, when I click the mmSaveButton in the Properties view, I want ONLY the fields in the the Properties view to be validated and updated.
>
>From what I understand, the only way to do this is to have two binding sources. But I'm not sure how to accomplish this. When I go to the BindingSource property of any of my mmTextBox controls in the Properties view, the ellipses forces you to pick the name of an existing business object. This is a problem obviously because the MM framework assumes that if the name of the binding source on the list tab and the properties tab are the same, that a single source should be used to bind the entire form.
>
>How do I get around this? Do I have to make a duplicate business object? Seems like that could be a maintenance nightmare. Does anyone have any other suggestions?
>
>Thanks.

What is happening to cause the validation? What results are you getting that you don't want to happen? In other words, if you have a list of records and then you have a property page (much like the jump start) and you edit a record on the property page, what is happening that you don't want to happen?

The binding source options are based upon the business object instances that are registered with the page. This is an instance of a business object and no need to create multiple business object classes. You are right, that would be a maintenance nightmare. A bit more info and I will try to help.
Tim
Timothy Bryan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform