>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