Posts by Gaspar • 375 points
28 posts
-
2
votes4
answers431
viewsA: Dynamically change class
You are changing a variable redName that is being used in an entire array returned in the service. Getting all Danger or light class. For you to compare each item separately, it would be interesting…
-
1
votes1
answer741
viewsA: Changing parameters to Modal
I do not understand if this is the case, but I believe that you want to open a modal in another component and is not receiving the parameters correctly. In the calling component you use this data:…
-
0
votes1
answer242
viewsA: REACT - Datepicker error
Try to use the component as it says in the documentation by importing the component and referencing it. import DatePicker from 'react-jqueryui-datepicker'; function changeHandler(e){ //e is a…
-
2
votes1
answer87
viewsA: How to limit tag insertion with React Select
By the link I commented you would do so with this your select const MAX = 100; // CONSTANTE DO COMPONENTE //... handleChange = (e) => { if (this.state.value.length >= MAX) { // TRATAR TAMANHO…
-
0
votes1
answer41
viewsA: How do I disable two buttons at once? ANGULAR
Take a look if it helps you ts: const desabilitarBotoes = false; export class Classe { metodoNoMeioDoCodigo() { if (algumaCoisa) { this.desabilitarBotoes = true; } } } html: <button id="botao1"…
-
0
votes2
answers2054
viewsA: Format Angular Date
If you have a recent version (5.5 forward if I am not mistaken), as exemplified in Pipes documentation, you need to use Pipes this way: <p>The hero's birthday is {{ birthday | date:"MM/dd/yy"…
-
-1
votes1
answer902
viewsA: How to pick up the text of a select with formBuilder? - Angular 6
No ts: objeto: any; In html: <select id="ProductName" class="form-control" formControlName='ProductName' autofocus #focusHere (change)="retrieveID()" [(ngModel)]="objeto"> This is pretty basic…
-
1
votes2
answers1947
viewsA: How do I manipulate 3 Checkbox in Angular 2?
All you need is on this page, what you need is to put the three values in an array and make a *ngFor, at the end you will have an array where each index will have true or false. The sample code of…
-
0
votes3
answers1253
viewsA: How to set the first value in the combo?
To work with select in Angular2 you need to put the directive compareWith and if you need to have a blank initial option add outside the ngFor. In your case it would look like this: <div…
-
0
votes1
answer460
viewsA: Login page
I had this same problem at Adminlte, for some reason the size of the div login-box is not going to the end of the browser. I just switched the element body of index.html for this: <body…
-
0
votes1
answer21
viewsA: Does precedence in attribute/event statements in Tags make a difference? Angular2+
The order of attributes does not matter, they are part of the same array of attributes. What may be happening is that since the directives are with bind, it makes one attribute depend on the other.…
-
0
votes1
answer1067
viewsA: Percentage mask at angle
To use Pipes Angular 6 is required to use the bind correct data. As explained in documentation, the variable value must be a number and the rating used {{ value | percent}}. In your case it would be…
-
0
votes1
answer85
viewsA: Cannot read Property 'token' of Undefined when receiving angular localstorage object
You need to declare the variable localstorage before. To follow an example: import { LocalStorageService } from 'ngx-webstorage'; export class LoginComponent implements OnInit { credenciais: any;…
-
0
votes1
answer527
viewsQ: "WARNING in Duplicated path in loadChildren Detected During a rebuild." duplicated paths
What could be wrong to lead to warn? WARNING in Duplicated path in loadChildren detected during a rebuild. We will take the latest version detected and override it to save rebuild time. You should…
-
1
votes1
answer527
viewsA: "WARNING in Duplicated path in loadChildren Detected During a rebuild." duplicated paths
There are some reasons I found for the warn. Was reported in Issue 8722 of angular-cli but I found one beyond these responses that adjusted. lazyModules in angular.json this was the reason I spent a…
-
0
votes1
answer226
viewsA: What are Good Practices for Reading Firebase Data and Inserting into Activitys?
What are the best practices for creating a Java Class for Firebase and streamline the code, so it serves for most classes? I use this class to pull the reference from the DatabaseReference and of…
-
0
votes1
answer68
viewsA: Broadcastreceiver in notifications
The documentation of Broadcasts is here. Inside the page has exemplary implementations. <receiver android:name=".MyBroadcastReceiver" android:exported="true"> <intent-filter> <action…
-
0
votes1
answer199
viewsA: How to open an Activity from a java class?
I advise you to use these methods within your Activity even. Try changing this class method Firebase.class public void writeNewUser(final Activity activity, final Context activityContext, String…
-
1
votes1
answer60
viewsA: Android Studio - About Scrollview
what begins upon the <VideoView> the <ScrollView>? If this is it, you need to separate the components so that one stays below the other using the RelativeLayout and the…
-
1
votes1
answer74
viewsA: Shared preferences saving whole wrong
Try it like this: private String KEY_CODIGO = "KEY_CODIGO"; SharedPreferences.Editor editor_Codigo = oCodigo.edit(); editor_Codigo.putString(KEY_CODIGO , pUsuario.getCodigo());…
-
1
votes1
answer18
viewsA: Mode of execution of the Activity
Hello, this component that opened as in the image is called Alertdialog, the default dialog takes the fonts and the default layout of android, to make a custom Dialog that even in the image follow…
-
1
votes2
answers114
viewsA: Alternative to the Alarmmanager
I believe there is a misunderstanding in the understanding of the functioning of AlarmManager. You do not need to control the time that has passed, or the time that is missing. The tool uses the…
-
0
votes2
answers1957
viewsA: background image of android screen
This error usually occurs when your android:background is very large. Do the test to decrease the image.
-
0
votes2
answers216
views -
0
votes1
answer200
viewsA: How to use Files.move with Java?
The use of the method Files.move() is: Path sourcePath = Paths.get("data/logging-copy.properties"); Path destinationPath = Paths.get("data/subdir/logging-moved.properties"); try {…
-
0
votes1
answer162
viewsA: Insert foreign key Hibernate
According to this answer, you need to put the signature to auto increment the Ids of your Entity. Utilize @GeneratedValue(strategy=GenerationType.IDENTITY) in the fields that are @Id that will…
-
1
votes2
answers190
viewsA: Check connection at every instant
First you need to map a action on Androidmanifest.xml: <action android:name="android.net.conn.CONNECTIVITY_CHANGE"/> Then it will be possible to create a receiver so that you have an action to…
-
4
votes2
answers498
viewsQ: Check values with 0 included in Count() even if they do not have values
I need to consult the number of banknotes issued with template 55 to create a report. The problem is that I’m needing to put zeroed values in the quantity column even though it has no value at all.…