Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid not displaying even after the recordsource trick
Message
From
14/09/1999 09:49:45
 
 
To
13/09/1999 16:21:41
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00264196
Message ID:
00264421
Views:
23
Hi Harry ----

I must be missing something: Why are you messing around with the recordsource? I would design it this way: Put the table in the DataEnvironment of the Form with the Grid. Set the RecordSource at design time; don't mess with it at run-time. Set the Form to a Private DataSession. In the detail entry form, do NOT open the table: Set the DataSession to Private. This allows it to "inherit" the parent form's datasession. I am assuming that the Save button is on the child? If so, TABLEUPDATE() the table (if buffered) and close the form. If you Refresh() the parent, the new record will appear.



>we start off with an empty table and a grid form.
>
>To add a record to the grid, the user hits the 'add/edit' button and this runs a form which lets them add a record and enter the data with the all the space they need and the validation I can put on a form much more easily than in a grid.
>
>However, when the form is closed and we return to the grid form, all we see is a blank record. (so at least it 'knows' that we've added one - it just won't show the values)
>
>The debugger tells me that we have successfully added the record and that its values are as entered.
>
>This despite doing a [jgrid.recordsource='' ] BEFORE running the add/edit form and a
>[jgrid.recordsource="journal" ] and a form refresh, after the add/edit form has done its thing...
>
>so why no show?
>
>Harry
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform