Show on select many-to-one
SrDebiasi opened this issue · 0 comments
SrDebiasi commented
Hello, I have a simple project here with this structure:
Hours
- Id
- Hour
- Room_Id
Room
- Id
- Name
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?