Posts by Mateus Binatti • 401 points
16 posts
-
0
votes2
answers268
viewsA: Pass controller data to EJS
identified the problem. I tested and it is OK! The reason was, I was using the res.render twice. The first time, I rendered with the variable heuristic_values. The second time, I would render…
-
1
votes2
answers268
viewsQ: Pass controller data to EJS
I need to pass the obtained data, by a query in the database, to my EJS template in order to manipulate these values. My current code is like this router.get('/devreport', redirectLogin, (req, res)…
-
0
votes1
answer20
viewsQ: Handle object in Node via bank return
I’m assembling an object according to the values returned by the database. Actually, I’m doing it this way: let games; execSQLQuery(query, form_values) .then(dbResponse => { if (dbResponse != "")…
-
4
votes1
answer10576
viewsQ: Split text in excel
I have to divide the "Full Name" cells of my table into two. Therefore, I used two functions: "Left" to take the person’s Name and "Right" to take the last name. In which, everything up to the first…
-
1
votes1
answer37
viewsQ: Update Queryexpression
I made a select to bring all entities that contain the "se_customdate" field as null. So far, no problem. However, now I need to assign the value of the variable "createdon" to the null fields, but…
-
0
votes1
answer45
viewsQ: Synchronous plugin
Studying on the Microsoft Dynamics 365, I came across the information that there is the possibility of extension of the tool on the server, creating plugins síncronos or assíncronos. Microsoft has…
-
2
votes2
answers2426
viewsQ: Displaynamefor and Displayfor
Studying about ASP.NET MVC, I came across the following lines of code: @Html.DisplayNameFor(model => model.Title) @Html.DisplayFor(model => model.Title) I can’t understand the difference…
-
4
votes2
answers117
viewsQ: Streamwriter class
My idea is to create a system to insert new employees through the method CadastrarFuncionario(), placing the class properties (ID, nome, CPF) inside a file names employees.txt. With the logic used…
-
0
votes2
answers183
viewsQ: Reference System.Configuration
I’m trying to use the System.Configuration reference to finish integrating the instances of my code with a block .txt. However, I noticed that unlike the Visual Studios present in youtube videos,…
-
3
votes2
answers62
viewsQ: Doubt in the method declaration
Observe the following code: class Program { int marks; static int maxmarx = 50; void CalcularPorcentagem() { int porcento = (this.marks * 100) / Program.maxmarx; Console.WriteLine(porcento); } After…
c#asked Mateus Binatti 401 -
1
votes3
answers1640
viewsQ: Datetime function C#
I came across an exercise in which to convert the date of AM/PM format to military format (24h). So, suppose the user type 07:05:45PM, the program should return 19:05:45. I don’t really like looking…
-
3
votes2
answers280
viewsQ: Loop is not repeating as it should
I am creating a code that reads the number typed by the user and, if it is from 1 to 10, it performs the tabulation, presenting value to value on the screen, besides allowing the user to choose…
-
1
votes2
answers1892
viewsQ: IF, ELIF AND ELSE
I’m taking my first steps in Python, and I came up with a question in the if/Else sentence, trying to solve the following exercise: "Using a person’s height and gender as input data, construct an…
-
5
votes2
answers207
viewsQ: Procedure "complex"
Hello. I’m learning procedures and I have a question: DELIMITER $$ CREATE PROCEDURE `atualiza_telefone` (IN telefone INT) BEGIN IF (telefone IS NULL) THEN SELECT * FROM cliente; ELSE UPDATE cliente…
sqlasked Mateus Binatti 401 -
1
votes3
answers83
viewsQ: Date Doubt in SQL
I’m setting up a database for a video store to learn SQL. My goal is to have a return date of the film. For this, I created the table with a column named "return" to store when the movie will return…
-
1
votes1
answer766
viewsQ: Update with Select
I’m new to the forum and SQL. I use the Mysql Workbench DBMS to try to learn the syntax. Consulting a tutorial site, went to perform an update using a select, follows command line: update actor set…