Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need some help with dataenvironment
Message
From
30/10/2001 07:53:54
 
 
To
30/10/2001 02:12:17
Eugene Kolmakov
Millennium Technologies
Vladivostok, Russia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00574886
Message ID:
00574942
Views:
28
>Hi !
>I have two forms: the first one is the list of the records of a table "Table1" and the second is the edit form representing details of the record user chooses from the list in the parent form. In DataEnvironment of the first form I have only "Table1" table and in the edit form I have the same table and some other tables related to this table. The Data Session I use is "default DataSession".
>
>The problem is when I choose the record in parent form and run the edit form it shows details of the first record no matter wich record I choose in the parent form.
>
>I don't use any commands moving record pointer before running the edit form.
>I think it happens because I have "Table1" table in both parent form's and edit form's DataEnvironments and in the edit form's DataEnvironment there are some Relations added to other tables.
>
>Does anybody know can I solve this without using something like "... Goto nRecordNumber ..." in the edit form ?

Eugene,
First off: there is nothing wrong with the Go nRecno approach, I guess it just disturbs your esthetical sense :-).

Do you have the DataEnvironment->AutoOpen Tables property set to true in both forms? If so, and if you're sure your edit form has all it's tables open when it's called from the other form, try to set AutoOpen to .F. on the edit form.

I'm not sure if it will work, but it's worth a try. On the other hand, that would mean that you could do away with the Edit forms dataenvironment altogether, so...

HTH
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Previous
Reply
Map
View

Click here to load this message in the networking platform