Posts by Danilo Ribeiro da Silveira • 143 points
8 posts
-
2
votes1
answer1210
viewsQ: Select with subquery to catch previous record
I have a user readout log structure by reference. As shown below. SELECT L.LeituraID, L.UsuarioID, L.Referencia, L.Leitura FROM Leituras AS L |-----------|-----------|------------|---------| |…
-
1
votes2
answers59
viewsA: Error in the division by groups
The way you’re doing this is going through all the players and distributing between the teams. I think it would be more performative if you just go through the array of teams and distribute the…
javascriptanswered Danilo Ribeiro da Silveira 143 -
0
votes1
answer109
viewsA: Redeem Cookie Values
Cookies in the Webapi can be accessed using Request.Headers.GetCookies See the documentation on https://docs.microsoft.com/pt-br/aspnet/web-api/overview/advanced/http-cookies Below is an example…
-
1
votes1
answer485
viewsA: How to disable modal closure via the ESC key in the modal of the UI-Bootstrap?
You must configure the option keyboard for false $uibModal.open({ templateUrl: '/ng-views/temp/os/form.html', backdrop: 'static', keyboard : false, controller: 'OSFormController' });…
-
1
votes2
answers89
viewsA: Select field with first blank item
You can add an option with the option disabled so that he is not selected. <select asp-for="CategoriaID" asp-items="@Model.CountryList" id="cbcategoria" class="form-control"> <option…
asp.net-mvcanswered Danilo Ribeiro da Silveira 143 -
1
votes1
answer15
viewsA: Error when trying to assign a new value to a repeat object
You’re comparing whether there’s a if ($scope.content.dados[i]) using the variable i but assigns the value using the variable j
-
0
votes1
answer54
viewsA: Generate txt with standard format
You can use the methods String.PadLeft or String.PadRight string str = "Lorem ipsum"; Console.WriteLine(str.PadLeft(15)); // " Lorem ipsum" Console.WriteLine(str.PadRight(5)); // "Lorem ipsum "…
-
1
votes1
answer123
viewsA: How to ensure that the generated JSON does not return error to the Customer?
You can handle errors according to the Response status code as you did when you did not find the panel. What I recommend is to always validate user data entries. In the case of your…