Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form control bound to oBizObj.MyProperty hassle
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Form control bound to oBizObj.MyProperty hassle
Miscellaneous
Thread ID:
00357415
Message ID:
00357415
Views:
48
Here's a head scratcher, something I did several times in an older version of the framework doesnt seem to like me in the lastest version. Either that or I'm doing something really stupid here...

I got a textbox who's controlsource needs bound to a custom property on Thisform.oBizObj. I cant define that at design time since the control inits before the bizobj, so in form's init() I do:
IF NOT DODEFAULT()
    RETURN .F.
ENDIF

ThisForm.txtCurrViewDesc.oControl.ControlSource='Thisform.oBizObj.MyCustomPropertyName'
After the above code in form's init, I do some runtime enable/disable control handling then call Thisform.RefreshForm(). All is well at first glance, I see the correct value of the bizobj property in my textbox & textbox is enabled like it should be. But when I go to change the value shown in the textbox (which ideally should also change the value of the underlying bizobj) nothing happens. I can type & edit to that textbox to my heart's content but changes are not shown and the underlying bizobj property acts like it's readonly???

The custom bizobj property is defined as public, so what stupid thing am I doing wrong? TIA!
Roxanne M. Seibert
Independent Consultant, VFP MCP

Code Monkey Like Fritos
Next
Reply
Map
View

Click here to load this message in the networking platform