Most voted "filter" questions
242 questions
Sort by count of
-
12
votes5
answers35616
viewsSELECT condition WHERE with multiple values in the same column
I have two tables in my bank and perform JOIN with them. A table is a list of people and the other characteristic list of that person. By logic there is only one person and each person can have…
-
11
votes3
answers1181
viewsHow to create a filter from the words/phrases of interest to filter a particular wave from a "List"?
In my example I have two classes that are SetorInteresse and Vaga, below follows the structure of the two: Setorinteresse class: public class SetorInteresse { private List<String> setores;…
-
8
votes1
answer186
viewsHow to filter multiple items within an array
I have the following JSON: { "Empresas": [{ "Name": "DIST", "Portais": [{ "title": "PRD", "tags": ["PRD", "DIST1"] },{ "title": "HIST", "tags": ["PCP", "DIST2", "DIST3"] }] }, {"Name": "LUZ",…
-
6
votes2
answers248
viewsHow can I make the Blur effect on IE?
I’m using this css code to do the effect blur in a div: .blur { -webkit-filter: blur(25px); -moz-filter: blur(25px); -o-filter: blur(25px); -ms-filter: blur(25px); filter: blur(25px); } <div…
-
5
votes1
answer761
viewsHow to implement an update LOG with ASP.NET MVC?
I would like ideas on how to implement a generic update LOG in DB (Entity Framework 6+) that allows me to discover information such as: System X user at date Y changed name and date of birth (from,…
-
5
votes2
answers133
viewsHow to filter a Hashmap by returning another Hashmap using Java 8 lambda?
The following code traverses a Set and filters only the objects that the isActive() is true. public Set<InvoiceLineDocument> getActiveLines() { Set<InvoiceLineDocument> activeLines = new…
-
5
votes1
answer137
viewsWhy does FILTER_SANITIZE_EMAIL not remove some special characters?
I know how the FILTER_SANITIZE_EMAIL works, but what I can’t understand is why it doesn’t remove the following characters: ! # $% & '* + - =? ^ _ `{|} ~ @. [] . I know that in the documentation…
-
4
votes2
answers682
viewsFilter String Array records by space-separated words in Java
How do I filter the records of a Array using the search terms separated by space ? Example: I have a Array String with the following records. bottle opener box with blue padlock Brass padlock 30mm…
-
4
votes1
answer570
viewsFiltering data from acceleration and magnetic sensors on Android
I have a player open source for Android some time ago. Months ago I created an audio viewer (the type of ones with bars and colors) where the user could interact, simulating an augmented reality…
-
4
votes1
answer272
viewsHow to create default filters with Entity framework 6?
I have an Excluded field in several classes and when I will make my select I always have to impose this condition in the query, is there any way to make the filter implicitly? recalling that it is…
-
4
votes1
answer533
views"java.lang.String cannot be cast to ..." using access control in Servlet
I have a system made for my company and together I have the new website. I can log into the system normally with the accounts registered in the database, but when I enter a filter into Servlet, I…
-
4
votes1
answer621
viewsHow to have two or more dynamic filters in the same product group with Javascript?
The code works on the first filter but when I choose the second filter it performs a new search and ignores the first one. How do I get the filters to work simultaneously. Follows the code…
-
4
votes1
answer2524
viewsHow to remove an object from an object array within another object array, in javascript?
Hello, I need to return the objs array by eliminating the objects that have the req key === "test" inside the c object array. Thanks for your help! const objs = [ { a: "a", b: 1, c: [ { send:…
-
4
votes1
answer63
viewsFunction to find complete word, but independent of position in string
I’m having trouble using the str_detect to capture part of a text. I need the str_detect take only the word "garlic", but regardless of her position in the string. Ex: "Brazilian garlic", "Brazilian…
-
3
votes1
answer701
viewsHow to not filter only a folder in JAVA - Filter
I’m using a class inherited from Filter in Java to do login control. I did the mapping on Web.xml as follows: <filter> <filter-name>ValidacaoLoginFilter</filter-name>…
-
3
votes1
answer1249
viewsHow to take objects from an array, with filter passing as parameter an object with multiple ID’s
Associating the object "categories" in "products"; With the ID I need to associate to such product, so for example "products 1" should receive the "categories" with the ID [1, 3, 4]. creating…
-
3
votes1
answer71
viewsError restricting dates in SQL Server
I get 3 databases that are mounted in different locations, these bases come to me in text file (.txt) and I import to SQL Server. I’m making a query in which I want to restrict the records only for…
-
3
votes2
answers472
views@Autowired bean in Filter
I’m trying to inject a bean in a filter but without success, the same always remains null causing error. Below follows the code of bean: @Named @Scope("session") public class LoginBean { Of filter:…
-
3
votes1
answer3595
viewsUsing Jquery Datatables with ASP.NET MVC 5
I have doubts how to use Datatables with MVC 5 and with Submit button returning a Json as per the site: Datatables $(document).ready(function() { $('#example').dataTable( { "processing": true,…
-
3
votes0
answers35
viewsZoom in as filter in Tableau
When I saw some tutorials, I noticed that there is the possibility of using clicks action to change the information that is shown on Dashboard, according to the selection made. The generic…
-
3
votes1
answer578
viewsFilter no ng-repeat filter the parameter I passed in get
Hello, I am passing a parameter through my route and need to rescue records with this parameter through an ng-repeat. $routeProvider.when("/detalhe/:placa", { templateUrl : 'view/detalhe.html',…
-
3
votes1
answer1550
viewsList date filter (Django)
Imagine I have a list and a form to filter this list by date. Does anyone have any example of how to make this filter in the form? I got this here in the shell, but I don’t know how to implement in…
-
3
votes4
answers3071
viewsIf condition in Where SQL Server
I have a Stored Procedure where I need to do a check for a date filter, in case the start date is null I have to do on WHERE take all records less than the final date, otherwise I make a BETWEEN…
-
3
votes1
answer778
viewsImplement Filter Access Control - JSP
You can help me implement a java filter access control? This was the implementation I tried to do so far, but I couldn’t make it work. public void doFilter(ServletRequest request, ServletResponse…
-
3
votes1
answer778
viewsImplement Filter Access Control - JSP
You can help me implement a java filter access control? This was the implementation I tried to do so far, but I couldn’t make it work. public void doFilter(ServletRequest request, ServletResponse…
-
3
votes1
answer392
viewsFilter with chekbox mysql php
Could you help me as I would concatenate strings in this search, passing which table is right if it would be i or c? select i.nome from imovel i join cidade c where c.nome in ("Campo…
-
3
votes0
answers47
viewsPRESTASHOP - Create dropdown Cascading
Sirs, I’m trying and hitting my head to create a Cascading filter for Prestashop, based on its categories, and the plugins I found are paid for. What would be the best way to do? If only Prestashop…
-
3
votes0
answers47
viewsPRESTASHOP - Create dropdown Cascading
Sirs, I’m trying and hitting my head to create a Cascading filter for Prestashop, based on its categories, and the plugins I found are paid for. What would be the best way to do? If only Prestashop…
-
3
votes2
answers191
viewsDisplaying filter from another view
I have a View where customer data is shown, and at the click of a button, the user is redirected to a page that shows the moves of several customers, right on this page contains some filters. So…
-
3
votes1
answer148
viewsGet a result that appears in 1st position if you have a value specified in SQL
I need to create a query that follows some rules and they are: gsm repeat sending be different status who is with ANOMALY and appears as the first result (over the others) I’ll give you an example…
-
3
votes1
answer156
viewsFilter elements if child element of elements has a certain class
The title of the question is already very self-explanatory. I’m trying to filter elements (div) depending on whether their child elements have determined(s) class(s). I found the simple code below…
-
2
votes2
answers117
viewsHighlight Data Filter
I’m having a problem highlighting data from a filter. In other words, I filter and show many dates. <?php include("conectar.php"); $quantidade = 1; $pagina = (isset($_GET ['pagina'])) ?…
-
2
votes1
answer963
viewsDynamic ng-repeat filter
I need to insert a dynamic filter, which comes from a select, into my ng-repeat select ng-model="campoBusca" input type="text" ng-model="busca" ng-repeat="funcionario in funcionarios | filter: {…
-
2
votes1
answer605
viewsFilter dbgrid with lookup fields
I made a generic search form for my application, but now I realized that I can’t filter the dataset using lookup fields, is there an alternative to not using a query? A component that can do this…
-
2
votes0
answers121
viewsFilter retweets using the twitter API
I’m making a search tool using the twitter API to receive tweets. However, I am having a problem related to retweets, every search I do, more than half of the results are retweets. Is there a way…
-
2
votes1
answer903
viewsHow to validate the IP of a list Emails to know if they are real or fake and can receive messages?
I know there are services that do this, but I would like to know how they do this kind of test, to find out if the email is really valid, not only through a PHP filter, for example: function…
-
2
votes2
answers361
viewsApply filter to only part of image
I have an image in the background of my site and would like to apply the filter brightness throughout the image with the exception of a part as shown in the image: Any tips on how to do this? I’ve…
-
2
votes2
answers356
viewsTake any variable from an array that has a certain id in Angularjs
With the following code, I am saying that in the second array contained in the object $scope.listademercadoria there is the property "quantity", and I am declaring it as value 0.…
-
2
votes0
answers68
viewsFilter database by checkbox
This displays all the data... public function getProdutosHome($limit = false){ if($limit == false){ $query = "SELECT * FROM `fretes` ORDER BY id_frete DESC"; }else{ $query = "SELECT * FROM `fretes`…
-
2
votes1
answer425
viewsAjax filter in wordpress
Hello, I wonder if anyone has done any functionality like this site, http://www.todeschinisa.com.br/pt/onde-encontrar filtering the posts using a form and ajax so you don’t need to give the page the…
ajax wordpress twitter-bootstrap filter custom-post-typesasked 6 years, 6 months ago Patrick de Freitas 59 -
2
votes2
answers485
viewsINSERT INTO with Mysql filter
I am trying to create an INSERT INTO in an X table by making a filter in table Y, but I get a syntax error. I’ve researched what could be wrong, but not found. INSERT INTO products ( SELECT * FROM…
-
2
votes2
answers272
viewsFilter information for the current day
I have the following variable in my View: Auth::user() ->LogsSearch() ->where('base', $linha->sigla) ->where('created_at', date('Y-m-d')) ->count() and I want to filter the results of…
-
2
votes1
answer3906
viewsAngularjs Filter with Argument Array
I would like to check a way to add filters to a table of records (ng-repeat) through an array and not just text. https://plnkr.co/edit/FRaceRkO4uBSyfZYay6e?p=info Note: I am using $filter to filter…
-
2
votes1
answer75
viewsSelect filter stopped working
Hello, Guys need a help, I have a select filter that until yesterday was working, someone moved and stopped working, as I do not understand much of jquery, I decided to ask here. Note: The jquery…
-
2
votes1
answer1515
viewsPython - filtering data in text files
I’m trying to write a code to read a . txt file and extract numeric coordinates, but this file contains lines with text as well. I’m unable to filter. see a part of the file. So far I’ve managed to…
-
2
votes0
answers88
viewsProblem with jQuery filter?
I have this filter in jQuery: var aeroportosida = []; Filtro.prototype.filtroAereoNomeIda = function(value){ var dataa = JSON.parse(JSON.stringify(this.data)); aeroportosida = []; if(value.length ==…
-
2
votes0
answers88
viewsProblem with jQuery filter?
I have this filter in jQuery: var aeroportosida = []; Filtro.prototype.filtroAereoNomeIda = function(value){ var dataa = JSON.parse(JSON.stringify(this.data)); aeroportosida = []; if(value.length ==…
-
2
votes1
answer154
viewsSort queryset Django by priority
I am creating a search system on my platform. I do a search for the title of the content, description and tags within it. Follow the code: questions = Question.objects.filter(reduce(lambda x, y: x |…
-
2
votes2
answers504
viewsQuery with android sqlite java filter
public ArrayList<Contato> filtrar(String filtro) { ArrayList<Contato> contatoArray = new ArrayList<>(); //Consulta que traz todos dados de todas colunas Cursor cursor =…
-
2
votes2
answers287
viewsFilter a list of spans with jquery
I needed it a little urgent, can you help? I need to filter a list of spans : <div class="list-group pre-scrollable lista"> <?php for($i = 0; $i < count($ambientes); $i++) { ?>…