Main form, user controls, business objects and databinding direction


Author
Message
fansanitis
fansanitis
StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)StrataFrame Novice (53 reputation)
Group: Forum Members
Posts: 45, Visits: 103
I have an evaluation application that has basically 4 tables.  The Evaluaions table containing the demographics, a Questions table containing the question nbr and text, an Answers table containing the possible answers for each question (e.g. Always, sometimes, Never) and a Responses table with row for each question's response.  There are multiple Questions for each Evaluations. Multiple Answers for each Question and a single Response for each Question.  Since the display of the Questions/Answers all have the same layout I created a user control which contains labels controls for the question nbr and text and a radiobuttongroup for the responses.  I added the Questions and Answers BOs to the user control created a Load method that accepts the question nbr, fills the BOs by question nbr and then updates the Text property of the controls with the data from the BOs.  Everything displays just fine.

Now I need to add logic to bind the selected answers to a Responses BO.  Where should this BO reside?  On the main form?  If so how is it bound to the selected response in the user control?  Is this where the BusinessObjectTranslator comes into play?  I didn't see much about it in the Help file.  Do I need an instance of the Responses BO on both the main form and the user control?

Any direction would be appreciated!! 

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search