Information générale
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Hi, thanks for your help as always!
The form actually refreshes just fine the first time in.
But as we click on records within the grid,
this code:
thisform.textheader.caption = This.Reqtname.text1.value
updates our textheader.caption with the data of the LAST selected record,
not the data of the NEWEST/CURRENT selected record, like we expect.
Shouldn't this code work, why does it lag 1 record behind in the update?
Thanks,
Seth
>Hi!
>
>Page of pageframe is not refreshed until it is activated. You have to refresh it as sonn as it is activated. Better do this using UIEnable event of some control on each page - put this.paret.Refresh() when page is activated.
>
>HTH.
>
>>FoxGuru's
>>
>>I have a form, with multiple pages, and on one of the pages I have a Grid.
>>
>>This Grid is not populated by a view, it is directly-linked to a table.
>>
>>On this Grid, when the user selects a row, I want to take data from that newly
>>selected row and display it on the form.
>>
>>Seems simple, but the data it displays is always the LAST row selected, not the new current record. What is going on here? Is there something I need to refresh? Its like the DB pointer isn't updating...
>>
>>This code is on a grid procedure, under grid object : AfterRowColChange
>>
>>thisform.refresh
>>thisform.textheader.caption = This.Reqtname.text1.value
>>thisform.refresh
>>
>>using this code, it updates the form textheader with the last selected row data, not the new selected row data.
>>
>>THANKS FOR HELPINGGGGGGG!!!
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement