Change select options based on another select

1
+3
-1

I have 3 table which is as followed:

School Table has following:

  1. schoolName (String type), Mutliple:NO
  2. classes (Class type), Mutliple:YES

Class Table has following:

  1. className(String type), Mutliple:NO
  2. students (Student type), Mutliple:YES

Student table has following:

  1. id (Long type), Mutliple:NO
  2. name (String type), Mutliple:NO

On my form, I have a container, bind with school collection, which has multiple lines of class.
2016_02_16_10_32_56_UI_Designer.png

Each line of class has 2 select fields on my form, one listing all the classnames. The other will list the student names based on the class selected on first select field. And each line is identified by $item, because the binding of collection.

How do I code the field for student name listing?

I can bind the first select (listing class name) using $data.classList. But how do I get the selected value from the first select ?

2016_02_16_10_25_48_UI_Designer.png

Comments

Submitted by citsoon on Tue, 02/16/2016 - 03:39

Appreciate if anyone can help! :D

Submitted by romualdo.s.rs on Wed, 06/07/2017 - 16:12

Hi, did you have any breakthrough or did you find any solution to this, I'm having the same problem. Any idea will be welcome

Submitted by citsoon on Thu, 06/08/2017 - 04:09

HI unfortunately I am unable to find any solution or workaround for this. I am hoping that the developer can assist on this.

1 answer

1
+1
-1

Hi Citsoon.
Did you find the answer to this?

Comments

Submitted by citsoon on Fri, 02/26/2016 - 02:22

Unfortunately no :(

Submitted by romualdo.s.rs on Wed, 06/07/2017 - 16:12

Hi jeanov92, did you have any breakthrough or did you find any solution to this, I'm having the same problem. Any idea will be welcome

Submitted by romualdo.s.rs on Wed, 06/07/2017 - 16:12

Hi jeanov92, did you have any breakthrough or did you find any solution to this, I'm having the same problem. Any idea will be welcome

Submitted by romualdo.s.rs on Wed, 06/07/2017 - 16:12

Hi jeanov92, did you have any breakthrough or did you find any solution to this, I'm having the same problem. Any idea will be welcome

Notifications