Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show on select many-to-one #285

Open
SrDebiasi opened this issue Jan 4, 2020 · 0 comments
Open

Show on select many-to-one #285

SrDebiasi opened this issue Jan 4, 2020 · 0 comments

Comments

@SrDebiasi
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant