BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MVP, Lookup lists and a Object Edit Form

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OO design
View previous topic :: View next topic  
Author Message
Graeme Geldenhuys
Guest





PostPosted: Tue Jan 02, 2007 9:12 am    Post subject: MVP, Lookup lists and a Object Edit Form Reply with quote



Hi,

How does MVP handle lookup lists is a Object Maintenance (Edit) form.
For example. I have a Student object which has a Level property
(reference). In the Student Edit form you can change the student's level
using a ComboBox which is a observer (or whatever MVP uses) of a
application Levels lookup list.

There are many more such examples. Like an Employee and a Language or
Country combo box, etc...

Note though, that the combobox contains a lookup list that gets updated
over time, not a static enum type (like Gender [male, female, unknown]).

1) How do you handle something like this with MVP?

2) How do you hookup the GUI and the Object you are editing and the
Lookup list? When you edit the Student, the students correct Level
needs to be selected in the lookup lists ComboBox when the edit form opens.

3) What happens if you are busy editing a Student, and somewhere else in
the program the Levels lookup list gets updated (refreshed from the DB,
or a new lookup item added etc)?


Regards,
- Graeme -
Back to top
Joanna Carter [TeamB]
Guest





PostPosted: Mon Jan 08, 2007 6:11 pm    Post subject: Re: MVP, Lookup lists and a Object Edit Form Reply with quote



"Graeme Geldenhuys" <graemeg (AT) spamfilter (DOT) co.za> a écrit dans le message de
news: 459a2097 (AT) newsgroups (DOT) borland.com...

| How does MVP handle lookup lists is a Object Maintenance (Edit) form.
| For example. I have a Student object which has a Level property
| (reference). In the Student Edit form you can change the student's level
| using a ComboBox which is a observer (or whatever MVP uses) of a
| application Levels lookup list.

| 1) How do you handle something like this with MVP?

You need an MVP "component" that handles object properties, i.e. proprties
that are of an object type.

| 2) How do you hookup the GUI and the Object you are editing and the
| Lookup list? When you edit the Student, the students correct Level
| needs to be selected in the lookup lists ComboBox when the edit form
opens.

The Interactor knows how to either populate a combobox or popup a selection
dialog and then assign the chosen item to the property that it is managing.

| 3) What happens if you are busy editing a Student, and somewhere else in
| the program the Levels lookup list gets updated (refreshed from the DB,
| or a new lookup item added etc)?

Then you get the snapshot of data available when you dropped the combo list
or opened the dialog. Dynamic updating of a lookup list could prove visually
challenging for a user :-)

Joanna

--
Joanna Carter [TeamB]
Consultant Software Engineer
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OO design All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.