Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving Table in Business Object
Message
De
26/01/2009 16:40:57
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Saving Table in Business Object
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01377138
Message ID:
01377138
Vues:
64
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?
Amanda Morton
System Analyst
Harrisburg Project
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform