Posts by Rodrigo • 345 points
25 posts
-
0
votes1
answer59
viewsQ: Find document that originated the following
I have a table where a document can originate new documents, and this new document loads in a column the number of the originating document (not necessarily the first document that ever existed).…
sql-serverasked Rodrigo 345 -
0
votes0
answers70
viewsQ: Update Jtexpane (display scrollbar) when inserting information
I have a JTextPane where I enter some values. Components are added directly in the Netbeans IDE, not created on run, instantiating components. What I’d like to achieve is: As the values are added,…
-
0
votes0
answers305
viewsQ: Compress files into independent parts ( no need to be tight to unzip)
In my application I can compress a folder and its contents, this content is the result of manipulation of pdf, jpg and xls. But I needed to split it into parts ( the compressed file cannot be larger…
-
2
votes1
answer936
viewsQ: Make java.sql.Date object to dd/MM/yyyy format
I got a field that’s like String, where a data in format dd/MM/yyyy , I’m converting to java.sql.Date, the result is: 2018-01-01. What I needed was to get the date in the format : dd/MM/yyyy, which…
-
0
votes0
answers154
viewsQ: Manytomany include other fields
Hello, I have a relationship ManyToManyamid envio and carro, and would like to understand how do I save in the same table, which is created through this relationship, the entity id Local. Entidade…
-
1
votes1
answer176
viewsQ: Keylistener for various Jtextfields
I created a KeyListener for verification of a String typed, if it is in the bank. If it does, it sends an alert. The question now is that I have about 50 jTextFields. It is possible to create a…
-
1
votes1
answer36
viewsQ: Pass jTextField value to Namedquery
I have some jTextfFields where I need to send to the DAO their values, these values are arriving correctly in the DAO, but the return of NameQuery is being null. There is no mistake, only the return…
-
0
votes2
answers1427
viewsQ: Mark or uncheck selectBooleanCheckbox when clicking another
Hello, I have the following situation: On my jsf page I have some components selectBooleanCheckbox. I need that when clicking on one of them some others are unchecked, and also disabled, making it…
-
2
votes1
answer117
viewsQ: SQL doubt with COUNT
Hello, I have a query as below, and I have some questions regarding COUNT, would like help to understand and solve the problem : public String getQueryPrincipal(String queryPrincipal) { return…
-
2
votes0
answers65
viewsQ: Show result in same tab (JSF)
Hello, I have the following situation: I have a button (search) that executes a search method and returns the data in the same tab already opened in a <p:dataTable. After generating a report on…
-
0
votes1
answer329
viewsQ: Jasperreports report with multiple parameters
I have a report on JasperReports, is working properly. However, from the way it is, step only one meter each tipofrom the jsf page to the report, the screen is as per the image: What I need now is…
-
1
votes0
answers619
viewsQ: JSF Download File Saved in Database
Hello, I have a jsf page where I upload the data from a entidade, between the data there is an attached file (pdf, xls, jpg etc.). I would like you, when clicking on the file name, to download the…
-
2
votes1
answer1973
viewsQ: Adjust columns according to available Jtable size
I have a JTable where the user can hide and then re-display one or more columns. I found a code at this link which adjusts the column according to the size of the "field value". I call this method…
-
2
votes1
answer1100
viewsQ: Pick up Jtable’s line after Filtering Data
I’m wearing a TableModel(not the DefaultTableModel) which I populate with data from banco (MySQL), I also use a Class to filter through what I type into a JTextField. It is working correctly, but I…
-
0
votes1
answer174
viewsA: No query Executer Factory Registered for 'sql' language
I managed to solve using the information contained here: http://docs.spring.io/spring-boot/docs/current/reference/html/build-tool-plugins-maven-plugin.html. More specifically instead of using the…
-
0
votes1
answer174
viewsQ: No query Executer Factory Registered for 'sql' language
In my project there are some reports and graphics, using DynamicReports which function properly in the IDE Netbeans without any mistake. But through the command line running the jar java -jar…
-
3
votes3
answers2016
viewsQ: Mysql Ireport DATE_FORMAT months in English
I have some graphics using IReport, in one of them needed to show the date in "month/year" format. Using the code: DATE_FORMAT(data,'%m/%y') as mesAno can only show in English format (as image…
-
0
votes1
answer75
viewsA: Dynamicreports chart: comparing sales by years
Solved, the problem was in my query, this is the correct: String query = "select SUM(value_sale) as sum,COUNT(id_sale) as count,YEAR(date_sale) as year, YEAR(date_sale) as y,id,pro.name " + "from…
-
0
votes1
answer53
viewsA: Dynamicreports Dynamic Graphics Generation
I managed using this example of the link, adapting my need. http://www.dynamicreports.org/examples/databasedatasourcereport…
-
-1
votes1
answer75
viewsQ: Dynamicreports chart: comparing sales by years
In the graphic shown in the image I show the sales values of some products. What I wanted now was to create a chart that showed the same information but comparing the sales of these products in…
-
-1
votes1
answer53
viewsQ: Dynamicreports Dynamic Graphics Generation
Hi, I made some reports with the DynamicReports http://www.dynamicreports.org/, when searching about how to make graphs I found several examples, but none with the data (shown in the graph) being…
-
0
votes0
answers131
viewsQ: JPA Hibernate two entities with the same name, always saving in the same entity
I have a jCombobox where all the entidades students. It happens to have two entities with the same name (two students Rodrigo Silva for example). Both are loaded on combo. To the gravar the data in…
-
0
votes0
answers903
viewsQ: Persist field blob with file extension - JPA, Hibernate
I need to persist an attachment as a pdf, xls, etc. (type field blob). I need to recover this file after persisting it and I don’t want it to be necessary for the user to inform the file extension.…
-
2
votes1
answer1079
viewsQ: Save File with Extension
I would like to recover a file of the type blob, and to add the extension, without the user having to type this extension when recovering. The way it is, I’m saving and also recovering, but…
-
5
votes2
answers1293
viewsQ: How to create Jbutton in "square" format?
It is possible to create JButton in a "square" format, without the rounded corners when they are already in the JFrame? Does anyone have an example? I don’t use any specific laf, but the netbeans…