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

Duplicated api calls for reference fields #712

Closed
SebLours opened this issue Sep 30, 2015 · 0 comments · Fixed by #732
Closed

Duplicated api calls for reference fields #712

SebLours opened this issue Sep 30, 2015 · 0 comments · Fixed by #732
Assignees
Labels

Comments

@SebLours
Copy link
Contributor

Hi,

I have an address entity with two reference fields

  • user
  • country

references

To populate reference values, the application makes 2 api calls for each reference ...

api_calls

/**
 * Creation view
 */
address.creationView()
    .title("Ajouter une adresse client")
    .url("addresses/")
    .fields([
        nga.field("user", "reference")
            .label("Client")
            .targetEntity(appConfig.entities.user)
            .targetField(nga.field("username"))
            .perPage(10)
            .remoteComplete(true, {
                searchQuery: function(search) {
                    return {query: search};
                }
            }),
        address.editionView().fields()

    ])
;

How can i debug this ?

Thanks
Seb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment