Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
KBizObj changes to allow default values (ie foreign keys
Message
From
12/03/2001 12:30:18
Rex Mahel
Realm Software, Llc
Ohio, United States
 
 
To
12/03/2001 12:14:49
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00479312
Message ID:
00484112
Views:
32
Gary,

That should work. If you look in KBizObj.OnNew() you will see an example of how to do this using the lcDefaultValue variable.

My problem with the DefaultValues was I wanted the functionality available in all classes containing business objects. To do this, I need Kevin to make the changes in KBizObj.

But I digress...


HTH

Rex

>Rex,
>
>Thank you, I beleive you've solved my problem. Is it because of the "REPLACE" command that allow the defaults to be applied and not get the field states to trigger "Save Changes?" and also allow the record to be update to the underlying table?
>
>If I wanted to 'pick up' the already existing defaults from the underlying table, and still populate the aDefaultValue array to use your algorithm - do you see any problem with that approach? I would like to set default values at the lowest level (table definition) and have them propagate where they would be used. If you don't see a problem, do you know what code snipit would go here to accomplish that in lieu of hardcoding the assignments?:
>
> *!*****************************************************
> *!* Store the specified valaues in the array property
> *!*****************************************************
> This.aDefaultValues[lnRows,1] = tcName
> This.aDefaultValues[lnRows,2] = tcExpr
>
>I will use your solution as is or with the above enhancement, if I can determine the code for it. Either way, thank you very much.
>
>Gary.
Previous
Reply
Map
View

Click here to load this message in the networking platform