Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Populating grid through edit form
Message
From
21/06/2000 07:16:44
Rex Mahel
Realm Software, Llc
Ohio, United States
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00382529
Message ID:
00382602
Views:
13
Alex,

Try Treatments.PreSaveHook().

HTH

Rex

>Hi,
>
>
>Alex = creatobject("desperados")
>
>
>I have a form that has a grid that's populated with records matching the main bizobj's primary key:
>
>
>
>Requests (main)
> |
> +--- Treatments (child)
>
>
>
>On this form the treatments appear as a list in a grid.
>
>I created another form based on cBizObjModalForm that's called whenever the user double clicks on any of the entries on the grid.
>
>All this form has is a textbox and an OK and Cancel buttons. This daughter form uses the default datasession (provided by the main form), and the textbox's datasource is v_treatments.desc.
>
>So far so good. (yea, so far, otherwise why would I be posting this?).
>
>Then I added an "Add" button next to the grid that appends a blank record in v_treatments and calls the modal form.
>
>I'm able to enter treatments there, and they somehow make it to the table, BUT I don't know where to put the code to add the foreign key to the treatments table (or the v_treatments view to that effect).
>
>I tried to call thisform.save() from the child form's OK button, but presavehook() never gets called, which is where I originally placed
>
>
>replace requestiid with v_requests.iid
>
>
>So, what's the trick here?
>
>As allways, THANK YOU!!!!!
>
>alex.release()
Previous
Reply
Map
View

Click here to load this message in the networking platform