You are viewing limited content. For full access, please sign in.

Question

Question

Question with Lookup From Multiple Tables

asked on January 22, 2014

I have a form that is using information from multiple database tables to populate values. The form starts by having a teacher select a School from a dropdown list. The School ID is retrieved relevant to what school is selected. The teacher then selects themselves from a Teacher list that is dependent on the School ID. The Teacher ID is retrieved relevant to what teacher is selected along with sections relevant to that teacher.

 

The part I am now trying to figure out is based on the teacher and the section selected, I need to populate a student field. The Sections table lists a Student ID for each section associated with a student. There is then a Student table that links the Student ID with a Student Name. I can get the Student ID to populate a field and based on the selection populate a field with the Student Name. I need to do just the opposite though, I need the Teacher to pick a Student Name and fill another field with the Student ID. Any thoughts?

0 0

Answer

APPROVED ANSWER SELECTED ANSWER
replied on January 22, 2014 Show version history

If you're using a SQL data source, this might be a good use-case for using a SQL stored procedure lookup rule. If you can create a stored procedure that returns the results you want, it might be the easiest way to go.

 

Forms 9.1 doesn't support stored procedure lookup rules for Oracle data sources.

0 0

Replies

replied on January 22, 2014

The data is in an Oracle database. Does 9.1 support Oracle stored procedures?

0 0
replied on January 22, 2014 Show version history

No, only SQL stored procedures are supported in Forms 9.1.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.