Information générale
Catégorie:
The Mere Mortals Framework
Titre:
Replacing bizobj in cListObjEdit
I'm having a problem with replacing the bizobj in a cListObjEdit. The Dev. guide says to drop the new bizobj on the page and send it to back, which I do. It says to put some code in the new bizobj's OnBizObjEmpty, PostRequeryHook and OnStateChange methods, which I did. It then wants This.ChangeBizObj(path to bizobj) in the CListObjEdit's PostInitHook. When I do that, I get "unknown member" on the statement in the PostInitHook. I'm using a bizobjMaintenanceForm, so the "path to bizobj" looks like "thisform.pgfbizobj.page5.tickler" (no qoutes). If I put a breakpoint on the statement in the PostInitHook, and do PEMSTATUS(thisform.pgfbizobj.page5,'tickler',5) inthe watch window, I get "expression could not be evaluated". PEMSTATUS(thisform.pgfbizobj,'page5',5) = .T. and ,3 = 'O'
If I pull the PostInitHook code, things seem to run ok, except that when the page appears, and until I click the Add or Edit buttons, the highlight bar is missing.
Thanks,
June
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