Posts by Camilo Silva • 173 points
14 posts
-
2
votes1
answer223
viewsA: Change states between parent and child components with modal
Try to replace that stretch <ModalFullScreen title="Permissões do grupo" onCloseModal={setOpenFullScreenModal()} open={openFullScreenModal} /> for <ModalFullScreen title="Permissões do…
reactanswered Camilo Silva 173 -
0
votes2
answers7225
viewsA: Postgre query error: ERROR: syntax error at or near "WHERE"
The commands Month and Year are Mysql operators Postgres has a command called EXTRACT(oque FROM quem) So I think your code should look like this: @Query(value = "SELECT b.nome FROM escala a INNER…
-
1
votes3
answers1235
viewsA: How to get the element id
An alternative way could be: <div class="item-total elemento" id = ${id} onClick="funcao(this)"> Where soon after, in your Javascript file, your role should be written function…
-
-1
votes3
answers1569
viewsA: Form completion with return of a json
First check the line script.src = 'https://viacep.com.br/ws/' + cep + '/json/?callback=meu_callback'; is building the URL correctly. After, I think it’s worth using the Angular properties to link…
-
1
votes2
answers460
viewsA: Hide Div Jquery
You can use the method each jQuery to iterate with all occurrences of the text class for example: $(document).ready(function() { $(".acionador").click(function() { $(".texto").each(function() {…
-
0
votes1
answer47
viewsA: Join two Mariadb SQL queries
You can use the UNION ALL: SELECT Prazo_Producao as Data, COUNT( `Numero OS` ) AS Produzir, Tipo_Album FROM tab_Ord_Ser WHERE Prazo_Producao >= "2018-03-01" GROUP BY Prazo_Producao, Tipo_Album…
-
-1
votes3
answers134
viewsA: View products from multiple categories
Already tried to sort your query by category id? $var = ' SELECT * FROM categorias INNER JOIN produtos ON categorias.id = produtos.fk_idCategoria ORDER BY produtos.fk_idCategoria '; So probably your…
-
4
votes3
answers957
viewsA: How to set default value in a form through javascript?
You can call a tag script in your html; <script> (function(){ document.getElementById('idDoCampo').value = 'Valor Padrão'; })(); </script> this will work for tags input of the kind text.…
javascriptanswered Camilo Silva 173 -
1
votes2
answers402
viewsA: SUBSTRING_INDEX in mysql
Try to use it like this: SELECT SUBSTRING_INDEX(arrachar, ',', 1) AS `data`, SUBSTRING_INDEX(SUBSTRING_INDEX(arrachar, ',', 2), '.', -1) AS `Pequeno Almoço`,…
mysqlanswered Camilo Silva 173 -
1
votes1
answer170
viewsA: Angularjs/PHP/Javascript - I can’t update the ng-model value
From what I understand, you’re using the ng-repeat to generate your grid right? If this is really it, be sure to not only update your database you also update your array data controller. If the line…
-
0
votes3
answers785
viewsA: Return Focus to the window that opened the popup
An alternative would be for you to perform all the necessary actions and then perform a Blur, one phocus in the field status and finally close the popup. $(".botao").click(function () { //...…
-
0
votes4
answers302
viewsA: getElementById not working
Try using the command: info1 = document.getElementById('textTicker').value; Quote-free.
javascriptanswered Camilo Silva 173 -
0
votes5
answers2539
viewsA: Regex to check if string does not end with certain characters
A differentiated approach will be precisely to seek the negative result: ... String pattern = "/(JJ|M3)/"; Pattern regexp = Pattern.compile(pattern); Matcher m = regexp.matcher(linhaLidaDoArquivo);…
-
-1
votes3
answers841
viewsA: Merge two database array and delete repeated values
I believe that the array_unique can help you after the application of the explode method: $CorFinal = explode(",",$CorNormal); $arrayFinal = array_unique($CorFinal);…