StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
Using Parent-Child info in a Grid
Using Parent-Child info in a Grid
Post Reply
Like
0
Using Parent-Child info in a Grid
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Terry Bottorff
Terry Bottorff
posted 16 Years Ago
ANSWER
HOT
Topic Details
Share Topic
Group: Forum Members
Posts: 448,
Visits: 12K
If I have a Course table and a Student table that are related by Student PK such as (Simplified):
Course1
table which has fields
PK
Course#
StudentPK
TestScore
QuizScore
DailyScore
and
Student
table has fields
PK
Name
I have a stored procedure that gets the following information using a parameter to get students in Algebra1:
course#,Name and TestScore
I want to put the the above info in a devexpress grid. I can get this far from the help I already got from the forum (I use a dummy table with the correct field names) put the info into a BO and then I use a BBS to attach it to the devgrid. But how does the test scores get back to the course table?
I have simplified the layout of the tables but if we can make this work then I can apply it too the project. TIA
Reply
Like
0
Replies
Terry Bottorff
Terry Bottorff
posted 16 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 448,
Visits: 12K
OK I will work on this. Thanks.
I did not design the data structure, I just have to use what is there.
Period is like 8-9am is period 1 and 10-11am is period 3 which might be Algebra classes for a particular teacher.
After some more work on this I will probably come back to this when I get some actual code and forms.....
Reply
Like
0
Trent Taylor
Trent Taylor
posted 16 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
Taking on existing data structures can be frustrating, and I have just scanned through this post and have seen some good advice from Peter. One thing that could change a some of these answers might be if you are free to add SPROCs or updatable views. If you cannot touch the database at all, then obviously you are 100% stuck with these structures, sprocs, and views. But if you can add some to meet your specific needs, then it would be easier to work with.
At any rate, there was a lot of good advice given here so I will just let you go with what was given for now, just thought I would throw that out there.
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Using Parent-Child info in a Grid
Terry Bottorff
-
16 Years Ago
Hi Terry,
We do this all the time. The approach we take is:...
Peter Jones
-
16 Years Ago
Oh wow. Your SP does not bring the data together it just makes sure...
Terry Bottorff
-
16 Years Ago
Hi Terry,
In that case you will three tables:
...
Peter Jones
-
16 Years Ago
Hi Terry,
Oops, a bit early in the morning. I've just...
Peter Jones
-
16 Years Ago
Ok I thought about that but the teachers are so accustomed to putting...
Terry Bottorff
-
16 Years Ago
Hi Terry,
You can create a BO from a view but not a stored...
Peter Jones
-
16 Years Ago
oh views are not updateable. ug........ :angry: so much for my...
Terry Bottorff
-
16 Years Ago
Hi Terry,
Don't really understand the question but what I...
Peter Jones
-
16 Years Ago
The data structure is in place from a already purchased piece of...
Terry Bottorff
-
16 Years Ago
Here is the layout:
[b]Course[/b]
coursepk
coursename...
Terry Bottorff
-
16 Years Ago
Hi Terry,
A couple of questions:
1) Its not...
Peter Jones
-
16 Years Ago
OK I will work on this. Thanks.
I did not design the data...
Terry Bottorff
-
16 Years Ago
Taking on existing data structures can be frustrating, and I have just...
Trent L. Taylor
-
16 Years Ago
Hi Terry,
"Period is like 8-9am is period 1 and 10-11am is...
Peter Jones
-
16 Years Ago
I just introduced teacher to explain what a period was. I'm starting...
Terry Bottorff
-
16 Years Ago
I think I just had the AH HA Moment. The Lookup Edit is not used to...
Terry Bottorff
-
16 Years Ago
Hi Terry,
I only mentioned lookup edits so you can display...
Peter Jones
-
16 Years Ago
Hi Terry,
That's it. Just a way of presenting useful info...
Peter Jones
-
16 Years Ago
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search