Posts by Jeff Henrique • 1,020 points
58 posts
-
0
votes0
answers19
viewsQ: View cake variable value in html
Hello, I have a form and would like to know how I can display the value that is in a variable of cake, in my html code, to display in edit. Explaining better: When registering a new data, I can…
-
0
votes0
answers9
viewsQ: Release value in a select only if you have already selected another select in cakephp
Hello I have a select called tipo_examand I need another select, called exame_pericia, the select exame_pericia should only be available after I select some value in select 'tipo_exame', other…
-
-1
votes1
answer98
viewsQ: How to send notification to all Onesignal users with Flutter
Hello! I’m learning notifications with flutter and oneSignal. I figured out how to send notifications to specific users, but I don’t know how to send them to multiple users. My code so far is this:…
-
-1
votes1
answer132
viewsQ: Datetime.Parse returning wrong time
Hi, I’m doing this: DateTime horaInicio = DateTime.parse(parsedJson['comeco']); Value of parsedJson: As you can see in parsedJson it’s 7:38:33 and this is the time I wanted, but I have as an answer:…
-
1
votes1
answer303
viewsQ: Increase the size of the Flutter Gesturedetector
Hi, I have a GestureDetectorwho receives as his son a container with width: 20 and heigth: 20 and with that my Gesturedetector is only 20x20, as shown in the image (the size is only the gray ball)…
-
0
votes1
answer417
viewsQ: How to place an online symbol inside a flutter image
Hi, I have to put an online symbol inside an image, but I don’t know how to do it, I want something like : All I could do was: As I pass this green ball to image, as in the example up there, my…
-
-1
votes1
answer576
viewsQ: How to put text under Boxdecoration Flutter
Hello! I’d like to do the following : A list that shows people online, with their name down. Only I managed to do the following: I would like to put a name underneath the image of the person. I…
-
-1
votes1
answer345
viewsQ: How to create a Listview.Separated correctly
The problem is below the two images, and the whole code is at the end. Hello, I’m trying to create a list of widgets horizontally, as shown in the following image I get a little big, sorry, but…
-
2
votes2
answers88
viewsQ: Clause error Where SQLITE
Hi, I have a small problem in the following method: Future<List> getAllTarefasMediaPrioridade(String status) async{ Database dbTarefas = await db; List<Tarefas>…
-
0
votes1
answer102
viewsQ: How to pause a thread and run another thread?
Hello, I need to understand how to get a thread to pause its execution and another thread to start running? I have the following code snippet: import java.util.concurrent.Semaphore; public class…
-
0
votes0
answers29
viewsQ: Switch is not filling in all the data
Hello, I have a Grid and I am making some data changes for display, explaining better, in my database I saved the data with only one value: "V", "A", "O", and I want to make changes for display, as…
javascriptasked Jeff Henrique 1,020 -
1
votes0
answers29
viewsQ: 0 Double left, c#
Hello, I’m doing the following: Fun_CPF = Convert.ToDouble(FuncionarioViewModel.Fun_CPF2), CPF2 It is a string that can contain any Cpf, including Cpf starting with 0, such as 05669774144, but when…
c#asked Jeff Henrique 1,020 -
1
votes0
answers15
viewsQ: Change css by browser Debugger
Hello, I started in web development a little while ago, and I’m wanting to automate my service, to be able to do it faster. Before to make css changes I opened the css file in visual studio made the…
-
1
votes0
answers54
viewsQ: Jsonserializationexception, Error converting JSON
I am trying to deserialize an object brought by my webApi, tested with other objects and works, but with this no The error is as follows: Jsonserializationexception: Unexpected JSON token when…
-
0
votes1
answer55
viewsQ: Left Join - Linq is bringing Duplicate Value
Hello, I have a print method, which makes several left join, it is bringing the values I want, but some of these values are coming duplicated, as shown in the images: Table TabelaImposto: select…
-
0
votes1
answer49
viewsQ: Position elements in the horizontal
I have the following piece of code, but all the elements come one at the bottom of the other, I would like them to come next to each other, it is possible without having to touch the position of…
-
3
votes2
answers113
viewsQ: Nullreferenceexception
I was doing tests, until I received the following error: Object Reference Not Set To An Instance Of An Object Researching found that it is the famous NullReferenceException, then I was obliged to do…
c#asked Jeff Henrique 1,020 -
0
votes4
answers746
viewsQ: Limit number of lines Textareafor
I have the following code snippet : @Html.TextAreaFor(model => model.men_mensagem, new { @cols = Model.Men_caracteres, @rows = Model.Men_linha }) I define the number of lines, but that’s just for…
-
6
votes6
answers6000
viewsA: How to get the column properties of a table?
I use sp_help, that gets information from the entire table sp_help NomeTabela…
-
0
votes1
answer51
viewsQ: Bring model value to Textarea
I have the following page cshtml @using SoftluxWebCore.ViewModels.Tabelas @model SoftluxWebCore.ViewModels.Tabelas.MensagemViewModel <!-- Link to CSS --> <link href="~/css/Geral/create.css"…
-
1
votes1
answer66
viewsA: DOUBT OF INHERITANCE IN JAVA(SMALL)
Going by parts, I believe you should create a parent class Veículos, with the attributes: placa, roda(which must be of the rodas) and parafuso (which must be of the screw type); Create the…
-
1
votes2
answers116
viewsQ: Command to update multiple tables in the database
It is possible to update my database as follows: My tables in the database have a field emp_codigo ? i would like to update the value of everyone that has in the database to 1 I don’t know if you…
-
1
votes1
answer429
viewsQ: Decoding on Base 64 does not consider "Ç"
I have the following code snippets: window.btoa(CodAcabamento) //Codifica meu código para enviar para a WebApi string CodAcabamentoDes = Base64Decode(CodAcabamento); //Decodifica meu código para…
-
0
votes1
answer55
viewsA: When executing function javascript screen items some
I managed to solve No need to call the function ObterDados2 Stayed like this: @functions{ public string alterar() { AcabamentosController.validar2 = ""; return AcabamentosController.validar2; } }…
-
1
votes1
answer68
viewsQ: What happens if I forget a bugger
I have a question, when I do debugging sometimes I forget to take the breakpoint, but what happens if I forget and my project goes into production? I think as are breakpoints of ide nothing will…
-
2
votes2
answers132
viewsQ: How to block Numberbox or Textbox characters
I have a form from DevExtreme and in this form I have a NumberBox which is from a telephone field, but this field accepts only números (obvious), . and ,, but the phone, it could be like…
-
1
votes1
answer248
viewsQ: Debugger does not work
I have the following function in C# and in JAVASCRIPT when I place a stop point (F9) on the function in c# it works normally, but the debugger No, he won’t stop, I’m doing something wrong? I’m using…
-
1
votes1
answer55
viewsQ: When executing function javascript screen items some
Hello, when I run a javascript function, my screen items disappear, does anyone know why this might be happening? My normal screen: My code of function: The items disappear in the validation…
-
4
votes1
answer107
viewsQ: Foreach in Datatable
Have a datatable and needed to make a foreach to change some values of this datatable public static DataTable TabelaAmbientes { get; set; } I was doing the following foreach: foreach (DataRow lista…
c#asked Jeff Henrique 1,020 -
3
votes1
answer59
viewsQ: Delete characters from a string
Hello, I have the following code snippet: agenciaModel.Bcx_Nome = agenciaViewModel.Bcx_Nome; to agenciaModel is sent to the api and sent to the banco de dados, but in the database the maximum string…
c#asked Jeff Henrique 1,020 -
0
votes1
answer141
viewsQ: Error deserializing json
I have a little problem with deserializar mine json, and I don’t know why public async Task<IActionResult> Index() { Uri BaseAdress = Services.Token.BaseAdress; string strToken =…
-
3
votes1
answer288
viewsQ: Return View without losing data
I have a code in my controller that makes some procedures, if any of these procedures go wrong, it returns me to view that I desire and in the view I display some messages, this mine view is a view…
-
0
votes2
answers83
viewsQ: Javascript function does not perform
I have a c# check that if it is true, runs the following javascript function: @{ if (!string.IsNullOrEmpty(TipoPecaController.MsgExcluir)) { if (TipoPecaController.MsgExcluir == "3") { <script…
-
0
votes1
answer94
viewsQ: Problem searching (Firstordefault) - Linq
I’m having a problem conducting the following search: var estDel = bdprincipalEntities.unidades .FirstOrDefault(x => x.uni_codigo == uni_codigo && x.Emp_codigo == Emp_codigo); the field…
-
2
votes1
answer72
viewsQ: Error in left Join Linq - Dbcomparisonexpression requires Arguments with comparable types
I have the following method: However, when I run the query in the Log, using the left Join I get the following message : Dbcomparisonexpression requires Arguments with comparable types [HttpGet]…
-
2
votes2
answers53
viewsQ: Save Status Code in variable and check
I need to save Statuscode and do a check. I have the following code: using (HttpResponseMessage response = await httpClient.GetAsync(UrlApi)){} When I do that: var teste2 = response.StatusCode; the…
-
2
votes4
answers1515
viewsA: Take a field value by id and put it into a variable
You are using DevExtreme, I’ve been doing some research and you’d better use it onValueChanged instead of onEnterKey, because whenever the value is changed the function is executed…
-
1
votes1
answer33
viewsA: How do you test the position of elements on the screen?
Me, when I’m messing with css I usually do a small part and inspect the page, in google Chrome, F12 key, in this way, I make changes that show me in real time on the page, after staying the way I…
cssanswered Jeff Henrique 1,020 -
0
votes1
answer238
viewsQ: Problem with Onkeypress and Onenterkey
I have a problem, I need to get the value typed in a field, I thought to use OnKeyPress calling the function key_press as follows: var str; var keycode; function key_press(e) { var event = e.event,…
-
0
votes2
answers70
viewsA: For in Javascript with user input
Testing, I ended up finding the following solution: var event = e.event, str = event.key || String.fromCharCode(event.which); for (var i = 0; i < str; i++) {…
-
3
votes2
answers70
viewsQ: For in Javascript with user input
I have a form field that receives a value inteiro, this field in the form has the function OnKeyPress, I need the user to enter some value this value goes to the for ex: the user has typed 5, the…
-
0
votes3
answers92
viewsA: Leave date only on the datatime, without the hours part
I found an alternative solution on the internet: var bancos = bdprincipalEntities.Contas_Bancarias.Select( x => new { Cba_codigo = x.Cba_codigo, Cba_numero = x.Cba_numero, Cba_tipo_conta =…
-
1
votes1
answer97
viewsQ: Edge doesn’t cover everything
My edge doesn’t cover everything as it would like, how could it make the edge go up before the end of the Limite ? Meu css: .conteudo { padding: 20px; } fieldset { border: 1px solid #000; padding:…
-
3
votes3
answers92
viewsQ: Leave date only on the datatime, without the hours part
Hello, I have a project that calls a WebApi which brings the data from the database, but one of the fields in the database is of the type DateTime and in my project, I declared as String (I can…
-
0
votes1
answer78
viewsA: Add Checkbox to Datagrid field
I was able to solve it this way : columns.AddFor(m => m.CbaCob_Aceite).DataType(GridColumnDataType.Boolean); And I had a treatment at the controller: foreach (var lista in ListaCobranca) {…
-
2
votes1
answer78
viewsQ: Add Checkbox to Datagrid field
I have a DataGrid and I’m wanting to put in a field a CheckBox, was researching and it seems that with the .EditorOptions() it is possible to do this, but do not know how, just passing CheckBox as…
-
1
votes1
answer36
viewsQ: Modify Displayexpr
I have the following code: groupItems.AddSimpleFor(m => m.Bcx_codigo).CssClass("lbcod") .Editor(e => e.SelectBox().Width("300px") .DataSource(ContaBancariaController.ListaBancosBuscados)…
-
3
votes1
answer133
viewsQ: Delete multiple database elements
I have a action [GET] delete on my Webapi. She removes one element, but would like it to remove all the elements that have a particular code. How can I change my code to remove all? My Code:…
-
11
votes4
answers3477
viewsQ: Press button with keyboard enter key
I have a record button on my site, I would like to press the "Enter" key on the keyboard this button is triggered, as if it were a mouse click, there is some function to do this? Button code:…
-
1
votes1
answer154
viewsQ: Error while converting JSON
While converting my data I get the following error: Input string '42.0' is not a Valid integer This error happens because I get a value string "42.0" in a field int -> Con_codigo How can I…
c#asked Jeff Henrique 1,020