Open SrDebiasi opened 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?
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?