Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving Table in Business Object
Message
 
 
To
26/01/2009 16:40:57
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01377138
Message ID:
01377174
Views:
13
>Hello all.
>I have created a users form with a clistobj grid on it. The clistobj manages the security rules for that users, in the rules table. The user form is set up with an environment as such:
>
>*------------------------
>*--- UserAccountsEnvironment
>*--- Used in UsersForm
>*------------------------
>define class UserAccountsEnvironment as iePointEnvironment
>   function LoadCursors()
>   dimension this.aCursors[4]
>   nInitialSelectedAlias=1
>   this.aCursors[1] = 'v_Users' 
>   this.aCursors[2] = 'rule'
>   this.aCursors[3] = 'users'
>   this.aCursors[4] = 'user_group'
>enddefine
>
>The environment for the clistobj is:
>
>*-----------------------------
>*--- UserRuleEnvironment
>*--- Used in the user form
>*-----------------------------
>define class UserRuleEnvironment as iePointEnvironment
>   nInitialSelectedAlias=1
>   function LoadCursors()
>   dimension this.aCursors[7]
>   this.aCursors[1] = 'v_Rule'
>   this.aCursors[2] = 'Rule'
>   this.aCursors[3] = 'RCD'
>   this.aCursors[4] = 'ClassDefn'
>   this.aCursors[5] = 'LUT'
>   this.aCursors[6] = 'city'
>   this.aCursors[7] = 'STUDENT'
>  endfunc
>   function beforeopentables()
>   dodefault()
>   this.ov_Rule.buffermodeoverride = db_bufopttable
>   endfunc
>enddefine
>
>I have checks in the form to force them to create rules for all users. However, it seems some of my saves aren't working. I can add records to the grid in clistobj and delete using my framework edit form without issue. However, whe I try to query the rule table (not the view) for my security checks, the newly added records are not present, even with :
>
>thisform.save(.t.,.t.)
>flush
>
>The parentbizobj of the clistobj1 is the UserAccountObj. What am I doing wrong that my rule table is not being fully updated using my edit form?

Did you verify the tables, do you actually save data or not?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform