Skip to content

Show on select many-to-one #285

@SrDebiasi

Description

@SrDebiasi

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions