Information générale
Catégorie:
The Mere Mortals Framework
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.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement