Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Visual Max Frame - Standard Edition
Message
De
19/12/1998 09:20:10
Vinod Parwani
United Creations L.L.C.
Ad-Dulayl, Jordanie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00167710
Message ID:
00169110
Vues:
25
>>>>
>>>>But there is a problem in requery()...Actually I'm making a Toolbar Class for rec. navigation and add/edit recs.. So the refreshing of controls after save or revert button should be generic..I mean whether I'm using multiple grids based on tables/views in page frames or on form, class should refresh them all..
>>>>
>>>>Can u pls give me any idea to do that.. Thanks in advance..
>>>
>>>Vinod,
>>>
>>>You'll need hook methods. In the Codebook framework that I am using, a push on the save button will call the following methods. I present an abbreviated schema here, to make things as clear as possible:
>>>ToolBar.SaveButton.Click() > Form.Save() > BiznessObject.Save() > DataBehavior.Save()
>>>
>>>At your form of Bizness object level you'll need hooks Method. In this case, let's call it a PostSave() hook.
>>>
>>>The Save() code of your form or bizObj might look like this:
>>>
>>>*-- do all your save routine as always.
>>>*-- lnRetVal contains one value returned by the save()
>>>
>>>PostSave(lnRetVal)
>>>RETURN lnRetVal
>>>
>>>By doing so, you have a hook where you can place whatever code you want after the save() and your save method remains generic.
>>>
>>>Jose
>>
>>
>>Thanks for your reply... Actually my problem was due to toolbar, When I was clicking the button on toolbar, form's control was still having focus, so refresh was not reflecting changes...That is solved..
>>
>

I'm sorry to say that but leaving focus from active control to toolbar is still not solved..I just chkd it.. Pls see my question which I've posted today for this problem...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform