Information générale
Catégorie:
The Mere Mortals Framework
Kevin,
I also fount the lReactivateRefresh form property which worked as well althought I think it is overkill as it refreshes the whole form upon reentry.
Thanks again
Rex
>Rex,
>
>>I have a combo on a form. The value I need is not in the combo. I open the entry form of the base table for the combo and add a new value. After saving I click on the original form, but the new value is not in the combo. How can I get the bizobj to requery so my combo will show new values?>
>
>The best way to handle this is by means of a subject/observer design pattern (coming in the next version of the Framework). For now, you can do the following:
>
>1. Set the business objects nRequeryType property to 0.
>2. Place the following code in the Activate of the page on which the business object resides:
>
>IF This.MyBizObj.cFormActivateID != Thisform.cFormActivateID OR ;
> EMPTY(This.MyBizObj.cFormActivateID)
> This.MyBizObj.Requery()
>ENDIF
>
>3. Make sure you place code in the business object's PostRequeryHook method to automatically requery the combobox. For example:
>
>this.Parent.MyCombobox.Requery()
>
>Regards,
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