FoxInCloud
No refresh in a texbox inside a grid
Gravatar is a globally recognized avatar based on your email address. No refresh in a texbox inside a grid
  Gilles Lajot-Sarthou
  All
  Oct 16, 2019 @ 12:03am

Bonjour,

When in a valid () method of a textbox of a column of a grid, the value of a controlsource (like 'v_travauxreparation.quantite') is programmatically changed, the new value is not displayed in HTML whereas in the desktop it is correctly displayed:

Example: Grid.qte.textbox .controlsource = 'v_travauxreparation.quantite'

  • v_travauxreparation.quantite = 1
  • Grille.qte.textbox.value displays 1
  • entry 6 in grid.qte.textbox.value
  • grid.qte.textbox.valid () change by programming v_travauxreparation.quantite = 1
  • In the IDE FoxInCloud grid.qte.textbox.value displays 1
  • In the Internet browser grid.qte.textbox.value keeps and displays the entered value 6 instead of displaying 1 To see the display go to 1 in the grid.qte.textbox cell, you have to add another record in the v_reparations view which has the effect of reloading the HTML content correctly.

How can i do ? Amicalement

Gravatar is a globally recognized avatar based on your email address. re: No refresh in a texbox inside a grid
  FoxInCloud Support - Thierry N.
  Gilles Lajot-Sarthou
  Oct 17, 2019 @ 03:18am

Bonjour Gilles

In grid.qte.textbox.valid(), have you tried to change grid.qte.textbox.value instead of v_travauxreparation.quantite (or both) ?

Gravatar is a globally recognized avatar based on your email address. re: No refresh in a texbox inside a grid
  Gilles Lajot-Sarthou
  FoxInCloud Support - Thierry N.
  Oct 17, 2019 @ 08:06am

Bonjour Thierry,

In the valid() method of the textbox after calling the methode thisform.ventiletotaux() who change the v_travauxrepatation.quantite, i have THIS.value = v_travauxreparation.quantité to force the change.. It does not care off. In ventiletotaux() the other texbox.value of the grid are correctly updated and displayed..

Amicalement

Gravatar is a globally recognized avatar based on your email address. re: No refresh in a texbox inside a grid
  FoxInCloud Support - Thierry N.
  Gilles Lajot-Sarthou
  Oct 18, 2019 @ 12:55am

Too hard to understand… please provide code abstracts instead.

Upon each request, FoxInCloud updates the grid display based on (.recordSource) contents. In your case .recordSource is probably not updated the way you want.

Gravatar is a globally recognized avatar based on your email address. re: No refresh in a texbox inside a grid
  Gilles Lajot-Sarthou
  FoxInCloud Support - Thierry N.
  Oct 18, 2019 @ 09:03am

Hi Thierry, Meri pour out I call you next week..

Amicalement

© 1996-2019