Posts by Renata • 576 points
35 posts
-
3
votes1
answer50
viewsA: Angular: error in model with object listing
Before the push, associate an empty array to language: this.myBook.language = []; this.myBook.language.push(this.myLanguage);
-
0
votes1
answer128
viewsA: Remember Login with Storage Ionic
Your Komponent is always targeting to the Homepage. You need to include a if to check whether the fbstorage is not empty. initializeApp() { this.platform.ready().then(() => { let env = this;…
-
1
votes1
answer145
viewsA: Get Paypal Transaction ID on Ionic
Whereas the answer is in the informed JSON format, you can capture the id as follows: this.payPal.renderSinglePaymentUI(payment).then((res) => { console.log('pagamento efetuado');…
-
2
votes1
answer108
viewsA: App wiping data from main page, while switching to secondary pages (IONIC 3)
When you use setroot() to navigate to the pages SelectProductPage and SelectClientPage, you "lose" the data you had on the page OrdersPage. So that this doesn’t happen, there are some options: You…
-
0
votes2
answers1014
views -
0
votes1
answer111
viewsA: Save a function’s results to an Ionic variable 3 + Firestore
As the function is asynchronous, the second console.log and the return are executed before the function this.afs.collection(this.pedidos).doc(id).collection(this.itens). doc(item).ref.get(). To…
-
0
votes2
answers98
viewsA: <ion-tabs> is not rendered
You can call the page in app.component.ts using this.nav.setRoot("FooteerTabPage");.
-
0
votes1
answer224
viewsA: Perform an action when the 'Accepted' button is pressed
You need to include the action you want within the handler of the "I Accept". For example, to navigate to the Homepage, you can include this.navCtrl.push("HomePage");. function showConfirm() { const…
-
2
votes1
answer710
viewsA: Passing data to a modal
HTML is searching for the variable regioes and not the myParams. In the constructor, change this.myParam = navParams.get('myParam'); for this.regioes = navParams.get('myParam');.…
-
0
votes1
answer255
viewsA: Ionic input, only numbers
You can use type="number" in the <ion-input>. <ion-item> <ion-input type="number" placeholder="Informe um número"></ion-input> </ion-item>…
-
0
votes1
answer204
viewsA: Remove white space from ion-item
Change the *ngFor to the <ion-item>. Is in the <ion-list>. <ion-list class="card-pessoa" no-padding> <ion-item *ngFor="let associado of associados" no-padding…
-
0
votes1
answer180
viewsA: Bring only firebase-specific data
Try to include the user id in the function this way: getListaUsuario() { var userId = firebase.auth().currentUser.uid; return firebase.database().ref('/pedidos/' +…
-
2
votes2
answers1717
viewsA: Ngmodel with angular checkbox
As I’m seeing you need that value true or false is associated with the index of the array, I suggest something like the code below, assuming the values of the this.operador.tabela_perm are always in…
-
0
votes2
answers532
viewsA: Capture and create object array by Ionic 3 checkbox
Instead of capturing checkbox values in ionchange, you can capture on button, in function escolherProdutos(), for example. You can check all your products and identify which ones are selected, then…
-
1
votes2
answers136
viewsA: How to update a field in Ionic automatically?
You can create a function in the file . ts that calls the function local() x in x minutes. In the example below, I call every 3 minutes. This parameter you set in the setInterval. constructor() {…
-
3
votes1
answer146
viewsA: Pass database content from one page to another
You can pass as a parameter in navigating between pages. This would be the code to call the next page: this.navCtrl.push("PaginaDetalhesPage", {itemSelecionado: item}); On the page opened with the…
-
1
votes2
answers43
viewsA: getVersionNumber() returns me Undefined on Ionic
Include Alert within the function. As it stands, it may be responding before checking the version. ngOnInit(): void { let versaoApp; this.appVersion.getVersionNumber().then(version => { versaoApp…
-
0
votes2
answers499
viewsA: How to make a Mask input by simulating money with Ionic 2?
For the number of decimals, you can use the html the very filter of angular: {{ value_expression | number [ : digitsInfo [ : locale ] ] }} In your example, you could use: {{ 1000 | number : '.2' }}…
-
-1
votes1
answer267
viewsA: Remove White Space Ionic 3
If what you need is that the "I want" button is not below the text, I have two suggestions: 1- Include item-end on the button: <button ion-button item-end…
-
0
votes1
answer37
views -
0
votes2
answers278
viewsA: Http post request on Ionic does not send data as x-www-form-urlencoded
The x-www-form-urlencoded must be entered in the header. Try the following: public login(credenciais):Observable<any>{ const formData = new FormData() formData.append('email',…
-
0
votes1
answer183
viewsA: I have a problem with Ionic3
Ionic 3 uses Lazy loading to load pages, which helps improve the application’s opening time. I’m seeing from the code on the Feed page that you created Ionic appeal, probably from the command line,…
-
0
votes2
answers33
viewsA: Ionic: Make the confirm button return to the first form error
Instead of using the function this.content.scrollToTop(), you can use this.content.scrollTo(x, y, duracao). To find the y position of the element, you can use the property offsetTop.…
-
0
votes1
answer225
viewsA: Add value to an input as per selection of an angular/Ionic combobox
I suggest you create another field to include the total value so that no circular reference occurs. For example:…
-
3
votes1
answer1910
viewsA: Ionic - Change app top bar color
You can change the color of the top bar and fix the bar on IOS with the plugin cordova-plugin-statusbar. Include in config.xml the property StatusBarOverlaysWebView to change the color and the…
-
0
votes1
answer1469
viewsA: Change color of icon
You can change the color by the file Theme/variables.scss, but only found the solution for IOS. Example by changing the color to red: $segment-button-ios-text-color: red; Another option can be…
-
1
votes1
answer1206
viewsA: How to iterate array within an angular ngFor/Ionic
The question.historico is also an array. You need to iterate this array. Something like: <div class="message" *ngFor="let historico of pergunta.historico> {{historico.pergunta_historico}}…
-
1
votes1
answer450
viewsA: CORB/CORS error when requesting google api
This happens because before the reunion you make, a request is made "preflight" type OPTIONS. This issue can be fixed in the CORS settings on the server, but when you don’t have access to the…
-
1
votes1
answer244
viewsA: Select with Inner Join
You can include the GROUP BY, grouping together the search results. SELECT co.id,co.descricao,ca.potencia_atual from comodo co INNER JOIN consumo_atual ca ON ca.Comodo_id = co.id WHERE co.Usuario_id…
-
0
votes1
answer385
viewsA: White screen on IOS startup
On the Ionic page, there is an explanation that one of the causes may be the incorrect installation of the platform. https://ionicframework.com/docs/wkwebview/ If this is the problem, the correction…
-
1
votes2
answers1823
viewsA: VBA - How to search words from one list in another and point "Found"
The code below goes through the column C of plan2 looking for the words in column A of plan1, writing in column D of plan2 "found", if you have found any of the words or "hidden", if you have not…
-
0
votes1
answer298
viewsA: Consultation with Ionic and firebase
This happens because you are called this within a function. Include a variable that receives the contents of this before the function and use this variable in getItens. Try to change the function…
-
2
votes1
answer66
viewsA: Saving file automatically VBA
To save the file itself in xlsm format in the folder you created, you can use the Workbook Saveas method. fname = (sCaminho & "\" & Format(data, "yyyy") & _ "\" & Format(data,…
-
1
votes1
answer871
viewsA: Copy data from one column (B), to another sheet, if column condition (F) is met. excel
You can try the following code, which checks the contents of the F column of the sheet "proposals" and if it equals "Accepted" or "Sent", copies the value of the B column of the sheet "proposals" to…
-
0
votes1
answer37
viewsA: Error calling variable outside function
Since the function is asynchronous, the.log(rtn) console is running before receiving the value. I suggest the following amendment: var rtn = null; gapi.client.drive.files.list({ q: "mimeType =…