Information générale
Catégorie:
The Mere Mortals Framework
>All,
>I have a view using a view parameter in a calculated field. I need to have the >view parameter defined before the view can be opened in the business object's >oDELoader.
>Normally I would use the business object PostInitHook method, but the view is >already open when this method is executed.
>Any ideas?
>TIA
>Rex
Rex --
I'm jumping in here because I've run into a couple interesting situations and am trying to think through the scope of vps myself.
I think your best bet is to define the use of the view with no data on load. That way you can assign a value to the vp while it is in scope, and then do a requery on the view.
Now, the one issue I've come across recently where I can't use this approach is when I'm using a bizobj who's editable view has 2 view parameters -- one returned by the Find form, and 1 set in another way. An approach that works, but for which I'm looking for an alternative, is as follows: define the vp as a public variable in the Init() of the form and assign a value there, then release it in the Destroy().
Jay
Précédent
Suivant
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