Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SFR 5.1e and SDT 5.1j
Message
From
24/02/2004 13:24:21
 
 
To
20/02/2004 19:11:08
General information
Forum:
Visual FoxPro
Category:
Stonefield
Miscellaneous
Thread ID:
00877755
Message ID:
00880385
Views:
33
Hello Doug,

Hi Doug,

I copied/pasted this from another reply


After some testing through the debugger here's what I ended up with.

First nothing is written to QuickFlds in the REPORTS table

So I traced to see why that was the case.

Problem is with oFieldsCollection. The property Count is 0 when tests are made to write to QuickFlds. So basic problem here is can't write to QuickFlds because oFieldsCollection.count = 0 and can't read what was saved in QuickFlds.

Tracing more got me in sfReports: sfReportEngine: SetupDataEnvironment

Line of code:

llOK = .oData.SetupDataEnvironment( this.oFieldsCollection, .oSortCollection)

When I step inside SetupDataEnvironment everything seems correct. Count is not 0. As soon as execution gets out of SetupDataEnvironment then Counts gets to 0.

From the result that I have it looks like there would be more than 1 oFieldsCollection created???

Can you explain this behavior?


Now after more testing here's what I have

Before returning from the line :
llOK = .oData.SetupDataEnvironment( .oFieldsCollection, .oSortCollection)

this.ofieldscollection.cItemClass = sfrfield
this.ofieldscollection.cItemLibrary = sfreports.vcx
this.ofieldscollection.class = sfrFieldCollection


Afer returning from the line :
llOK = .oData.SetupDataEnvironment( .oFieldsCollection, .oSortCollection)

this.ofieldscollection.cItemClass = sfrfield
this.ofieldscollection.cItemLibrary = sfreports.vcx
this.ofieldscollection.class = sfrfieldmetadata

So this shows that there are 2 oFieldsCollection objects. How can I keep that from happening within SFR?


>Hi Denis.
>
>>Perhaps there could be code somewhere that interfere with the sorting. I'll look into that but still if you can guide me to where stuff related to sorting is happening.
>
>The following code in SFRWizard.SetupSteps determines whether the sort page is visible or not:
>
.aSteps[3, 4] = 'This.lHaveFields and This.lAllowSort
>and This.lAllowAnySort and not This.lSelectedGroup'
(Line break inserted for readability).
>
>This string expression is evaluated by the SelectStep method of SFWizardForm (the parent class of SFRWizard). You might want to trace that method and see what the values of the lHaveFields, lAllowSort, lAllowAnySort, and lSelectedGroup properties are.
>
>Doug
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform