Best way for edit more objects at same time

Best way for edit more objects at same time

Old forum URL: forums.lhotka.net/forums/t/11779.aspx


caste posted on Friday, January 11, 2013

Hi all, I have an  ER object with a list of childs. Childs are display in a  list.

I want edit childs is this way:

1) if I have seleced a single child, it is display in a  details mask for editing the properties.

2) if I selected more than a child I wan't to edit all childs, in the same mask edit (like a property grid that combine same properties for assign objects).

 Which is the better solution? I wan't to see anything changes in list until  modified childs is saved. 

I must use a Read only list and a Editable root at same time?

Any suggestions is appreciated.

Thanks

caste 

RockfordLhotka replied on Monday, January 14, 2013

This is a UI or view or presentation level issue, not a business model issue. In other words, your existing business object model doesn't need to be altered. What you need is a viewmodel that manages the interaction between the one UI control (your textbox) and the set of selected items in the collection. I've done this for a client or two over the years, and it is not a terribly hard problem to solve as long as you recognize the need for a UI-specific viewmodel object that handles this particular type of interaction.

caste replied on Tuesday, January 15, 2013

Hi Rocky, you are right, this is a presentation level issue. I have implemented a VM, that manages the list of business objects.

Thanks for your replay.

caste

 

Copyright (c) Marimer LLC