Posts by Eduardo Krakhecke • 935 points
99 posts
-
-1
votes1
answer186
viewsQ: Include hour with minute in a javascript hour array
I have a method that generates an array of number time and string time, one to show in the table and one to send in the json. The point is I’d like to include 01:00 / 01:30 - 02:00 so on. function…
-
0
votes1
answer109
viewsA: Using ng-style for a boolean variable inside an ng-repeat Angularjs
I was able to solve it this way: <td md-cell ng-style="{ 'color' : (cali.ativa) ? 'blue' : 'red' }">{{cali.ativa? 'Sim' : 'Não'}}</td>
-
0
votes1
answer109
viewsQ: Using ng-style for a boolean variable inside an ng-repeat Angularjs
I have a listing this way : <tr md-row md-select="cali" md-select-id="name" md-auto-select ng-repeat="cali in vm.calibracoes"> <td md-cell>{{cali.idCalibracao}}</td> <td…
-
0
votes2
answers192
viewsQ: Avascript function does not work when used ng-include Angularjs
I’m doing an injection of tamplate via ng-include Angularjs. Inside this template I have a button that calls a modal which is inserted into the template by another injection. Until then everything…
-
1
votes2
answers131
viewsQ: Selected combo component
I have a problem loading the screen with a selected combo item. I’ve tried with jQuery, angular and it didn’t work. I’ve researched other answers around here and it didn’t work any of the…
-
0
votes1
answer55
viewsQ: Loop for from index 1 java array
I have a function that makes a loop for in a String array. I need the loop to start from the index[1] of that array. But I’m not getting it. String arquivo[] =…
-
4
votes1
answer888
viewsQ: Converting String to Arraylist
I am receiving in my java code a variable with the following value String arquivo = "CNPJ;INSCRICAOESTADUAL;COD_IBGE;DT_OPE;VLR_CARTAO_CRED;VLR_CARTAO_DEB 35083840049;0;4312476;13/01/2018;0.00;66.00…
-
3
votes1
answer65
viewsQ: convert 1 to active and 0 inactive within ng-repeat angular
I have a value of flagAtivo that is 1 for active and 0 for inactive within a ng-repeat which I display in a table, but I need this value to be Active if 1 and inactive if 0 <tbody ng-repeat="oper…
-
1
votes2
answers18714
viewsQ: Max length input type number html
I have an input type number <div class="form-group col-md-3"> <label class="lb">Valor total</label> <input type="number" min="0" id="idValorTotalProdutoP"…
-
0
votes1
answer72
viewsQ: Convert value of a select options component to number
I have a component select and would like to convert the value for the format Number 'cause when I go save I need a value 2 and not like this "2" the ideal would be to convert all tag <option>…
-
1
votes1
answer1165
viewsQ: Angular Format-date with date shortened one day
I’m using an angle directive to handle the dates my directive is this : app.directive("formatDate", function() { return { require: 'ngModel', link: function(scope, elem, attr, modelCtrl) {…
-
0
votes1
answer163
viewsQ: Mount check box with values 1 and 0 angular
I have a screen that there is a check box.. let’s see; <div class="form-group col-md-9 pull-right"> <label>Ativo:</label> <label class="checkbox-inline"><input…
-
0
votes1
answer175
viewsQ: unmount objects in an array
I have a method of searching the bank that brings me the following result: Note that inside the Object[4] comes another array that contains People, People.. i would like you to return me just this…
-
0
votes1
answer907
viewsQ: Error with Unexpected JPQL token
I made a select JPQL but I’m having this error: Caused by: org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: where near line 1, column 151 [select pes, pEnd from…
-
2
votes2
answers301
viewsQ: Keyup function in input when loading a modal
I am implementing a function to change the password of the logged in user. When I load the user password into the input component it does not validate the loaded password, which is outside the rule…
-
0
votes1
answer71
viewsQ: disabling Jquery keyup button
I’m making a password validator. I made a method to validate if the password requirements are not met the save button is disabled, if they are answered the enabled button, but it did not work..…
-
0
votes0
answers293
viewsQ: Open the same modal in other Jquery html pages
I have a modal on an html page <div class="modal fade" data-backdrop="static" data-keyboard="false" id="modalPreferenciasUsuarioLogado" role="dialog"> <div class="modal-dialog modal-lg">…
-
0
votes0
answers469
viewsQ: Get a return of a method in another Java class
I have a method in my Spring boot API that receives the data from the user who is logging in, checks if it exists and if the password checks. Once this is done, return returns a JWT token. I need to…
-
0
votes1
answer352
viewsQ: Callback methods annotated in a Listener bean class must Return void and take one argument: javax.persistence.Preupdate
I’m having this mistake on my console... Caused by: javax.persistence.PersistenceException: Callback methods annotated in a listener bean class must return void and take one argument:…
-
1
votes1
answer841
viewsQ: Separate a JSON array into columns and rows
I’m getting a JSON array in the back end this way : { "idDistrito": "23", "nome": "rere", "codigoDne": "154545", "cns": "565665", "entidade": { "idEntidade": "1", "nome": "Entidade 01" },…
-
2
votes1
answer687
viewsQ: Adjust exported html file to pdf
I took an example from internet that is here : JS Fiddle to generate PDF from data that are in the HTML. however, in my case, the data was very misaligned.. let’s see; My HTML: <div…
-
0
votes1
answer181
viewsQ: Store incremented value within a Jquery click function
I have the following function. $('#proximo').click(function() { token = localStorage.getItem("userToken"); page =0; var e = document.getElementById("idSelecionaSize"); var size =…
-
0
votes1
answer143
viewsQ: Problem when paging in jQuery and Angular
I am putting together a pagination and I have the following problem. First my next and previous buttons are not working and shows no error on the console. The second question is that when I select…
-
0
votes1
answer468
viewsQ: Undefined when passing parameter to a JS and Angular function
I have a function that receives as a parameter a value coming from HTML, however, it is coming undefined. I’m using JS and Angular. My HTML <div class="input-group col-lg-3 col-md-3 col-sm-3…
-
0
votes2
answers43
viewsQ: select search in database with repeated records
I’m making a select in my bank, whatever, Postgres, and more records are coming.. For example, id_pessoa comes a 10 more record than should come.. SELECT pac.cns, pac.cns_responsavel,…
-
0
votes1
answer708
viewsQ: Treating null Pointer Exception
I’m getting, in my back end, a json object from the screen this way: { "pessoa": { "nome": "aa", "nomeSocial": "aa", "tipoPessoa": "F", "nomePai":"", "dataNascimento": "15/06/1983", "nomeMae": "a"…
-
2
votes3
answers3811
viewsQ: Unparseable date: "2017-10-30T02:00:00.000Z"
I am setting up a register where I pass a date and, when saving, is showing this error: java.text.ParseException: Unparseable date: "2017-10-30T02:00:00.000Z" at java.text.DateFormat.parse(Unknown…
-
0
votes2
answers2178
viewsA: Persisting a Spring Boot Relationship
The solution was to make a new method in the Patience classes where I receive a generic object with the JSON of the screen objects, I instantiate the objects to be persisted.. in this way :…
-
1
votes2
answers2178
viewsQ: Persisting a Spring Boot Relationship
I have the following Entity classes Patients @Entity @Table(name = "pacientes", schema = "sau") public class Pacientes implements Serializable { private static final long serialVersionUID =…
-
0
votes3
answers588
viewsQ: hiding component input when selecting a value in the select field
I have a component select which brings the countries from the database <div class="form-group col-md-4"> <label>País *:</label> <select required="required" id="selecionaPais"…
-
0
votes2
answers38
viewsQ: Hiding and showing tab inside a modal using check
I have a registration screen that’s inside a modal. Within this modal there are some tabs, among them a tab called foreign. I am trying to put a check box so that if the check box is selected the…
-
0
votes1
answer373
viewsQ: Tabs inside a modal when clicking disappears the modal
I’m implementing a modal and within it I’m putting tabs. But when I click on some tab tab tab the modal disappears. Look at the pictures. I use the bootstrap. Note that the url changes.. how to…
-
-1
votes1
answer157
viewsQ: Getting id and name of an array
I’m getting a response from my API which is an array containing some information between them idTipoTitulo and nome it occurs that I only need these two attributes to display on the screen. My…
-
0
votes1
answer30
viewsQ: Hiding element inside a menu
I have a menu like this.. <div class="btn-group"> <button type="button" class="btn btn-danger vermDigifred btn-xs dropdown-toggle glyphicon glyphicon-pencil" data-toggle="dropdown">…
-
2
votes2
answers116
viewsQ: API method searches for information but does not appear in front-end
I have a method of my API that does a database search @RequestMapping(method = RequestMethod.GET, value = "/entidadesUsuarioPermissao/{id}", produces = MediaType.APPLICATION_JSON_VALUE) public…
-
9
votes1
answer1020
viewsQ: The name of the dt_ultimo_access column was not found in this Resultset
I’m deploying a method passing an id parameter: @RequestMapping(method = RequestMethod.GET, value = "/entidadesUsuario/{id}", produces = MediaType.APPLICATION_JSON_VALUE) public…
-
1
votes1
answer21
viewsQ: Using return of an Angularjs method in another controllerJS
I have this method in my controllerJS script and would need to use the Response of this method in another controllerJs. How do I do ? app.controller("loginController", function($scope, $http,…
-
0
votes1
answer66
viewsA: Nullpointerexception at return of method
I managed to solve the problem by cleaning and building the project again. No more mistakes.
-
1
votes1
answer66
viewsQ: Nullpointerexception at return of method
I am making a method to search the user logged in to the database. I’m having a NullPointerException in the return of this method @RequestMapping(value = "/usuarioLogado", consumes =…
-
1
votes1
answer168
viewsQ: Select component with an Angular request
I have a select component <select class="selectpicker" data-live-search="true"> <option data-tokens="distrito">Distrito</option> <option…
-
1
votes1
answer70
viewsQ: Convert Json to Long type
I have a Json object coming from localStorage and I need it to be converted to a Long type, in case entidadeId idEntidade = localStorage.getItem("idEntidade"); var entidadeId =…
-
0
votes1
answer177
viewsQ: Nullpointerexception when calling method return in another class
I have the following method in the Logincontroller class @RequestMapping(value = "/usuarioEntidade", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, method = RequestMethod.POST) public Resposta…
-
0
votes1
answer96
viewsA: Result of the GET method brings all database relations and subrelations
The error was in my related classes, for example, in municipality, entity and Uf I had a mapping @OneToMany and within these classes more mapping @OneToMany that were unnecessary. Soon, when I made…
-
2
votes1
answer96
viewsQ: Result of the GET method brings all database relations and subrelations
I have an application where I have a listing screen I’m doing a GET method on my Spring Boot API Controller class @RequestMapping(method = RequestMethod.GET, value = "/distritos", produces =…
-
4
votes1
answer48
viewsQ: query executes in the database but in the project points error
I have a query native: SELECT dist.nome Distrito, enti.nome Entidade, dist.id_distrito, dist.codigo_dne, dist.id_entidade, dist.id_municipio, dist.id_uf, dist.flag_ativo, muni.nome Municipio,…
-
0
votes1
answer1410
viewsQ: I need an item from my select to be selected, Angular
I have a select component <div class="form-group col-md-4"> <label>Entidade:</label> <select ng-model="distrito.entidade.idEntidade" class="form-control"> <option…
-
4
votes0
answers368
viewsQ: ERROR: null value in column "id_municipio_id_municipio" violates the non-null restriction
This error is occurring when I try to persist the screen data to the database. I checked, by debugging the screen, that the data is being captured. When the method exits line 33 of the image it goes…
-
0
votes1
answer83
viewsQ: JPA entity generating column with double name id_municipio_id_municipio
I have an entity called districts that contains a relationship with the municipality table. When I run the database the districts table creates the id_municipio_id_municipio field and it was to be…
-
0
votes1
answer194
viewsA: Select component with ng-model, relationship between tables
I managed to solve by changing the value and the ng-repeat <div class="form-group col-md-4"> <label>Município:</label> <select ng-model="distrito.entidade.municipio.id"…
-
1
votes1
answer194
viewsQ: Select component with ng-model, relationship between tables
I have a select component <div class="form-group col-md-4"> <label>Município:</label> <select ng-model="distrito.entidade.id.municipio.id.nome" class="form-control" >…