Posts by guilhermedjc • 169 points
19 posts
-
0
votes1
answer30
viewsA: How to allow only numbers and semicolons in input text?
I managed to solve! I added Event Binding (Paste) which calls a function when someone tries to paste some text: <input [disabled]="!selectHierarchy" id="numero" name="pesquisa" type="text"…
-
0
votes1
answer30
viewsQ: How to allow only numbers and semicolons in input text?
I have an input in my system where the user must enter code (only numbers), however he can put several codes, and to separate uses semicolon (;). To make it work I created the input as text and put…
-
0
votes0
answers133
viewsQ: How to use th:each to combine rows with columns?
I need to upload a list of recipes to my website so that it gets 3 recipes per line (Row). I am using th:each to display the recipes. Follows the code: <div th:each="receita : ${receitas}">…
thymeleafasked guilhermedjc 169 -
0
votes2
answers332
viewsQ: User change does not work, is doubling given in bank
I implemented spring security in my project, I can already register new users and login/logout. Now I’m trying to edit this user’s data, when I click save, it duplicates the data in the database,…
-
1
votes1
answer522
viewsQ: How do I search for logged-in user information other than by the controller?
I’m using spring security to log in to my site. It’s working, I can register new users, log in and drop off. I have a navbar that, when the user is not logged in, appears the option "Log in or…
-
2
votes4
answers4389
viewsQ: Select from previous months
I need to do select data from previous months, month by month. My query is like this: SELECT * FROM VIEW_INCD WHERE MONTH(DH_CRIA_INCD) = DATEPART(mm,GETDATE()) - 1 AND YEAR(DH_CRIA_INCD) =…
-
0
votes1
answer72
viewsQ: How to fetch Phpmyadmin data to display on screen using Drupal 8?
I created a table on phpMyAdmin with some acronyms I use at work, and I need to throw this data into the content of a page I created. How would I do that? I’m working with DRUPAL 8.…
-
0
votes0
answers18
viewsQ: Best way to transfer file between cloud and proprietary environment
Could someone tell me the best (secure) file transfer method between an iCloud (cloud) environment and a proprietary environment? And how I would do that?…
-
1
votes0
answers110
viewsQ: How do I use a web.config key in the controller?
On my web.config I have the following key: <appSettings> <add key="teste" value="teste"/> <appSettings> What I need to do to use this key in my controller?…
-
2
votes2
answers2655
viewsQ: How to format dd/mm/yyyy date to mm/dd/yyyy
I’m getting this date in a variable: var data = "23/03/2012 00:00:00" I need to put this date in an input type date. When I try, the message appears saying that I need to pass through the format…
javascriptasked guilhermedjc 169 -
0
votes1
answer110
viewsQ: How to check the amount of object in an array?
I am making an ajax request, which returns an array of objects (date), as I would do to check the amount of these objects? Example: Se (data retornar mais de um objeto no array){ faça isso }senão{…
-
1
votes1
answer916
viewsQ: How to perform a function after ajax Success?
In my project, in the ajax Success, I am making an autocomplete, so I need to execute a function after selecting an option, that is, after Success. Would it be possible/How I would do it?
-
1
votes1
answer39
viewsQ: Error in date format function
have that function: function formatarData(data) { var d = new Date(data), mes = '' + (d.getMonth() + 1), dia = '' + d.getDate(), ano = d.getFullYear(); if (mes.length < 2) mes = '0' + mes; if…
javascriptasked guilhermedjc 169 -
4
votes3
answers9287
viewsQ: Convert string to Date (dd-mm-yyyy)
I have a string = "01/04/2012" and need to convert to date(dd-mm-yyyy) in javascript pure. Follow what I’ve done: var vencimento = localStorage.getItem('dados2'); //Busca a variável que contém a…
javascriptasked guilhermedjc 169 -
1
votes0
answers130
viewsQ: How to pass a controller variable to the service?
I have a question, as I pass to a service a controller variable? I have a screen that has a table, when the user clicks on a row of this table, it goes to another screen with the data filled in…
-
0
votes1
answer72
viewsQ: Alert via jQuery not working as planned
I need a help! I am developing a web project, and in it I call jQuery a WCF SOAP test, very simple, on a button, and returns an Alert with a value. It’s working, but not the way I want it to. In the…
-
1
votes0
answers37
viewsQ: Can I use jQuery code in a . Factory and inject it into the controller?
I’m developing a site using Angularjs ES6, and on this site I needed to perform a function and I wasn’t getting it. I searched the internet for a similar function to understand how I could do and…
-
3
votes1
answer886
viewsQ: How do I import data from a spreadsheet in excel (csv) to an HTML table?
Hello, I am making a website, which contains a table, however the data from this table needs to be imported from an excel spreadsheet that I have saved here on my machine.. Can someone help me? If…
-
2
votes1
answer55
viewsQ: Function running from second click
I have a button in my project, which the function is to make appear a div that is as display None, but the function is only executed from the second click on the button, the first click just selects…