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
Bonjour Gilles
In grid.qte.textbox.valid()
, have you tried to change grid.qte.textbox.value
instead of v_travauxreparation.quantite
(or both) ?
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
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.