Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change title additive in cListObjEditForm
Message
 
To
08/10/1999 14:30:19
Rex Mahel
Realm Software, Llc
Ohio, United States
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00274397
Message ID:
00275532
Views:
43
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform