Information générale
Catégorie:
Produits tierce partie
>>>>
>>>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement