Posts by Matheus Arruda • 482 points
41 posts
-
2
votes1
answer26
viewsA: Access method of type String with Reflection
The problem was here when calling the invoke method, was restarting the instance and actually needed to pass as parameter my object. String valorDescricao = ( String ) mtDescricao.invoke(…
-
2
votes1
answer26
viewsQ: Access method of type String with Reflection
I have the following class of Enum: public enum Teste { TESTE( 101, "Teste" ), MUNDO( 601, "Mundo" ); private final String descricao; private final int codigo; Teste( int codigo, String descricao )…
-
1
votes0
answers17
viewsQ: Replace part of an input ID, Name and Class
I have the following inputs <div class="sub-item-rows" id="pega-id"> <input class="numeric_only left addon_qty_limitador disabled" style="border:none; background-color:unset" maxlength="5"…
jqueryasked Matheus Arruda 482 -
0
votes1
answer40
viewsQ: Nodejs ler json time series line by line
Access an API, which predicts future values, the API returns me the JSON below: { series: { '2020-02-13': '62.5000', '2020-02-14': '64.5800', '2020-02-15': '30.7700', '2020-02-16': '60.8700',…
-
0
votes0
answers32
viewsQ: Return all results in a grouped query even if the sum is zero or null
I have the following consultation grouped: SELECT SUM(SUC.PESO), EXTRACT(DAY FROM HU.FIM), CASE WHEN (ACO.COLUNA_2 IN ('L','C') AND HU.ESP_MM_UNMET<=3) THEN 'Carb' WHEN (ACO.COLUNA_2 IN ('L','C')…
-
0
votes1
answer74
viewsQ: Get specific JSON value
I have an API that returns the corresponding image of a status, however I’m having trouble getting only the field 'camiofoto' in my API answer. Response from the API:…
jqueryasked Matheus Arruda 482 -
2
votes1
answer58
viewsA: Mongodb query works in shell, and does not work in PHP
The problem was in the codeigniter library, it was not sending the user and password to connect to the server.
-
0
votes1
answer58
viewsQ: Mongodb query works in shell, and does not work in PHP
I need help with the query in the mongoDB database, in the shell I can perform the search normally, however on the site I get the error 'not authorized for query on'. I use the mLab service for…
-
2
votes1
answer90
viewsQ: Convert Arraylist to Object[][]
How to convert an Arraylist to a 2D Object. My Current Code: ArrayList<String> a = null; a = new ArrayList<String>(); a.add("ABC"); a.add("DEF"); a.add("1"); a.add("1"); //Converter para…
-
1
votes1
answer52
viewsQ: Update class fields with sequential names
How to update the background color of 15 JTextField during a loop? For example, I own the following JTextField: txtEsp1 txtEsp2 txtEsp3 ... And I want to create a loop, to set the background of the…
-
1
votes2
answers395
viewsA: Mysql problems with DELETE
You are placing the string with the code to be executed but did not execute it, add the lines below, below the $del variable if ($conn->query($del) === TRUE) { echo "Apagado com sucesso"; } else…
-
1
votes1
answer172
viewsQ: Add Jinternalframe to another Class
I own a JInternalFrame for editing budgets, my JDesktopPane is in a different class from the class I call the JInternalFrame, how to add the JInternalFrame in the JDesktopPane. Start Class public…
-
3
votes1
answer54
viewsA: What’s the bug in the program?
The error occurs when the project’s R Class was not generated, or is not in the folder /res/ of the project. To solve the problem, do the following: Solution 1 Navigate to Project -> Clean ->…
-
0
votes1
answer38
viewsA: Ucanaccess problem in Select with Between Dates
Good people, I was able to solve the problem, the error was the way the time was passing, which was in the format 'HH:mm' and the Ucanaccess requires the format to be in 'HH:mm:ss', follows the…
-
0
votes1
answer38
viewsQ: Ucanaccess problem in Select with Between Dates
I am having a problem when performing a query having as condition a period of two dates, this query in MS Access works perfectly however via code with ucanaccess library I get the error of 'Unknow…
-
0
votes1
answer147
viewsQ: Application works in eclipse and stops working after generating JAR executable
I am working on two apps here in the company that are giving me a certain headache for a reason that the solution should be simple but I am not able to locate the error, the two applications work…
-
0
votes6
answers3210
viewsA: How to remove this black border in this presentation by iframe?
Change the background of your iframe, seven to the default color of your blog. <iframe id="SEUID" src="SEULINK" style="background-color: #f000000;" />
-
0
votes2
answers40
viewsA: Criteria for dynamic inputs
I was able to solve the problem as follows: $horaatual = date('H:00'); $horas_hidden = array(); echo $hoje; while ($ln = mysql_fetch_assoc($qr)) { $horas_hidden[] = $ln['Hora']; } if ($predata ==…
-
0
votes0
answers1571
viewsQ: Consultation CNPJ Internal Revenue Service
I am researching about the automation of the issuer registration part of my system, I am trying to find something to help me automate the process, the idea is that the user type the CNPJ, and is…
javaasked Matheus Arruda 482 -
2
votes2
answers40
viewsQ: Criteria for dynamic inputs
I have a dynamic input that checks the date the user selects and then returns the available hours for scheduling, however when the user selects the date of the day (data = hoje) i would like the…
-
0
votes1
answer45
viewsQ: Problem with Dynamic Input
I am developing a dynamic input that checks whether the database contains a value if there is such value should not appear in the input, but I am experiencing problems with my logic: <?php…
-
0
votes1
answer90
viewsQ: PHP Update checkboxs dynamically
I’m having difficulty performing a function on a scheduling system, Follow the picture: I need to do the following, when the user selects a date the system makes a query in the database and fills in…
-
0
votes3
answers97
viewsA: POST ajax and combo box problem
I edited the line: $.post("ajax-prehora.php", {tipo:$(this).val()}, To $.post("ajax-prehora.php", {predata:$(this).val()},…
-
-1
votes3
answers97
viewsQ: POST ajax and combo box problem
I’m trying to update a combo box dynamically, for this I have two combo box "predata" and "prehora", when the user selects a value in the predata field the prehora field has to perform a query in…
-
2
votes2
answers1672
viewsQ: Notification using PHP and Webservice on Android
I have a project in mind but I have not yet started to develop it in practice. The idea is to develop a PHP + Mysql Web system and an Android application using Webservices. My question is whether it…
-
0
votes1
answer221
viewsQ: Scrollbar in a Jtable
I added a JTable that updates the data as the customer type in a field JTextField. However, when the client search returns multiple lines, I would like the JTable had a scroll so that the customer…
-
1
votes1
answer476
viewsQ: Jdatechooser and Jcombobox picking blank values
I’m having some problems trying to capture the value of some elements of my code. 1º - Problem with Jdatechoose component The code runs smoothly but the captured value goes blank, follows code…
-
1
votes1
answer225
viewsA: Java check two tables inside Sqlite
Dear I managed to solve by performing the filter directly in the query, follows the query below. SELECT UM FROM FILADBQ WHERE NOT IN (SELECT UM FROM ESTOQUEDBQ) This condition only makes the filter…
-
1
votes1
answer225
viewsQ: Java check two tables inside Sqlite
I have a database that has two tables, being them EstoqueDBQ and FilaDBQ, I need to create the following logic. If the value exists in the table Filadbq and in the EstoqueDBQ, this value should be…
-
1
votes2
answers294
viewsA: Java error inserting picture into spreadsheet. Apache Poi
I was able to solve the problem by removing the libraries listed above and finally adding the libraries below: poi-3.11 Commons-codec-1.9 No changes to the code were required. Grateful…
-
1
votes2
answers294
viewsQ: Java error inserting picture into spreadsheet. Apache Poi
I am trying to insert an image into a sheet using Apache POI , but I am getting the following error : 03-03 20:21:50.898: E/SELinux(28413): selinux_android_seapp_context_reload: Error reading…
-
0
votes0
answers683
viewsQ: POI apache, Function if you have the value in a blank cell
I need a little help with the use of apache POI, in my application I need to perform a query inside a spreadsheet, this query checks if there is a value in the spreadsheet, this query is ok, below I…
-
2
votes1
answer825
viewsQ: Check if the value already exists in the txt file
I am developing an inventory application that in its freeware version will work with the data inserted in a txt file line by line, the data structure will be as follows Barcode + Description +…
-
0
votes0
answers117
viewsQ: Problem while saving file on Android Lolipop from second generation moto-g
Good morning, I have an app that works normally on all versions of Android from-the 2 to the first generation moto-g version, this app is very simple, I describe the details I need to add in the…
-
0
votes1
answer78
viewsA: Call a method when opening the application
Solved, according to the response of the Ramaral user In the onCreate() method call the read method()
-
0
votes1
answer78
viewsQ: Call a method when opening the application
I have the following class public class ReadXlsx extends Activity { public TextView txtcoluna1; public TextView txtcoluna2; public TextView txtcoluna3; public TextView txtcoluna4; @Override…
-
0
votes1
answer849
viewsQ: Capture txt file row by row and play in a txtbox
good afternoon need to take the value of a text file and write each line in a txtedit, the file is generated by the code below: byte[] dados; File arquivo = new…
-
1
votes0
answers1297
viewsQ: Photo saved but not shown in the gallery
Good evening, I’m with a design of a camera that adds in the name of the photo what the user writes in the text fields. The app works only that the photo does not go to the gallery. Only appears in…
-
0
votes1
answer6803
viewsQ: Capture value from an Edittext
I need to capture the value of 2 Edittext and 2 Checkbox, to capture the text of Edittext I transformed it into a string and tried to capture the value but the application closes giving java…
androidasked Matheus Arruda 482 -
5
votes1
answer1390
viewsQ: How to read . txt file?
How do I read a file .txt which is written in lines and check if in a row that file has a value if you have made a check on checkbox. Example: txt files: 123 234 2456 If you have the file 123,…
-
0
votes1
answer755
viewsQ: How to set a checkbox as checked?
Good morning, I have a layout with some checkbox, these are disabled so that the user can not check them because for security reasons this check must occur via code, I have the following code: I…