Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: grid initial refresh

$
0
0
Re: grid initial refresh
FoxInCloud
Re: grid initial refresh
Nov. 30, 2012
02:14 am
3NN04T63BShow this entire thread in new window
Gratar Image based on email address
From:Thierry Nivelet (FoxInCloud)
To:Tuvia Vinitsky
does .RecordSource have a primary or candidate key?
If not, can you add one?

Firebug does not show any errors. In the .Load of the form I open the table and set the order. I set the order again in the .Init of the form and do a refresh. The grid has the data sources set at design time.

What happens is

1. The form is opened from a menu "IntuiCat.FormDisplay(event, 'sar_clst_web.scx', '.t.')".
2. The form opens normally.
3. The xml file is created with the table in natural order, not indexed order. I think it is supposed to do that?
4. The VFP form in debug displays correctly.
5. The connection between the grid and the underlying record number is actually still working. If I select the fifth rows of the grid, I get the VFP data from the fifth indexed record. However since the display is all wrong, to the user the data on the fifth record appears as the fifth record in natural order, since that is what the XML file has.
6. If I call a childform and open it, then click back to the orginal form with the grid, when the form gets the focus the display is correct. I do not have enough forms to confirm, but it actually seems that as soon as the form with the grid loses focus the display becomes correct.


can you check in firebug if *.xml files load properly?
from what you describe, it should

then we can suspect some js error
did you run this page with 'break on all errors' enabled in firebug?

I have grids all over, but I cannot figure out wy this one, when first instantiated on a form, will not display the records correctly. While the VFP form in debug looks fine, there are just rows of blank data. However once I click on a header to sort the data, my grid jumps back to life.




Thierry Nivelet (FoxInCloud)
Never explain, never complain (Queen Elizabeth II)


Viewing all articles
Browse latest Browse all 10393

Trending Articles