Information générale
Catégorie:
The Mere Mortals Framework
All,
OK, here's the scoop.
In the cDataEnvironment class the views are collected using the
AMEMBERS(laCursors, This, 2) command. This command returns the object names alphabetically.
I replaced the AMEMBERS command in the cDataEnvironment.Init and cDataEnvironment.OpenTables methods with the following code
LOCAL ARRAY laCursors[1]
IF ! EMPTY(This.ControlCount)
LOCAL lcObjName,liTabIndex,liArrayLen
DIMENSION laCursors[This.ControlCount]
FOR lnRow = 1 TO This.ControlCount
lcObjName = This.Controls[lnRow].Name
liTabIndex = This.Controls[lnRow].TabIndex
laCursors[liTabIndex] = lcObjName
ENDFOR
ENDIF
Anything wrong with the solution???
TIA
Rex
>All,
>
>I have a business object containing several related views, that is one view is based on another view in the dataenvironment. I am getting errors because they are not opening in order. The DataEnvironment is getting an alphabetized list of view and opening them in that order.
>
>What can I do about this beside renaming the views?
>
>TIA
>
>Rex
Précédent
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