Posts by Victor Hugo • 330 points
15 posts
-
1
votes1
answer25
viewsA: How to initialize the sale id in print class?
The sale variable of MB Vendamb needs to be annotated with @Viewscoped. To capture in MB Impressaomb Launch the Vendamb. In Impressaomb would look like this: @Inject private VendaMB vendaMB; public…
-
1
votes0
answers125
viewsQ: Capture Custom Fields(custom Fields) from Trello API
Gentlemen, I’m building a system that has integration with Trello. When performing the following HTTP command: curl --request GET \ --url…
-
-2
votes2
answers49
viewsA: Timed in while loop
So solve your problem: for ($i = 1; $i <= 20; $i++) { sleep(20000); }
phpanswered Victor Hugo 330 -
5
votes2
answers26234
viewsQ: SELECT INSERT in Oracle using Sesquence nextval and group by
Good morning, you guys! I’m trying to make an Oracle select using a SEQUENCE in id, but is giving error on account of a group by no select. Dry up my SQL: INSERT INTO SUP_T(ID, DESCRICAO) SELECT…
-
2
votes2
answers1051
viewsA: Pass video url into Modal - Jquery
You can use jquery itself. Put the id in the required tags, for example: <embed id='meuid' src="https://www.youtube.com/v/<?=$video?>?version=3" type="application/x-shockwave-flash" fs=1…
-
2
votes1
answer189
viewsQ: How to generate default values with JPA Hibernate
I would like to optimize my code and my work with the following situation. I have an address entity that has a type, ie another entity called Tpendereco. Since, this table has standard values,…
-
0
votes2
answers186
viewsA: How do I display total records in a Manytomany relationship when I use HAVING?
select COUNT(article_id) from article_tag where tag_id in (1, 3) having count(distinct tag_id) = 2; Put a COUNT select and remove the groupby…
-
1
votes1
answer503
viewsA: How do I create a variable to display error or success message?
Create a session. Use the following javascript: //Função responsável por exibir ou ocutar o feedback mensage function showAlert(type, message) { if (message !== '') { if (type === '') { type =…
phpanswered Victor Hugo 330 -
0
votes3
answers190
viewsA: Ajax upload does not send image and parameter
If you used a form it would be much simpler: <form id="formulario" method="post" enctype="multipart/form-data" action="upload.php"> <input type="file" id="imagem" name="imagem" />…
-
0
votes2
answers1515
viewsA: Align menu with CSS
You can use the property float:left, that will make your menus stand next to each other. To take this effect where you wish you can use the clear: left; This tutorial can help you: insert link…
-
1
votes2
answers1590
viewsQ: Wildfly error: [org.jboss.remoting.remote.Connection] (XNIO-1 I/O-2) JBREM000200: Remote Connection failed
When trying to run a project by Eclipse Mars using Wildfly 9 on Windows 10 the following error occurs: 11:25:08,167 ERROR [org.jboss.remoting.remote.connection] (XNIO-1 I/O-2) JBREM000200: Remote…
-
2
votes1
answer153
viewsQ: New POOL connection in Glassfish is giving error
I’m trying to make a new Connection POOL on Glassfish, but when I try it on "Ping" it shows the following error: The configured properties: Someone can help us out?…
glassfishasked Victor Hugo 330 -
0
votes1
answer1233
viewsQ: Problem with JPA using Wildfly 9 and JTA
It’s the first time I’ve tried to use JTA using the Wildfly container and so far I haven’t been able to execute my code properly. When I publish the application(start Wildfly) it starta perfectly,…
-
2
votes1
answer82
viewsA: Capture $.getJson value is coming Undefined
Solved. I only removed the "[]" in the "arr" variable in the php file.
-
1
votes1
answer82
viewsQ: Capture $.getJson value is coming Undefined
I’m trying to assemble a table from a JSON that I receive from a page php, meanwhile when I do the append the captured value appears as Undefined. $.getJSON("getEventoCategoria.php", {ID_EVT_Evento:…