Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to set the order with header
Message
From
12/04/2002 18:16:52
 
 
To
12/04/2002 18:09:28
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00644506
Message ID:
00644584
Views:
26
Here is what I did

in CDE AfterUpdateAll


LPARAMETERS cworkarealist

set collate to "GENERAL"

llSuccess = cursorsetprop('Buffering', 3 , "CursorSection") && row buffered
select CursorSection
index on SectionName + DeptName tag SN
index on DeptName + SectionName tag DN

*!* * back to table buffered
llSuccess = cursorsetprop('Buffering', 5 , "CursorSection")





In the click method of my grid I have the following code

THISFORM.oCDE.CurSorSection.SetOrder('DN')
thisform.pgf.page2.grid1.refresh()



When I click on the header of the grid I receive the following error message

Error #26 in Setorder line 6
"SET ORDER TO TAG (m.cOrder) IN (THIS.cWorkarea)"
Table has no index order set.

Call Stack:
3 Cdesection.Cursorsection.Cmdataaccess.Setorder (..\common50\cmdataa.vct)
2 Cdesection.Cursorsection.Setorder (..\common50\cmdata.vct)
1 Formsection001.Pgf.Page2.Grid1.Column1.Header1.Click (source\section.sct)

Do you understand what could be wrong here?




>Denis:
>
>
>thisform.cmdatamanager.setorder(cOrder, cWorkarea)
>
>
>Remember that from the form, the link back to the CDE is usually through the datamanger.
>
>HTH
>
>-=Gary
>
>
>>CodeMine 7.0 RC2
>>
>>In the CDE I defined the indexes for my view
>>
>>Now how do I set the order when the user click the header in a grid.
>>
>>I know it's in click event but how di I specify the tag? (because it has to be taken from the cde)
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform