Posts by Lucas • 211 points
15 posts
-
0
votes1
answer122
viewsA: Validate fields with Javascript
I solved so xD : function PreencherPorcentagem(campo) { if (campo.value === "") { return; } var porcentagem = 0; var idCampo = campo.id var idPadrao =…
javascriptanswered Lucas 211 -
2
votes0
answers314
viewsQ: Open PDF in a new nagevador tab
I implemented a functionality in the system to generate a PDF file using iTextSharp, but this opening in the same tab, I would like it to be opened in a new browser tab. I tried to use the…
-
0
votes1
answer122
viewsQ: Validate fields with Javascript
I need to validate some fields at runtime, so their sum doesn’t exceed 100%. I was able to check if the value to distribute is 0, IE, the guy can not fill any value in the fields in this situation.…
javascriptasked Lucas 211 -
0
votes0
answers127
viewsQ: Compare values of two tables in a Procedure
I have an application that lists in a grid files that are registered in the table Scf_documentprocessocompra However, now I need to list only if this file also exists in the table SCF_ARQUIVO_UPLOAD…
-
0
votes1
answer455
viewsA: How to get just a part of a directory name?
I broke my head for a long time to do this, because I was trying to follow the line of reasoning of the posts presented. But it was of no use. I finally got the solution.…
-
-1
votes1
answer455
viewsQ: How to get just a part of a directory name?
Hello, I’m making an application to locate a file in a directory and save it to the bank as well as save tbm to the PATH. But I need to save only the name of the directories that it is, without…
-
0
votes2
answers329
viewsA: Working with Filestream and BLOB
Datareader does not accept 2 SQL commands on the same connection. So I did a gambiarra (since I will only run it once and never again) and opened 2 connections with SQL. I solved the problem like…
-
1
votes2
answers329
viewsQ: Working with Filestream and BLOB
Friends, by company order, I need to take all the files that a system stores in a Windows directory and store in the Database. In the database there is a column that stores the directory where the…
-
0
votes1
answer6479
viewsQ: Generate MER from a Database
I have a Database backup and for lack of documentation I need to generate his MER. I remember reading somewhere that there are programs that do this reverse engineering and generate the MER. Could…
-
4
votes2
answers501
viewsQ: How do I determine the search path for Controllers and Views?
I’m studying ASP.NET Core MVC on a macOS. When I create a new project, the IDE automatically arrow my Views into a folder called "Home". If I change the name of that folder or change the folder…
-
4
votes2
answers7816
viewsA: Consult in all tables of the database
This here solved my problem. DECLARE @TabNome VARCHAR(256) DECLARE @ColNome VARCHAR(256) DECLARE @Resultado TABLE(TabNome VARCHAR(MAX), ColNome VARCHAR(MAX)) DECLARE Colunas CURSOR FOR --Busca todas…
-
2
votes2
answers7816
viewsQ: Consult in all tables of the database
It is possible to make a query in all tables containing the same column their respective values? For example, I have the Bank called SGE, it has 230 tables, and all these tables have the column…
-
-2
votes2
answers1391
viewsQ: Check if the program is running on Windows
Good night. I was wondering if you could give me a JAVA example of how to check if my program JAVA-MADE is running on Windows. Taking advantage of the topic, I would also like to know how I execute…
-
0
votes1
answer59
viewsQ: Doubt with decision making
My dears, I have the following code: public static void questionTwo(){ String back = ""; Scanner scan = new Scanner(System.in); System.out.println("Questao 02: "); while(!back.equalsIgnoreCase("N")…
-
1
votes3
answers89
viewsQ: Redo the method instruction
I would like to know how I do to redo the instruction of a method until the user cancels. I have the following method, for example: public static void method(){ int i = 1; i += 1; String choise;…