jasonhinkle / phreeze

Phreeze Framework for PHP
http://phreeze.com/
GNU Lesser General Public License v2.1
377 stars 207 forks source link

Show on select many-to-one #285

Open SrDebiasi opened 4 years ago

SrDebiasi commented 4 years ago

Hello, I have a simple project here with this structure:

Hours

Room

When I Open the Schedule form, I have select with Room and I need to upgrade the "Hours" field, to show the Hours of that room.

I check in the model.js and found the 'api/hours' maybe I can change for 'api/hours?room_id=x' but, how I send the parameter?

Probably here? Before the fetch?

var hoursIdValues = new model.HoursCollection(); //hoursIdValues.salaid = page.schedule.get('roomId'); ??? hoursIdValues .fetch({ . .

Can anyone help?