Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using modal data child form for adding new records
Message
 
À
20/11/2002 11:28:31
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Divers
Thread ID:
00724730
Message ID:
00725349
Vues:
29
Unfortunately I have not had a chance to try this out yet. But it does go further towards explaining the workings of the framework.

Thanks
Matthew

>Use either the new() or if you have an older version there is a aRevertData[] array.
>
>I think the accepted way is to place a new button on the form ( or call the button) and then use the afternew2() as follows:
>
>LPARAMETERS cWorkarea
>
>IF m.cWorkarea = 'Esclient'
> DO FORM newclient TO lStatus
> IF NOT m.lStatus
>* User canceled the dialog, so we remove the new record from the update buffer.
> THIS.DELETE(m.cWorkarea)
> ENDIF
>ENDIF
>
>IF m.cWorkarea = 'Enroll'
> *THISFORM.cmdatamanager.new('enroll')
> THISFORM.cmdatamanager.REPLACE('enroll','clientid',esclient.clientid)
> THISFORM.cmdatamanager.REPLACE('enroll','enroll_dte',DATE())
> THISFORM.editmode()
> THISFORM.openchild('enroll_class.scx')
>ENDIF
>
>Notice that I test if the user cancelled.
>John
Opportunity is missed by most people beacuse it is dressed in overalls, and looks like work --- Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform