Questions tagged as 'filter'

1
answer

Filter dbgrid with lookup fields

I did a generic search form for my application, but now I realized that I can not filter the dataset using lookup fields, is there an alternative to not using a query? A component that can do this free or commercial? Below is the procedure that...
asked by 01.02.2015 / 03:41
3
answers

Help to filter a JSON with jQuery?

I have this code that filters a JSON object: var filtrar = function (horamin, horamax) { var data = JSON.parse(JSON.stringify(json.aPesquisa)); let result = data.filter(item => { let voos = item.trecho[1].voo.filter(voo => {...
asked by 07.07.2017 / 19:47
2
answers

INSERT INTO with filter in MySQL

I'm trying to create an INSERT INTO in an X table by making a filter in the Y table, but I get a syntax error. I researched what may be wrong, but not find out. INSERT INTO products ( SELECT * FROM products AS P WHERE P.FK_ID_QUOTE = 1...
asked by 27.11.2018 / 14:03
2
answers

How to filter an array using the For structure?

How can I filter an array using the for structure? The code is this: const numeros = [1,2,3,4,5,55,190,355,747,1000,125];    I need to filter the numbers under 10. I used it this way, but I was asked to create one using the...
asked by 23.01.2018 / 01:59
3
answers

jQuery - How to filter a JSON file from an external link?

I have a headache that is as follows: I need to do a filter by names of the following JSON (summarized) ... [ { "index": 0, "age": 25, "eyeColor": "green", "name": "Peck Murphy", "gender": "male", "company"...
asked by 28.02.2017 / 14:01
1
answer

Problem with Uppercase and Lowercase in Angularjs

Personal follow the example of a script on stackoverflow.com as follows the link below: [link] I happen to be having problems with words that are capitalized eg a word that is "Protocol" and I type "protocol", the filter does not find it....
asked by 31.01.2015 / 23:35
1
answer

How to perform .filter between arrays / objects AngularJS Javascript

I have the following two objects in AngularJS: $scope.listaDoCarrinho = [0: { id: "55", setor: "alimento", foto: "Produtos/Produto (55).jpg", descr: "Espaguete Renata", de: 15, … }...
asked by 11.10.2017 / 21:44
1
answer

How to filter a json object with jQuery?

I have the following json object: var json = { "tpAmbiente":null, "hotelPesquisa":[ { "dtEntrada":"20170510", "dtSaida":"20170511", "hotel":{ "id":94, "nome":"Itamarati" }...
asked by 08.05.2017 / 18:55
2
answers

How to return to the previous page by the HandleErrorAttribute?

I'm trying to implement a global filter for error handling and started testing as follows: public class MyHandleErrorAttribute : HandleErrorAttribute { public override void OnException(ExceptionContext filterContext) { var exce...
asked by 24.09.2015 / 15:57
1
answer

How to filter, with angular, JSON objects by an id belonging to another object inside the array

My question is how can I filter objects from an array by comparing the id that is inside a "sub-object". Type: animais [ { id: 34, nome: baleia, categoria: { id: 2, nome: mamifero }, {...
asked by 13.11.2014 / 18:37