Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change title additive in cListObjEditForm
Message
 
À
08/10/1999 14:30:19
Rex Mahel
Realm Software, Llc
Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00274397
Message ID:
00275532
Vues:
44
>I have a BizObjMaintenanceForm with a parent and child business object. I set the Change Form Title and Description field in each business object. The default behavior is to remove the old caption and replace it with the new, I want to keep the old caption and append the child caption to it.
>
>I know I can set the caption to be what I need manually, but is there a way to take the current caption and append what I need?

You can accomplish this by overriding the child business object's GetBizObjDesc() method (at the form level). Simply call the parent business object's GetBizObjDesc() method, then call the child's default method, returning a string with the child desc appended to the parent.

For example:

lcParentDesc = ThisForm.ParentBizObj.GetBizObjDesc()
lcChildDesc = DODEFAULT()
IF NOT EMPTY(lcParentDesc) AND NOT EMPTY(lcChildDesc)
lcParentDesc = lcParentDesc + ' - '
ENDIF
RETURN lcParentDesc + lcChildDesc

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform