Posts by Maria • 817 points
90 posts
- 
		0 votes1 answer405 viewsQ: Clear input value at material angleI have a input in Angular Material: <mat-form-field class="width-layout p-0 col-xs-12 col-sm-4 col-md-4 col-lg-4" [class.mat-form-field-invalid]="errorValue" appearance="outline">… 
- 
		1 votes1 answer46 viewsQ: Send text by Routes (Children)I send the title like this: const routes: Routes = [ Route.withShell([ { path: 'ex', component: exemple, children: [ { path: '', component: exComponent, data: { title: extract('ex.PAGE_TITLE') },...… 
- 
		1 votes4 answers431 viewsA: Dynamically change classI found the ideal solution with the help of @Gaspar’s reply I created a global array and pushed the contributors data and added 1 more data: this.arrayColabs.push({ MATRICULA:… 
- 
		0 votes1 answer85 viewsA: Fixed header without transparent backgroundI managed to solve by putting the z-index: 1; .cab { background: url('../../../assets/img/background_mod_bdh.png') no-repeat center; background-size: cover; // fixar no top position: fixed; top: 0;… 
- 
		0 votes1 answer85 viewsQ: Fixed header without transparent backgroundI have a header fixed on my page with a background image, when the scrolling happens the header goes along and has to overlap the html that is underneath, and does not become transparent, but it is… 
- 
		0 votes1 answer40 viewsA: open Collapse after updating arrayI resolved so: OnSubmit() { $('#modalExemplo').modal('hide'); let dados = this.dados; this.dadosColab = this.dadosColab.filter(function (elem, index, array) { return array[index] !== dados; })… 
- 
		-2 votes1 answer40 viewsQ: open Collapse after updating arrayI have a Collapse that when I click on it, comes the data of the array, there is a button that opens the modal, when I open the modal I click 'FINISH', then when I send the data to the api, and then… 
- 
		2 votes4 answers431 viewsQ: Dynamically change classI have an html with ngFor: <div class="row p-3 border-bottom" *ngFor="let cont of contrib"> <!-- ! --> <div class="col"> <p [class.text-danger]="redName === true"… 
- 
		0 votes1 answer211 viewsA: How to make specific array data not repeat in *ngFor or arrayI was able to reply with the comment of Gesiel Rosa. link: https://www.competa.com/blog/custom-groupby-pipe-angular-4/ groupByPipe.ts: import { Pipe, PipeTransform } from '@angular/core';… 
- 
		0 votes1 answer211 viewsQ: How to make specific array data not repeat in *ngFor or arrayI have an array with the user data, which is the data that it hit point on that date that ta in the array. array: [ 0:{CCT: "150403",CODIGO_EVENTO: "012",COLABORADOR: "FULANO",DATA:… 
- 
		2 votes1 answer189 viewsQ: formControlName with *ngForI have a form with 3 fields q will be used by the user: a select, a textarea and an input. These fields are filled with an ngFor q data comes from the database: <form id="form-group"… 
- 
		1 votes0 answers24 viewsQ: Rename Arq with multiple uploadI have a form that contains a file type input, where I need to send several Arq at the same time: <div class="row p-3 hours_week" *ngFor="let subType of finalResultTotal"> <input… 
- 
		0 votes3 answers826 viewsQ: Calculate hours workedI have the standard hours that the employee hits point. Ex: 8:00 - 12:00 - 13:00 - 18:00 And I have the time that he clocked in that day. Ex: 8 - 12:06 - 12:59 - 17:0 I need to calculate how many… 
- 
		0 votes2 answers687 viewsA: Sequelize making incorrect selectthe documentation I was able to solve: https://sequelize.readthedocs.io/en/2.0/docs/models-definition/#Configuration I put in my model: freezeTableName: true and was resolved… 
- 
		1 votes2 answers687 viewsQ: Sequelize making incorrect selectI have an api in nodejs www: ... db.sequelize.transaction() .then(() => { server.listen(port); server.on('error', onError); server.on('listening', onListening); }) ... models: 'use strict';… 
- 
		0 votes0 answers185 viewsQ: Do not create table in API, use the one I haveI made an api on nodejs that the models is: 'use strict'; module.exports = (sequelize, DataTypes) => { const RESP_CC = sequelize.define('RESP_CC', { RCC_RESP: { type: DataTypes.STRING(6),… 
- 
		0 votes2 answers1815 viewsA: Download files in API Restfull NodejsI was able to solve it by doing it this way: download js. var fs = require('fs'); const http = require('http'); module.exports = function (req, res) { res.setHeader("Access-Control-Allow-Origin",… 
- 
		2 votes2 answers1815 viewsQ: Download files in API Restfull NodejsI have an API I made based on a tutorial, where I can upload files: Server.js var express = require('express') , app = express() , bodyParser = require('body-parser') , multiparty =… 
- 
		1 votes0 answers81 viewsQ: Save dice and then play in BDI have a code where I show the days of the week, so for each day of the week I have 3 shares: 1 - a select with options; 2 - a button that opens a modal to place an observation; 3 - an input… 
- 
		0 votes1 answer553 views
- 
		1 votes1 answer202 views
- 
		-2 votes1 answer41 viewsQ: How do I disable two buttons at once? ANGULARI have two buttons that their ID comes from a database die: <tr *ngFor="let dads of DadosOs"> <td><button type="button" class="btn btn-success but" id="{{dads.NUMOS}} - A" value =… 
- 
		0 votes1 answer223 viewsA: Insert object data by API into DatabaseThrough Angular I sent like this: InsertAPi(dados){ return this.http.post(`${API}/insertNo`, { dados }) } and in API I did so: let insertNo = (req, res, next) => { dados = [] dados = req.body ||… 
- 
		0 votes1 answer223 viewsQ: Insert object data by API into DatabaseI receive an object with the front data, and in the api ta so the middleware: let no = require('../controllers/InsertNo') let insertNo = (req, res, next) => { dados = [] dados = req.body || ''… 
- 
		0 votes1 answer886 viewsQ: Grab id of the button clicked on AngularI have several buttons with the same function and try to get the last id clicked, but always only one id comes. HTML: <div class="container"> <div class="row"> <div class="col-sm">… 
- 
		1 votes2 answers117 viewsA: Reply POST comes emptyin place of: teste(user) { return this.http.post(`api/home`, user) } I resolved so: teste(user) { return this.http.post(`api/home`, {user:user}) }… 
- 
		0 votes2 answers117 viewsQ: Reply POST comes emptyI am making a POST request in my API by my angular project and only empty the result, and by Postman comes the correct data. service ts. : teste(user) { return this.http.post(`api/home`, user) }… 
- 
		0 votes1 answer387 viewsQ: Send xml via POST to APII need to send an xml via post to an api, but it keeps giving the following error: String could not be parsed as XML It keeps sending a string instead of actually sending XML. The code to create… 
- 
		1 votes1 answer475 viewsA: horizontal ion-cardI was able to solve with the answer of @cnotethegr8 in the question: https://stackoverflow.com/questions/35959258/horizontal-scroll-in-ionic-2… 
- 
		0 votes1 answer475 viewsQ: horizontal ion-cardHas some form of ion-card grow horizontally and not vertically? It is populated by data that comes from the api <ion-card *ngFor="let filmes of lista_filmes_popular"> <img… 
- 
		0 votes3 answers635 viewsQ: Add data from arrayI have an array that data comes from the user’s filled form and make a map: dados.map(element=> { var x var number1 = parseInt(element.preco), number2 = parseInt(element.peso) var tota = number1… 
- 
		1 votes1 answer46 viewsQ: Previous button deactivates when clicked on nextI have two buttons that are created according to what comes from the api: <div class="col-2"> <button type="button" class="btn btn-success button-ok botOk" value="${element.NUMOS}"… 
- 
		-2 votes2 answers77 viewsQ: View foreach result out of itIs there any form of data forEach be viewed outside the forEach? I need to see the data from forEach out of it, but every time I do it it only returns the last data, not all data. I have tried using… 
- 
		0 votes1 answer119 viewsQ: Return to incorrect IF conditionI make a request in the api to get some data, and then I foreach and give the result for a variable this.DadosQueTaNaTela soon after I make another request in another api to take the data and do a… 
- 
		0 votes0 answers42 viewsQ: How to do if not repeat the function for anyone who has already reached a numberI make a BD call through the API to see the sales percentage data of the branches of a store, and if the percentage is greater than or equal to 100% I should play a song and change its color to… 
- 
		0 votes1 answer134 viewsQ: Repeated data in html (ANGULAR)I have a *ngFor that fills my html, and this data is fetched from an API, so I use Schedule to reload the data every time it gives seconds = 15. Only that the data is being placed below the old la… 
- 
		0 votes2 answers88 viewsQ: ngFor does not give the expected resultMy ngFor not showing all the data that arrives, but in the console shows all the results. I pull some data from the API and it has a sales and meta data, they come in an array and I use the foreach… 
- 
		0 votes2 answers770 viewsQ: Cannot read Property 'setAttribute' of null com ngForI have an ngFor that adds several strings, and this data comes from an api <p class="teste" *ngFor="let element of objeto_retorno" >Filial {{ element.FILIAL }} = {{ element.TOTAL }} </p>… 
- 
		0 votes3 answers7056 viewsQ: Change background-color when clickI need the button to change color every time clicked, I used Focus but does not bring me the expected result, because after the button is clicked, the user needs to click another corner, so the… 
- 
		0 votes2 answers941 viewsQ: Grab id from clicked button when clicking another buttonI need to make sure that when the user clicks on the options button, it keeps this id value and when you click on another "confirm" button it shows the id of the first button clicked. I tried to do… 
- 
		0 votes0 answers420 viewsQ: Print just by clicking on page buttonThere is a way to put the page content to print only by the cryo button on the page? I have the function in JS function cont(){ window.print(); } HTML <button… 
- 
		5 votes1 answer537 viewsQ: sqlsrv_num_rows does not workI have a site that is being done with PHP + SQL SERVER, and to log in needs client code, and it puts there only that always says that is incorrect, and that is correct. Apparently the… 
- 
		6 votes2 answers764 viewsQ: Automatic click along with full screenI have a website, and on the site the user when logging in will enter a page and this page should be full screen automatically without the user needing to click something. I read that it is not… 
- 
		-1 votes1 answer282 viewsQ: Prohibit direct access to a URL (JS)I made a site, and in it I need to prevent them from entering it by accessing the URL, but I did not create Session in PHP pq login validated with token by jwt with js. Have some safe way to only… 
- 
		0 votes2 answers191 viewsA: Ajax requests with the Fetch API keeps repeatingI managed to solve by playing the empty before starting the function fetch function PostData() { var A1_CGC; A1_CGC = sessionStorage.getItem('cpf'); var inicio, fim, A1_CGC; inicio =… 
- 
		-1 votes2 answers191 viewsQ: Ajax requests with the Fetch API keeps repeatingI make an Ajax Request with the Fetch API: function PostData() { var A1_CGC; A1_CGC = sessionStorage.getItem('cpf'); console.log(A1_CGC) var inicio, fim, A1_CGC; inicio =… 
- 
		0 votes3 answers645 viewsQ: Format date coming from SQL SERVER DatabaseThe date that comes from SQL SERVER comes in the format like this: 20181212. I tried to format, but it only works if it comes in 2018-12-12 format. I place this date inside a table by API I pull… 
- 
		0 votes2 answers1605 viewsQ: Calculate column date - 6 months of current date (SQL SERVER)I have a column in db that is D_EMISSAO and in it has a date yyyyddmm. I have to show the data that are related to column D_EMISSAO if it does not exceed 6 months according to the date D_EMISSAO… 
- 
		1 votes1 answer630 viewsA: Configure API for SQL Server DatabaseWith the help of comments on my question I managed to resolve: const config = { user: "sa", database: "Nomedb", password: "", host: "GUI122", //NOME QUE APARECE ANTES DA INSTANCIA DO MEU SQL port:… 
- 
		2 votes1 answer630 viewsQ: Configure API for SQL Server DatabaseI have an API that I used with Mysql, but I had to switch to SQL Server. Unfortunately I never used SQL Server, I do not know if you need to download something to get. The API was made in JS. The…