Posts by Samuel Rizzon • 328 points
17 posts
-
-1
votes2
answers138
viewsA: Change menu with CSS
Take a look at this: https://www.w3schools.com/bootstrap/bootstrap_affix.asp It can help you and give you a direction of what to research.…
-
0
votes1
answer56
viewsA: When returning validation error in the form, object gets the entered values
Try to do it that way: public void salvarEmail() { if (clienteEmailSelecionado.getId() == null) { Long tamanhoLista = cliente.getClienteEmails().stream().filter(e ->…
-
0
votes3
answers1512
viewsA: How to do so, if the record exists, it updates, if it does not do an Insert of the same
You can do this by SQL even this way: IF EXISTS (SELECT * FROM usuario WHERE nome = 'NOMEDOUSUARIO') BEGIN UPDATE ... END ELSE BEGIN INSERT INTO ... END Try this way in php: $rs =…
-
1
votes2
answers161
viewsA: How Forms are opened - Visual Studio
Try to set the AutoScroll as true in your form. Maybe this will solve.…
-
0
votes2
answers41
viewsA: Connect to SQL with Appconfig
In your app.config put: <connectionStrings> <add name="myConnectionString" connectionString="Data Source=localhost;Initial Catalog=YourDataBaseName;Integrated Security=True;"…
-
1
votes1
answer116
viewsA: Dynamic method for opening screens
Try to change that: public async Task NavigateTo(Page page) { await App.MasterDetail.Detail.Navigation.PushAsync(new page()); } To: public async Task NavigateTo(Page page) { await…
-
1
votes1
answer439
viewsA: Return DB value in a variable
Swap Object for var in its return variable. var retorno = cmd.ExecuteScalar(); If not, check if your SQL query is generating any results.
c#answered Samuel Rizzon 328 -
-1
votes1
answer411
viewsA: How to check if the fields are empty before adding to the arraylist?
You can create a method to check this. In it you will pass as parameter your Jtextfields and check whether it is empty or not. Then you need to make an if for each Jtextfields you want to add in the…
-
0
votes2
answers1098
viewsA: Run automatic click on form input
Do it that way: <!DOCTYPE html> <html> <head> <title>Test</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script…
-
1
votes1
answer57
viewsA: How to do a URL validation with Angularjs
You can and should do this using Javascript. Just use the window.location.href. It will have return to the URL you are at the moment. That way you can do: if(window.location.href ==…
angularjsanswered Samuel Rizzon 328 -
4
votes2
answers1075
viewsA: mpdf only displays in firerox
From what I understand, you are trying to generate a PDF by putting a code in . css on it, hence the error. Try referencing the css within your html, and remove the line…
-
0
votes3
answers24888
viewsA: Are the accents on my page missing?
Maybe you’re using HTML 5 without knowing, that’s the difference between the two: <!-- HTML 4 --> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <!-- HTML5 -->…
htmlanswered Samuel Rizzon 328 -
1
votes2
answers63
viewsA: Error while placing opencart site in domain
All these messages are not errors but warnings. To disable errors and warnings in php is very simple. Just put this line of code at the beginning of your index: <?php error_reporting(0); ?>…
opencartanswered Samuel Rizzon 328 -
0
votes2
answers146
viewsA: Doubt in javascript collisions
I’ve done something like this before. But I had to create a scenario like this with comic books, each comic represented something that could be bumped or not. In your case, you could separate this…
-
2
votes1
answer17
viewsA: Make remote json into string
Convert Json to an object. var obj = JSON.parse(text); Then just take the value you want from this object. var user = obj.username; This way your user variable will receive the Droust value. Give a…
-
0
votes1
answer766
viewsA: How to close Modal Bootstrap only when entering the server-side method?
I didn’t quite understand your doubt, but I saw that you put to close the modal when clicking save. This is not correct, because every time you save, the modal will be closed. You must change that:…
-
0
votes2
answers151
viewsA: How do I use two checkboxes in a C# mvc view to choose the query type?
In my opinion, the best way to do a search is by using Datatable. In addition to already having a search box where you search for all columns, you can configure and create boxes to search for…