Information générale
Catégorie:
The Mere Mortals Framework
Titre:
CBizObjMaintBase...
I am using the above form. We want to create a simmilar form to BizObjMantainenceForm but without the buttons, we are putting a tool bar at the top of the form.
So, I subcalled cBizObjMaintBase and added cGridList to it.
Problem is that when I do this, and the grids afterrowchange method runs, there is not a proper reference to the Business Object in cgridlist1.oBixObj...
I looked around, and found that in the cbizobjmaintenance form the init of the forms puts the Business Object reference into that property of the grid.
My question is, can't this be a bit more encapsulated. For example, in the afterrowchange of the grid, instead of using this.oBizObj.getalias(), can't you do a thisform.oBizObj.getalias() ???
This way... cGridList can be dropped on a form, and you won't have to add code to the form for it to work.
Or, perhaps the grids init() can populate it's own oBizObj property.
I just don't think as it is it is well encapsualted.
BOb
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