You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using remote complete on choice or choices, with either reference or reference_many, the behavior is such that the returned values has to match a Contains predicate in order to work, otherwise the results do not show up, this is due to the | filter in the directive's template.
the | filter is needed for local filtering of options, but when using a remote call, the remote server is in charge of filtering, so local filtering gets in the way
A sample scenario: when adding a reference to something with a title, the backend might treat incoming request (like ang adm) as prefix terms, returning {1, "Angular Admin" } as the result. Since "Angular Admin").indexOf('ang adm') < 0, the value that was returned would not show up on the dropdown, and would not be selectable.
A proposed solution (in an upcoming PR) removes the filter in case of a remote-complete instance of the field.
The text was updated successfully, but these errors were encountered:
kenegozi
added a commit
to kenegozi/ng-admin
that referenced
this issue
Nov 14, 2015
When using remote complete on choice or choices, with either reference or reference_many, the behavior is such that the returned values has to match a Contains predicate in order to work, otherwise the results do not show up, this is due to the | filter in the directive's template.
the | filter is needed for local filtering of options, but when using a remote call, the remote server is in charge of filtering, so local filtering gets in the way
A sample scenario: when adding a reference to something with a title, the backend might treat incoming request (like
ang adm
) as prefix terms, returning{1, "Angular Admin" }
as the result. Since"Angular Admin").indexOf('ang adm') < 0
, the value that was returned would not show up on the dropdown, and would not be selectable.A proposed solution (in an upcoming PR) removes the filter in case of a remote-complete instance of the field.
The text was updated successfully, but these errors were encountered: