I have a BO and need to attach a collection to it whose only member is a key value for another data system we use. The model I need to develop needs to allow users to add, modify and delete this single value like a normal collection. The remaining data needs to be read from the other system as a read only collection. This should produce a nice master/detail view in the grid -- all at runtime.
Let's see if I have this right: I create the Item and Items collection BOs normally. In the Item BO I include the ReadOnlyCollectionBase object as a collection field. The ROC object will only need to retrieve the info using a sproc. I think I can get what I need for 3 separate collections all modeled the same way an loaded into three grids. I'm also thinking of passing in a delimeter for grouping purposes so I could do it with just one grid. That's still in the "pipe".
So, if the user enters a new KeyValue, i.e. Purchase order number, they will expect the grid to update/populate immediately. How are most people handling the creation and display of such creatures? Threading in the GUI or as a lazy load? I see them banging the keys while the fetch is ocurring, so something will certainly need to handle the GUI portion outside of the BO. Personally, this seems a good candidate for a datareader (the Microsoft kind, not a CSLA object), but I tend to avoid those completely.
Thanks in advance,
_E
Copyright (c) Marimer LLC