Posts by JMSlasher • 336 points
12 posts
- 
		4 votes2 answers84 viewsA: Filter object array from a Javascript search stringYou need to consider at find() that the field value can be undefined, for in the split() the first index of the array is undefined for the field follows example with its modified code: const… 
- 
		1 votes1 answer30 viewsA: rPad or Padright in Fastreport VCL text exportI don’t know which version of Delphi you’re using, but if it’s a newer version, in class helperTStringHelper has the function PadRight() Only need include in uses System.StrUtils example of use:… 
- 
		0 votes1 answer51 viewsA: Add up the total quantity of a product with different batch? SQL ORACLESELECT codigoestabelecimento, tipodocumento, seriedocumento, documentosaida, codigoproduto, SUM(quantidadesaida) AS QUANTIDADESAIDA FROM lotesaida WHERE codigoestabelecimento = '1' AND… 
- 
		1 votes2 answers53 viewsA: Union of two selects presenting onlineRewrite your select this way: SELECT ITOS.CD_NUMERO_OS, ITOS.DESCRICAO_RECLA AS "DEFEITO APRESENTADO", NVL(SL.DESCRICAO_SOLUC, 'NAO RESOLVIDO') AS "SOLUCAO DO DEFEITO" FROM GMITEMOS ITOS, GMOSERVI… 
- 
		0 votes1 answer43 viewsA: Asp.Net - Read FilesYou can join the descriptions using the method Join() string class. I modified your code to demonstrate below: using System; using System.Collections.Generic; using System.Xml.Linq; using… 
- 
		1 votes1 answer71 viewsA: Unity C# | Problem Using For Loop Inside Update()His method Update() needs to know which event will run beforehand, my suggestion is to create a variable that controls which event will run, follows code: int proxEvento = 0; // inicializa para o… 
- 
		0 votes1 answer156 viewsA: Creating dynamic id for my div s in JavascriptIt always creates the same id because the value of i is always 1, each time you click on the button it starts the loop of 1 again and assigns the same value to the id. Since the id is created… 
- 
		1 votes1 answer39 viewsA: How to get the first foreign table row with Entity framework core?You are setting a single reference in Viewbag (Viewbag.Photo) at each iteration in the foreach loop, so all records get the same image, as it always replaces the photo at each step. My suggestion is… 
- 
		1 votes1 answer75 viewsA: Generate list dynamically with LinqTry this change (complete): gerencianetDataContext db = new gerencianetDataContext(); var cobrancas = (from p in db.DetalhesCobrancas where p.CobrancaId == 2 select new { name = p.Descricao, value =… 
- 
		1 votes3 answers923 viewsA: Focus item on Listbox with DelphiIn this case you need to scroll through the list in a repeat loop and check item by item, as there is no method for partial searching in the Tlistbox Items property. Example: procedure… 
- 
		1 votes1 answer54 viewsA: Error with Trigger and exceptionPuts an Exception in your database to capture the PK error, for example: create or replace procedure insert_cargo(v_id_cargo cargos.id_cargo%type, v_cargo cargos.cargo%type, v_salario_minimo… 
- 
		2 votes1 answer1829 viewsA: Call action with button click by passing parameterYou can use Razor Helpers to create links to actions by passing the specific id of each button. In your view you can do: <a href="@Url.Action("Index", new { id = 1 })" class="btn…