FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV Mobile 2024
→
Issues with Data and Refreshing
Issues with Data and Refreshing
Débuté par RobertLEO, 04 mar. 2020 05:27 - 5 réponses
Connectez-vous…
RobertLEO
#1
Membre enregistré
36 messages
Posté le 04 mars 2020 - 05:27
Hello guys, I am currently having an issue with data and refreshing, currently my app is able to add/remove data from the database, however it would take a while for that data to appear in the app itself (whilst it was instantaneous in the database) so I reckon that this is a refresh issue, but after activating pull to refresh it doesn't do that, so any ideas on what am I doing wrong?
Signaler
0
0
ARV
#2
Membre enregistré
498 messages
Popularité : +8 (8 votes)
Posté le 04 mars 2020 - 14:32
Hi RobertLeo
maybe you need to add some code on the table or Looper (need to know what are you using)
on the event called requesting refresh by pull or something, I think it's called not sure.
Maybe you need to excute again your query (if you are using a link query with your control) and then show it with the functions:
LooperDisplay
(
LOOP_Example
)
TableDisplay
(
Table_Example
)
or if the table or Looper you are using it's link directly to the table of your DB then you need execute these functions:
LooperDisplay
(
LOOP_Example
)
TableDisplay
(
Table_Example
)
Hope these could help you.
I use these refresh feature once and this was I have to do on that time to make it work.
--
Best Regards
ARV
Signaler
0
0
RobertLEO
#3
Membre enregistré
36 messages
Posté le 05 mars 2020 - 04:37
ARV wrote:
Hi RobertLeo
maybe you need to add some code on the table or Looper (need to know what are you using)
on the event called requesting refresh by pull or something, I think it's called not sure.
Maybe you need to excute again your query (if you are using a link query with your control) and then show it with the functions:
LooperDisplay(LOOP_Example)
TableDisplay(Table_Example)
or if the table or Looper you are using it's link directly to the table of your DB then you need execute these functions:
LooperDisplay(LOOP_Example)
TableDisplay(Table_Example)
Hope these could help you.
I use these refresh feature once and this was I have to do on that time to make it work.
--
Best Regards
ARV
forgive my ignorance, but aren't those two lines of code the same? Or do I place them at different areas?
Signaler
0
0
RobertLEO
#4
Membre enregistré
36 messages
Posté le 05 mars 2020 - 07:42
ARV wrote:
Hi RobertLeo
maybe you need to add some code on the table or Looper (need to know what are you using)
on the event called requesting refresh by pull or something, I think it's called not sure.
Maybe you need to excute again your query (if you are using a link query with your control) and then show it with the functions:
LooperDisplay(LOOP_Example)
TableDisplay(Table_Example)
or if the table or Looper you are using it's link directly to the table of your DB then you need execute these functions:
LooperDisplay(LOOP_Example)
TableDisplay(Table_Example)
Hope these could help you.
I use these refresh feature once and this was I have to do on that time to make it work.
--
Best Regards
ARV
odd thing I noticed about pull to refresh even with this code, but it doesn't seem to update the loopers and/or tables and we had to switch off the app to see the new entry
Signaler
0
0
ARV
#5
Membre enregistré
498 messages
Popularité : +8 (8 votes)
Posté le 05 mars 2020 - 14:15
Hi RobertLEO
How do you updated your table or Looper?
what I did recently it's to execute exact same code to updated my table/looper on the event of refreshing by pull and it works.
Now make sure you put the code on the event called "Refreshing LOOP_Example by pull/release".
Another thing, how do you delete data of your DB and refreshed on your Table/Looper?.
--
Best Regards
ARV
Message modifié, 05 mars 2020 - 14:16
Signaler
0
0
ARV
#6
Membre enregistré
498 messages
Popularité : +8 (8 votes)
Posté le 05 mars 2020 - 14:59
Hi RobertLEO
This is the source it has all the info about pull to refresh:
https://help.windev.com/en-US/…
--
Best Regards
ARV
Signaler
0
0
→ Revenir à WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte