Posts by GustavoSevero • 2,567 points
212 posts
-
0
votes2
answers52
viewsQ: How to take data from within a foreach array in php
I am receiving data from a registration form. One of these data is an array... And this array of objects, (Dates), can have numerous positions/quantities. In the image above, I tested with these 2.…
phpasked GustavoSevero 2,567 -
0
votes2
answers2397
viewsA: How to fix APK error completely hidden?
in my case I have changed/changed this versionCode, but keeps giving the same warning. So, now I’ve deleted the apks I’ve already gone up to see if that alert goes away.
androidanswered GustavoSevero 2,567 -
-1
votes3
answers42
viewsA: How to count records in more than one table?
I found a solution SELECT ( SELECT COUNT(*) FROM client ) AS qttClient, ( SELECT COUNT(*) FROM parking ) AS qttParking, ( SELECT COUNT(*) FROM clientVehicle ) AS qttClientVehicle FROM dual…
-
-3
votes3
answers42
viewsQ: How to count records in more than one table?
I have these 3 tables: I want to mount a SELECT that counts the number of records for each of them. SELECT COUNT(client.idClient) AS clientQuantity, COUNT(clientVehicle.idClientVehicle) AS…
-
1
votes1
answer73
viewsQ: Trying to send data to the api in React Native and php
I’m trying to send my app registration data in React-Turn to my PHP api. Follow my code React: const handleSignUp = useCallback(async (data: object) => { try { await…
-
0
votes1
answer28
viewsQ: Error while listing data in Angularjs
Hello! I am listing data and at the same time is pointing me error, but I do not know how to correct. The data being listed comes like this: Follows my code <div id="inputGrupo"> <select…
-
-1
votes1
answer35
viewsQ: How to change image name with python?
I want to change/change the name of a set of images. I have the python code that does this, the problem is that it generates as follows "123image.jpg" and that wanted "image123.jpg". How to adjust…
pythonasked GustavoSevero 2,567 -
0
votes1
answer511
viewsA: How to take the parameter passed in the function and take the same function in React-Native?
I got... On the button do: <TouchableOpacity style={{marginBottom:20}} onPress={ ()=>{ this.procurar('Restaurante') } }> And not function: procurar(arg){ let cidade = this.state.cidade; let…
react-nativeanswered GustavoSevero 2,567 -
-1
votes1
answer511
viewsQ: How to take the parameter passed in the function and take the same function in React-Native?
Hello I want to pass a value for a function in a touchableOpacity and take this value, within the function, as I should proceed? Follows my codes: import React, { Component } from 'react'; import {…
react-nativeasked GustavoSevero 2,567 -
-1
votes1
answer40
viewsQ: Why do the form data disappear when pulling the zip code?
I made a data editing screen, and the problem that is occurring is that when I put the zip code the address data appears, but the data, already filled out disappear! Can someone help me? HTML:…
-
-2
votes1
answer34
viewsQ: Editing day with Angularjs?
I have a screen where register days, times, among others and a screen to edit this data, if necessary. When I click on the button to edit such date I get the data right. The point is that on the…
-
0
votes1
answer36
viewsQ: Why isn’t $routeParams bringing the id?
I’m using $routeParams.idunidade to bring from another screen the id of a unit but the idunidade is always "Undefined" and I can’t understand why, because I’ve used it and it always worked! Will the…
angularjsasked GustavoSevero 2,567 -
3
votes0
answers38
viewsQ: What is this error when running php Artisan migrate
Hello, I created an application with Laravel 5.7 and running php Artisan migrate shows this error What this error means and how to correct? Follow my.php database <?php return [ 'default' =>…
-
1
votes1
answer44
viewsQ: Compile "com.android.support:appcompat-v7:27.1.0" error
This message appears on the Android Studio console Configuration 'Compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be Removed at the end of 2018. For more…
android-studioasked GustavoSevero 2,567 -
0
votes1
answer30
viewsQ: Why can’t I display the value in the print?
I want to display in the console the value of the name variable that appears is "(lldb)", why? @IBAction func botaoAcesse(_ sender: Any) { let cpf = self.campoCPF.text let senha =…
swift-3asked GustavoSevero 2,567 -
0
votes1
answer184
viewsA: How to get back an HTTP POST (IOS SWIFT)
You want to format the return data of the api as JSON Example: $return = array( 'sucesso' => 1, 'usuario' => $usuario ); echo json_encode($return);…
-
0
votes1
answer1603
viewsQ: How to use Moment.js with date from an input date?
I have the following form: <form name="formConsultaPeriodo"> Data Inicial <input class="form-control dataIni" type="date" name="dataIni" ng-model="consulta.dataInicial" required /> Data…
-
0
votes1
answer308
viewsQ: How to catch an object inside another object in php?
I have an object inside another object. How do I catch this second object? Follow picture: $scope.calcular = function(valor){ valor.receitaMediaMensal = $scope.receitaMediaMensal; valor.idempresa =…
phpasked GustavoSevero 2,567 -
1
votes1
answer40
viewsQ: How to take data from two inputs without using form?
I want to do something like in Excel. I have two inputs and in each I type values. By pressing ENTER I want to capture the entered values, how can I do this? OBS: I’m using Angular 1. <div…
angularjsasked GustavoSevero 2,567 -
0
votes1
answer827
viewsQ: How to make a SELECT with SUM and DISTINCT?
I need to make a select in the bank using sum and distinct. I tried that: SELECT DISTINCT `conta_idconta`, SUM(valor) AS ValorTotal FROM contaSaida WHERE conta_empresa_idempresa=1 AND…
-
1
votes1
answer53
viewsQ: Get HTML5 formatted date
I have the following scenario. A form with two date fields And when I click search, the data is in this format How can I get the date in the "yyyy-mm-dd" or "dd-mm-yyyy" format? Without this…
-
0
votes1
answer328
viewsQ: How to get value from a SQL in php?
I have the following code <?php $buscaValorTotalSaldoInicial=$pdo->prepare('SELECT SUM(valor) AS vTotal FROM saldo WHERE data=:data AND empresa_idempresa=:id_empresa');…
-
2
votes1
answer560
viewsQ: Date format error with input date
I have a date field form, date. At 1a. time I select a date and click save, this warning appears on the console: My HTML: <div class="col-md-12" ng-controller="SaldoCtrl"> <form…
angularjsasked GustavoSevero 2,567 -
-4
votes1
answer886
viewsQ: How to format value in php?
I have the following code <?php ini_set('display_errors', true); error_reporting(E_ALL); include_once("con.php"); $pdo = conectar(); $id_empresa = $_GET['id_empresa']; $data = $_GET['data'];…
phpasked GustavoSevero 2,567 -
0
votes0
answers71
viewsQ: How do sum with php or SQL?
Hello I want to add the total values of the result of a PDO query. However, when executing the command the following message appears in the console: Object of class Pdostatement could not be…
-
2
votes2
answers63
viewsQ: How do I move the company id from angular to php?
Hello I need to pass the angular company id to the php api. How do I do? Follows the code: Angular: app.controller('UploadCtrl', ['$scope', '$window', 'Upload', function($scope, $window, Upload) {…
-
-3
votes1
answer70
viewsQ: "D/Error.Response: com.android.Volley.Parseerror: com.google.gson.Jsonsyntaxexception: Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $"
I have a listview that shows establishments in the database. Until today, in the morning, it was displayed and now no more and this error/ warning appears on the console D/Error.Response:…
androidasked GustavoSevero 2,567 -
3
votes2
answers2044
viewsQ: How can one Fragment call another Fragment?
I have an app with a screen and on this screen there is a Fragment. In this event there is a button that, when clicked, I want to call another Ragment and that stays/replaces the Ragment button.…
androidasked GustavoSevero 2,567 -
1
votes1
answer63
viewsQ: Problem with Fragment
I created a Fragment and I’m trying to call it when I click on a button, but it gives an error and it appears in the console com.ample.Gustavo.easypasse.Reloade@30d409a0 must implement…
-
1
votes1
answer48
viewsQ: How to pass data from one screen to another after function executed
After running the function of saving data in the database, how can I send the idcep to another screen/Viewcontroller? I have the following code: @IBAction func salvarEndereco(_ sender: Any) { let…
swift-3asked GustavoSevero 2,567 -
0
votes0
answers434
viewsQ: Failed to allocate a 1850507580 byte allocation with 1048480 free bytes and 382MB until OOM
I’m putting a 728k image in an Imageview and when I run the app in android studio gives this stick in the application: java.lang.Outofmemoryerror: Failed to allocate a 1850507580 byte allocation…
-
0
votes2
answers66
viewsQ: How to create message sending method in Tabs?
I’m creating an app, in android, that has tabs. Each tab is a chat room. I took an example of a video about how to create app with Tabs, where the author, in addition to creating the app using a…
androidasked GustavoSevero 2,567 -
-1
votes1
answer148
viewsQ: My app does not return JSON data
I’m making an app and in a part of it the user can update the login data, just enter the screen that the data is loaded and filled, automatically. The problem is that in fact this is not happening!…
-
0
votes1
answer80
viewsQ: Dialog cannot be Applied
I’m trying to use a dialog but the following message appears Follows my code package com.example.gustavo.vigilantescomunitarios; import android.app.Dialog; import android.os.Bundle; import…
androidasked GustavoSevero 2,567 -
3
votes4
answers702
viewsQ: Column 'idusuario' in Where clause is ambiguous
I’m trying to make a select with inner join. Rotating the select in the phpmyadmin the ERROR that returns is this: Column 'idusuario' in Where clause is ambiguous <?php $idusuario =…
-
0
votes2
answers21
viewsQ: What is this error "D/TAG: Return...: [Lcom.example.Gustavo.domanda.Consultarpojo;@11c78941"
I have the following code that should return a data list package com.example.gustavo.domanda; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import…
androidasked GustavoSevero 2,567 -
3
votes2
answers4139
viewsA: How to set placeholder in Edittext?
Go to the Edittext properties and search for Hint. It works as a placeholder.
-
6
votes3
answers1479
viewsQ: What is this "Could not find method schedule(View) in" error?
I’m calling a method, when I click the button and this error appears, but I don’t know what it means: java.lang.Illegalstateexception: Could not find method to schedule(View) in a Parent or Ancestor…
-
0
votes0
answers50
viewsQ: I cannot receive the data in my api
I have the following method to send an object to my api: public void btnCadastrar(View view) throws JSONException, IOException { final EditText edtNome = ((EditText) findViewById(R.id.edtNome));…
-
1
votes1
answer273
viewsQ: How do I send a JSON object from my android to php?
I need to send a JSON object from my android app to my php api. How can I do this? public void btnCadastrar(View view) throws JSONException, IOException { final EditText edtNome = ((EditText)…
-
1
votes1
answer126
viewsQ: How to send Android json object to API?
I need to mount a json object to send some data to my api. Here’s how I’m doing. public void btnCadastrar(View view) { final EditText edtNome = ((EditText) findViewById(R.id.edtNome)); final…
androidasked GustavoSevero 2,567 -
0
votes2
answers380
viewsQ: How to assign data from an object to editText on Android?
I need to assign in Edittext fields, from my form, the data of an object. For example, I’m using an API that searches the user’s address for viaCep. I’m already able to return the data, now I need…
androidasked GustavoSevero 2,567 -
-1
votes1
answer450
viewsQ: How do I get the Calendar date on Android?
I got it inside the onCreate: final DatePickerDialog.OnDateSetListener date = new DatePickerDialog.OnDateSetListener() { @Override public void onDateSet(DatePicker view, int year, int monthOfYear,…
-
0
votes2
answers1220
viewsQ: "Expression expected" error
I took it that code which to some extent worked. But the method updateLabel I can’t do it because of the problem: I need to get the selected calendar date. I’m using a way that by clicking on…
-
1
votes1
answer548
viewsQ: How to mount an ng-repeat using "track by"?
I have the following HTML <div class="col-md-4"> <div class="exibeUnidades"> <table width="400"> <thead> <tr> <td…
-
0
votes1
answer82
viewsQ: Getting the time typed in javascript
Person, I have a simple form where the user should type the time. <form name="formAgendamento" class="formAgendamento"> <label>Dia</label> <input class="form-control dia"…
-
1
votes1
answer589
viewsQ: How to get the results of two tables by consulting one with PDO?
I have the establishment table, unit table and professional table. In the unit table, I have the idestablishment. On the professional table, I have the skill. I need to pull all the professionals'…
-
2
votes2
answers52
viewsQ: Error in Angularjs when save date, why?
I have the following HTML code: <form name="formProfissional"> <label>Data</label> <input class="form-control" type="date" name="dia" ng-model="agenda.dia" required>…
angularjsasked GustavoSevero 2,567 -
1
votes1
answer1181
viewsQ: How popular dropdown 2 based on dropdown 1 with angular
I want to use two dropdowns in my HTML5 As I select in dropdown 1, it displays the respective data in dropdown 2, as in this link I searched the documentation of the angle that that you’ve come very…
-
0
votes1
answer35
viewsQ: Why can’t I get the form data?
Something really weird is happening, first time this happens. I have a registration form. when I click save, the console appears 'Undefined' and aligns... Impossible to be 'Undefined' because there…