Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Weird problem with the filter
Message
 
 
Information générale
Forum:
AngularJS
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01651130
Message ID:
01651156
Vues:
53
UPDATE. Problem is solved.

More details about my current issue can be found in

http://stackoverflow.com/questions/44052555/angularjs-pass-a-fitler-expression-to-directive-with-true-at-the-end


UPDATE. I believe I figured out what the problem is, but haven't yet figured out a solution.

It looks to me even though CategoryId is a numerical column, the filter somehow treats it as character and uses starts with rather than equals. E.g. it looks like I got all items for CategoryID like '8%'

I'm going to google a bit to confirm that behavior and then see if there is a solution for it.

So, I'm close but yet can not figure out how to pass the expression correctly, e.g.

http://stackoverflow.com/questions/20292638/angular-filter-exactly-on-object-key

but I don't know how to pass that expression as filter-criteria. If I try to use it as is, e.g.

filter-criteria="{'categoryId':selectedCategoryId};true"

I'm getting an error.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform